OpenRouter

by th3nolo

Not rated
GitHub

About

Access over 400 AI models from OpenRouter's collection.

Details

Author
th3nolo
Categories
Cloud Service, Infrastructure

Setup

Install OpenRouter in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/th3nolo/openrouter-mcp

Follow the installation instructions in the repository README, then restart your MCP client.

A Model Context Protocol (MCP) server that provides access to OpenRouter's extensive collection of 400+ AI models through Claude.

- 🤖 Access to 400+ language models including GPT-4, Claude, Gemini, Llama, and more
- 🔍 List and search available models with pricing information
- 💬 Chat with any model through a unified interface
- 🔄 Compare responses from multiple models side-by-side
- 📊 Get detailed model information including context limits and capabilities
- 🔧 Seamless integration with Claude Desktop and Claude Code

# Clone the repository git clone https://github.com/th3nolo/openrouter-mcp.git cd openrouter-mcp # Install dependencies npm install # or yarn install # Build the TypeScript code npm run build # or yarn build

- Get your OpenRouter API key fromOpenRouter
- Copy.env.exampleto.env:

cp .env.example .env

- list_models- Get a list of all available models with pricing
- chat_with_model- Send a message to a specific model

- Parameters:model,message,max_tokens,temperature,system_prompt

- Parameters:models[],message,max_tokens

- openrouter://models- List of all available models with pricing
- openrouter://pricing- Current pricing information for all models
- openrouter://usage- Your OpenRouter usage statistics

claude mcp add openrouter -s user \ -e OPENROUTER_API_KEY=your_api_key_here \ -- node /path/to/openrouter-mcp/dist/server.js

Or add it manually to your Claude Desktop configuration:

{ "mcpServers": { "openrouter": { "command": "node", "args": ["/path/to/openrouter-mcp/dist/server.js"], "env": { "OPENROUTER_API_KEY": "your_api_key_here" } } } }

Once configured, you can use these commands in Claude:

"List all available Gemma models" "Chat with gpt-4 and ask it to explain quantum computing" "Compare responses from claude-3-opus and gpt-4 about climate change" "Get detailed information about google/gemini-pro"
# Run in development mode npm run dev # Run tests npm test # Lint code npm run lint # Type check npm run typecheck

- OPENROUTER_API_KEY- Your OpenRouter API key (required)
- OPENROUTER_BASE_URL- API base URL (default:https://openrouter.ai/api/v1)
- OPENROUTER_SITE_URL- Your site URL for API attribution
- OPENROUTER_APP_NAME- Application name for API headers

- API keys are stored in environment variables only
- The.envfile is excluded from version control
- Never commit your API keys to the repository

Contributions are welcome! Please feel free to submit a Pull Request.

Navigate your Aiven projects and interact with the PostgreSQL®, Apache Kafka®, ClickHouse® and OpenSearch® services

Yunxiao MCP Server provides AI assistants with the ability to interact with the Yunxiao platform.

Get prescriptive CDK advice, explain CDK Nag rules, check suppressions, generate Bedrock Agent schemas, and discover AWS Solutions Constructs patterns.

This AWS Labs Model Context Protocol (MCP) server for CloudTrail enables your AI agents to query AWS account activity for security investigations, compliance auditing, and operational troubleshooting.

Core AWS MCP server providing prompt understanding and server management capabilities.

Analyze CDK projects to identify AWS services used and get pricing information from AWS pricing webpages and API.

Query and analyze your Axiom logs, traces, and all other event data in natural language

Manage and interact with Microsoft Azure services.

Bastion: External Attack Surface Monitoring

Ask your AI assistant about your attack surface: run scans, catch expiring certificates and domains, triage findings, and generate reports.

Agent-ready global image CDN that AI agents can install and operate through MCP.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.