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

@aiorouter/mcp

v1.1.1

Published

AIOrouter MCP Server — 15+ AI models, single API key, privacy protection

Readme

@aiorouter/mcp

AIOrouter MCP Server — Access 15+ AI models through a single API key with PII Shield protection.

npm version License: MIT

Features

  • 15+ AI models — Qwen, DeepSeek, GLM, Kimi, Grok, and more through a single API key
  • MCP Protocol — Model Context Protocol (stdio transport) for Claude Desktop, Claude Code, and Codex CLI
  • PII Shield — Personal information and technical secrets are protected before routing
  • Zero billing changes — Same API key, same quota, same billing pipeline as direct API calls
  • 10 MCP tools — Chat, model listing, pricing, usage, cost estimation, and more

Quick Start

# Set your API key
export AIOROUTER_API_KEY="ak-your-api-key-here"

# Run the MCP server
npx @aiorouter/mcp

Get your API key at dashboard.aiorouter.ca/keys.

Installation

# Global install
npm install -g @aiorouter/mcp

# Or use npx (zero install)
npx @aiorouter/mcp

Claude Desktop Setup

Scenario A: Anthropic Subscription + MCP Tools

Use your Anthropic subscription for Claude, and access 15+ other models through MCP tools.

Edit claude_desktop_config.json:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "aiorouter": {
      "command": "npx",
      "args": ["-y", "@aiorouter/mcp"],
      "env": {
        "AIOROUTER_API_KEY": "ak-your-api-key-here"
      }
    }
  }
}

Scenario B: AIOrouter as Third-Party Inference Gateway

Route ALL Claude Desktop traffic through AIOrouter for complete privacy protection — even Anthropic never sees your real data.

  1. Configure AIOrouter as your Claude Desktop third-party inference provider
  2. Add the MCP server config above
  3. All traffic (Claude + non-Claude) goes through AIOrouter PII Shield

Claude Code Setup

Add to .mcp.json in your project root:

{
  "mcpServers": {
    "aiorouter": {
      "command": "npx",
      "args": ["-y", "@aiorouter/mcp"],
      "env": {
        "AIOROUTER_API_KEY": "ak-your-api-key-here"
      },
      "type": "stdio"
    }
  }
}

Codex CLI Setup

{
  "mcpServers": {
    "aiorouter": {
      "command": "npx",
      "args": ["-y", "@aiorouter/mcp"],
      "env": {
        "AIOROUTER_API_KEY": "ak-your-api-key-here"
      }
    }
  }
}

Tools Reference

| # | Tool | Description | |:---|:---|:---| | 1 | aiorouter_chat | Send a chat completion to any AIOrouter model | | 2 | aiorouter_list_models | List all available models with provider info | | 3 | aiorouter_get_presets | Show CODE-MAS orchestrator triple preset configuration | | 4 | aiorouter_get_pricing | Get public retail pricing (USD per 1M tokens) | | 5 | aiorouter_get_usage | Get usage, billing, and subscription status | | 6 | aiorouter_test_connection | Test API key validity and show account info | | 7 | aiorouter_export_config | Generate MCP config JSON for Claude Desktop/Code/Codex | | 8 | aiorouter_compare_models | Compare 2-5 models side-by-side | | 9 | aiorouter_estimate_cost | Estimate cost for a prompt (input + output tokens) | | 10 | aiorouter_get_model_info | Get detailed info for a single model |

Example: Using aiorouter_chat

Ask Claude Desktop:

"Use aiorouter_chat to call deepseek-v4-pro and ask: what is MCP protocol?"

Claude will:

  1. Call aiorouter_list_models to confirm the model is available
  2. Call aiorouter_chat with model="deepseek-v4-pro" and your message
  3. Return the model's response

Remote HTTP MCP Server

AIOrouter also provides a Remote HTTP MCP Server at https://api.aiorouter.ca/mcp:

  • Transport: Streamable HTTP (stateless)
  • Auth: API Key (Authorization: Bearer ak-...) or OAuth 2.1
  • Same 10 tools as the local stdio server
# Example: list tools via HTTP
curl -X POST https://api.aiorouter.ca/mcp \
  -H "Authorization: Bearer ak-your-api-key" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'

Pricing & Billing

  • Zero changes to your existing billing — MCP tools use the same API key quota
  • All aiorouter_chat calls go through the same billing pipeline (TokenCounter → CreditEngine → BudgetGuard)
  • Check usage at dashboard.aiorouter.ca/billing

Security

  • PII Shield: Personal information and technical secrets are protected before routing to any model
  • API Key Safety: Your API key stays in your environment variable — never written to disk
  • HTTPS Only: All communication with AIOrouter uses HTTPS
  • No Package Secrets: This npm package contains zero API keys or secrets

CLI Commands

aiorouter-mcp              # Start stdio MCP server (default)
aiorouter-mcp setup        # Interactive setup guide
aiorouter-mcp status       # Check API key validity
aiorouter-mcp version      # Show version

License

MIT