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

@toolrate/mcp-server

v0.1.2

Published

Official MCP server for ToolRate — let Claude Code, Cursor, and any MCP-compatible agent rate tools, route LLMs, and report outcomes natively.

Readme

@toolrate/mcp-server

Official Model Context Protocol server for ToolRate — the reliability oracle for AI agents.

Plug into Claude Code, Cursor, Zed, Windsurf, or any MCP-compatible editor and your agent gets:

  • toolrate_assess — reliability score, pitfalls, mitigations, and best alternatives for any third-party API.
  • toolrate_route_llm — picks the right LLM model+provider under your token budget across 7 providers (Anthropic, OpenAI, Groq, Together, Mistral, DeepSeek, Ollama).
  • toolrate_report — feed real outcomes back so scores stay accurate.
  • toolrate_fallback_chain — what real agents switch to when a tool fails.
  • toolrate_hidden_gems — underrated tools that excel as fallbacks.
  • toolrate_search_tools, toolrate_categories, toolrate_my_usage — browse the catalog and watch your quota.

Setup

You need a free ToolRate API key — get one at toolrate.ai, or call the bootstrap toolrate_register tool from any MCP client (only available when no key is configured yet).

Claude Code

claude mcp add toolrate npx -y @toolrate/mcp-server --env TOOLRATE_API_KEY=nf_live_xxxxx

Cursor — ~/.cursor/mcp.json

{
  "mcpServers": {
    "toolrate": {
      "command": "npx",
      "args": ["-y", "@toolrate/mcp-server"],
      "env": {
        "TOOLRATE_API_KEY": "nf_live_xxxxx"
      }
    }
  }
}

Zed — ~/.config/zed/settings.json

{
  "context_servers": {
    "toolrate": {
      "command": {
        "path": "npx",
        "args": ["-y", "@toolrate/mcp-server"],
        "env": { "TOOLRATE_API_KEY": "nf_live_xxxxx" }
      }
    }
  }
}

Other MCP clients

Anything that speaks MCP over stdio works the same way — point it at npx -y @toolrate/mcp-server with TOOLRATE_API_KEY in env.

Tools

| Tool | What it does | |------|---| | toolrate_assess | Rate a tool's reliability before calling. Returns a summary block + 20 detail fields. | | toolrate_report | Report success/failure after a tool call. | | toolrate_route_llm | Pick the best LLM model+provider under your budget. | | toolrate_fallback_chain | Get the best alternatives when a tool fails. | | toolrate_hidden_gems | Discover underrated tools by category. | | toolrate_search_tools | Search/browse the ToolRate catalog. | | toolrate_categories | List all canonical categories. | | toolrate_my_usage | Check your API key quota. | | toolrate_register | (Only when TOOLRATE_API_KEY is unset) Register a new key by email. |

How agents should use this

Drop this into your agent's system prompt — see prompts/guard-pattern.md for the canonical version:

Before calling any third-party API tool, first call toolrate_assess with the tool's identifier (URL or canonical name). Read summary.reliability_score.

  • If score ≥ 70, proceed.
  • If score < 70 and top_alternatives has a fit, use the highest-scoring alternative.
  • If score < 40, surface the risk to the user before proceeding.

After every third-party API tool call, call toolrate_report with {tool_identifier, success, error_category?, latency_ms?}. This is how ToolRate learns.

When picking an LLM provider for a generation task, prefer toolrate_route_llm — it returns the routing fields directly.

Quota tips

  • Free tier is 100 assessments/day. ToolRate caches scores for ~5 min server-side so calling assess for the same tool twice in a row only costs one quota call.
  • Run toolrate_route_llm once per workflow and reuse the picked model — it costs 1 quota call per provider considered (up to 7).
  • Use toolrate_my_usage to self-throttle.

Environment variables

| Variable | Required | Default | Purpose | |---|---|---|---| | TOOLRATE_API_KEY | Yes (except for toolrate_register) | — | Your nf_live_… API key. | | TOOLRATE_BASE_URL | No | https://api.toolrate.ai | Override for staging/dev. |

Development

git clone https://github.com/netvistamedia/toolrate
cd toolrate/mcp/typescript
npm install
npm run build

# Smoke test (verifies tool registration in both with-key and no-key modes)
node smoke.mjs

# Wire into Claude Code locally
claude mcp add toolrate-dev node "$(pwd)/dist/index.js" --env TOOLRATE_API_KEY=nf_live_xxxxx

License

MIT — distinct from the ToolRate API server (BUSL-1.1). The MCP server is permissively licensed so any project can integrate it.