Skip to main content
Glama
openrouter-llm-pricing-mcp

openrouter-llm-pricing-mcp

README.md
# openrouter-llm-pricing-mcp

Zero-key live OpenRouter LLM pricing and model catalog over Model Context Protocol (MCP). AI platform engineers, FinOps teams, and procurement leads can search 400+ AI models, inspect per-million-token prompt and completion rates, compare models side by side, filter by context window and modality, and estimate monthly LLM spend without an API key or sign-up. It connects over Streamable HTTP right away.

## Hosted endpoint

Point any Streamable HTTP MCP client at the free Cloudflare Worker endpoint.

```text
https://openrouter-llm-pricing-mcp.lipmichal.workers.dev/mcp
```

## Available tools

| Tool | Purpose |
| --- | --- |
| `search_llm_models` | Search 400+ live OpenRouter LLMs by keyword, provider, modality, open-weight flag, or context length |
| `get_llm_model_pricing` | Look up exact per-million-token prompt, completion, image, and request pricing for a model ID |
| `compare_llm_pricing` | Compare up to 6 LLM models side by side on token pricing, context window, and monthly cost |
| `find_cheapest_llms` | Rank the lowest-cost LLMs meeting minimum context window, modality, or open-weight criteria |
| `estimate_llm_workload_cost` | Estimate per-request, monthly, and annual USD cost for an LLM workload |

## Client configuration

Add the remote URL to Claude Desktop, Cursor, or VS Code MCP settings.

```json
{
  "mcpServers": {
    "openrouter-llm-pricing": {
      "url": "https://openrouter-llm-pricing-mcp.lipmichal.workers.dev/mcp"
    }
  }
}
```

## Run locally over stdio

You can also run the server locally on Node 20 or newer over stdio.

```bash
npm install
npm run build
npm start
```

## Compliance and reliability

Every upstream request queries `https://openrouter.ai/api/v1/models` with a clear `User-Agent` header (`mcpstamp-openrouter-pricing/1.0`) and automatic retry on transient network or 5xx errors. Cloudflare edge caching applies only to HTTP 2xx responses, so upstream faults don't stay cached. All five tools declare read-only, non-destructive, idempotent, open-world annotations.

## More MCP servers and readiness check

This server belongs to the public MCP directory maintained by MCPStamp and Zovo.

- [Free live-data MCP directory](https://www.mcpstamp.com/free-servers/) with hosted keyless endpoints and setup guides.
- [Free MCP readiness checker](https://www.mcpstamp.com/check/) to score any MCP server for Claude, ChatGPT, and registry submission.
- [MCP Readiness Audit ($490)](https://www.mcpstamp.com/services/#audit) for teams shipping a production server who want a hands-on security, schema, and store review.
- [Zovo Pro MCP Bundle ($39 one-time)](https://mcp.zovo.one/buy/bundle?src=gh.openrouter-llm-pricing-mcp) with hosted commercial servers and priority endpoints.