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

oroute-mcp

v0.1.1

Published

O'Route MCP Server — use 13 AI models from Claude Code, Cursor, or any MCP tool

Readme

O'Route MCP Server

Use 13 AI models (Claude, GPT, Gemini, DeepSeek, Qwen) from Claude Code, Cursor, or any MCP-compatible tool through a single unified interface.

npm version license


What is this?

O'Route MCP Server exposes O'Route's intelligent routing engine as an MCP server. Once installed, your AI IDE (Claude Code, Cursor, or Claude Desktop) can call any of 13 AI models through O'Route with automatic optimization for:

  • Task complexity — simple Q&A → Haiku, complex reasoning → Opus
  • Cost — cheapest provider that meets quality bar
  • Geography — lowest-latency provider for your region
  • Fallback — auto-retry with a different provider on failure

Quick start

1. Install

npm install -g oroute-mcp

Or run directly via npx without installing:

npx oroute-mcp

2. Get an API key

Sign up at oroute.itshin.com and create an API key (free tier available).

3. Configure your MCP client

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "oroute": {
      "command": "npx",
      "args": ["-y", "oroute-mcp"],
      "env": {
        "OROUTE_API_KEY": "orut_sk_..."
      }
    }
  }
}

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "oroute": {
      "command": "npx",
      "args": ["-y", "oroute-mcp"],
      "env": {
        "OROUTE_API_KEY": "orut_sk_..."
      }
    }
  }
}

Claude Code CLI

claude mcp add oroute npx -y oroute-mcp

Set the API key in your shell:

export OROUTE_API_KEY="orut_sk_..."

4. Use it

Once configured, your AI client has access to these O'Route tools:

| Tool | Purpose | |------|---------| | oroute_chat | Send a message, auto-routed to the best model | | oroute_chat_with_model | Send a message to a specific model (override routing) | | oroute_list_models | List all available models with capabilities | | oroute_get_cost_estimate | Estimate cost before sending | | oroute_get_usage | Query your current credit balance and usage |

Examples

In Claude Code

You: Use oroute to compare GPT-5 and Claude Opus on this prompt: "Explain the halting problem"

Claude Code: I'll use the oroute tool to send the prompt to both models.
[calls oroute_chat_with_model twice, compares outputs]

In Cursor

Cursor: (while editing code)
> @oroute Generate a Python test for this function using Gemini 2.5 Pro

[Cursor calls oroute_chat_with_model with model="gemini-2.5-pro"]

Supported models (13)

| Provider | Models | |----------|--------| | Anthropic | claude-opus-4-6, claude-sonnet-4-6, claude-haiku-4-5 | | OpenAI | gpt-5, gpt-4.1, gpt-4o-mini | | Google | gemini-2.5-pro, gemini-2.5-flash | | DeepSeek | deepseek-v3.2, deepseek-coder | | Qwen | qwen3-max, qwen3-coder | | Meta (via OpenRouter) | llama-3.3-70b |

Advanced usage

Routing hints

// Via tool arguments
oroute_chat({
  messages: [{ role: 'user', content: '...' }],
  cost_mode: 'cheapest',    // 'cheapest' | 'balanced' | 'quality'
  routing_strategy: 'auto', // 'auto' | 'cascade' | 'ensemble'
});

Per-request tool use

O'Route passes through Anthropic-compatible tools arrays. Use any MCP tool from your client — O'Route forwards them to the selected model.

Ensemble mode (Pro+ plan)

oroute_chat({
  messages: [...],
  routing_strategy: 'ensemble',  // sends to 2 providers, picks best
});

With ENABLE_ADVISOR_TOOL=true, ensemble "pick better" decisions are made by Claude Haiku + Opus advisor for maximum accuracy.

Configuration

Environment variables:

| Variable | Default | Description | |----------|---------|-------------| | OROUTE_API_KEY | (required) | Your O'Route API key | | OROUTE_API_URL | https://api.oroute.itshin.com | Custom endpoint (self-hosted) | | OROUTE_DEFAULT_COST_MODE | balanced | Default cost mode | | OROUTE_LOG_LEVEL | info | debug / info / warn / error |

Development

git clone https://github.com/netclaus/oroute
cd oroute/packages/mcp-server
npm install
npm run dev

Test with an MCP-compatible client:

# Use MCP inspector
npx @modelcontextprotocol/inspector npx oroute-mcp

Troubleshooting

Server won't start

Check the API key is set:

echo $OROUTE_API_KEY  # Should start with "orut_sk_"

"Unauthorized" errors

Slow responses

  • Set cost_mode: 'cheapest' to prefer faster models
  • Check status.oroute.itshin.com for incidents
  • Try a different region: set OROUTE_API_URL to a regional endpoint

Tool not showing up in Claude Desktop

  1. Restart Claude Desktop after editing config
  2. Check logs: ~/Library/Logs/Claude/mcp.log (macOS)
  3. Validate JSON: cat claude_desktop_config.json | jq

Security

  • API key: Stored in MCP client config, never logged by the server
  • Request body: Not logged server-side except for metrics aggregation
  • User data: See oroute.itshin.com/privacy

Related

License

MIT © 2026 O'Route