npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

guardrail-ai-mcp

v2.3.0

Published

Guardrail AI — MCP server for Claude Desktop. Score AI responses for hallucinations, safety, and confidence. Zero setup.

Downloads

29

Readme

🛡️ Guardrail AI — MCP Server for Claude Desktop

Real-time AI confidence scoring. Detect hallucinations, unsafe advice, and fabricated citations in any AI response — in under 50ms.

npm: guardrail-ai-mcp Docs: guardrail-mvp-production.up.railway.app/docs.html


Quick Install

npx guardrail-ai-mcp --key YOUR_API_KEY

That's it. No npm install, no manual dependency setup — npx handles everything.


Step-by-Step Setup (Claude Desktop)

Step 1: Get a free API key

Option A — Web (easiest): Go to guardrail-mvp-production.up.railway.app/developer.html and enter your email. You'll get a key starting with gr_live_.

Option B — Terminal:

curl -X POST https://guardrail-mvp-production.up.railway.app/api/keys/create \
  -H "Content-Type: application/json" \
  -d '{"email": "[email protected]"}'

The response will include your API key:

{ "apiKey": "gr_live_abc123...", "email": "[email protected]" }

⚠️ Save your key immediately! It is shown only once and cannot be recovered. Store it somewhere safe (password manager, .env file, etc.).

Step 2: Open your Claude Desktop config file

Mac:

open ~/Library/Application\ Support/Claude/claude_desktop_config.json

Windows:

%APPDATA%\Claude\claude_desktop_config.json

Step 3: Add the Guardrail MCP server

Paste this into your config. Replace gr_live_xxx with the API key you saved in Step 1:

{
  "mcpServers": {
    "guardrail": {
      "command": "npx",
      "args": ["guardrail-ai-mcp", "--key", "gr_live_xxx"]
    }
  }
}

⚠️ If your config already has content (like a "preferences" section), merge them into ONE JSON object:

{
  "preferences": {
    "coworkScheduledTasksEnabled": true,
    "sidebarMode": "chat"
  },
  "mcpServers": {
    "guardrail": {
      "command": "npx",
      "args": ["guardrail-ai-mcp", "--key", "gr_live_xxx"]
    }
  }
}

Step 4: Restart Claude Desktop

Cmd+Q (Mac) or fully close and reopen. The Guardrail tools load on startup.

Step 5: Verify it's working

  1. Click the + button in the chat input
  2. Click Connectors — you should see "guardrail" with a blue toggle ON
  3. Type: Use the guardrail score_and_explain tool to score this: "The Earth is flat."
  4. Claude will call Guardrail and show you the confidence score and signals

Auto-Use (Optional)

By default you need to say "use the guardrail tool..." To make it automatic:

  1. Click +ConnectorsTool access → select "Tools already loaded"
  2. Create a Project (e.g. "Guardrail Testing")
  3. Click + next to Instructions and add:
Always use the guardrail score_and_explain tool to score any AI-generated
text I share. Show the confidence score, decision, and detected signals.
Do not answer the text's question — only score it.

Now every message in that project automatically uses Guardrail.


Available Tools

| Tool | Description | |------|-------------| | check_confidence | Quick score — returns confidence 0-1 and deliver/flag/escalate decision | | score_and_explain | Detailed score with human-readable explanation of all signals detected | | get_my_stats | Your API usage — total checks, decision breakdown, recent logs |

Context-Aware Scoring

All tools support an optional userQuery parameter. When you provide the original user question alongside the AI response, Guardrail runs 5 additional signals:

  • Question-type classification — fact, opinion, instruction, dangerous
  • Relevance scoring — does the response address the question?
  • Scope creep detection — is the response absurdly verbose?
  • Refusal audit — does a dangerous question get a free answer?
  • Context match boost — +3% for directly relevant responses

Dashboard

Every MCP tool call automatically logs to your dashboard — no extra setup needed.

View your dashboard

👉 guardrail-mvp-production.up.railway.app/dashboard.html

Log in with your API key to see:

| Section | What It Shows | |---------|---------------| | Overview | Total checks, deliver rate, average confidence, recent flags/escalations | | Decision Breakdown | Pie chart of deliver vs flag vs escalate decisions | | Recent Logs | Every check with timestamp, score, decision, signals, and text preview | | Trends | Confidence scores over time |

What gets logged

Every time Claude calls check_confidence or score_and_explain, the following is saved:

  • Confidence score (0-1)
  • Decision (deliver / flag / escalate)
  • Signals detected (e.g., "Hedged language", "Unverified claim")
  • Domain context (general, medical, financial, etc.)
  • User query (if provided)
  • Timestamp

API access to your stats

# Get your dashboard stats
curl -H "X-Guardrail-Key: gr_live_xxx" \
  https://guardrail-mvp-production.up.railway.app/api/stats

# Get recent logs
curl -H "X-Guardrail-Key: gr_live_xxx" \
  https://guardrail-mvp-production.up.railway.app/api/logs?limit=50

Resources

License

MIT