Allows deployment and management of the MCP server using Docker containers with utilities for building, starting, stopping, and accessing logs.
Uses .env file for configuration of API keys, model settings, and server parameters.
Supports cloning the repository as part of the installation process.
Provides repository access and issue tracking for the MCP server.
Enables use of Google Gemini 2.5 Pro Preview with automatic web search integration for accessing current information.
Uses Python 3.12+ for server implementation and management scripts.
OpenRouter MCP Server
Use 400+ AI models (Claude, GPT-4, Gemini, etc.) directly in Claude Code
🚀 Quick Start
Get started in 4 simple steps:
Step 1: Clone and Setup
Step 2: Configure API Key
Create a .env
file with your OpenRouter API key:
Replace sk-or-v1-your_actual_api_key_here
with your actual OpenRouter API key!
Step 3: Build and Start Container
Step 4: Connect to Claude Code
Done! Now you can use any OpenRouter model in Claude Code with large file support.
Step 5: Install Claude Code Command (Optional)
For enhanced multi-model collaboration, copy the command script:
🔑 Get Your API Key
- Go to OpenRouter.ai
- Sign up and get an API key
- Add it to your
.env
file:
🎯 What You Get
- 400+ AI Models: DeepSeek R1, GPT-4, Gemini Pro Preview, Qwen3 Coder, Kimi K2, Grok 4, and hundreds more
- Large File Support: Send multiple large files (1,048,576 token limit) without errors
- Web Search Integration: Gemini automatically searches the internet for current information
- Conversation Memory: Continue conversations across multiple requests with full context
- Model Switching: Change models mid-conversation seamlessly
- Multi-Model Collaboration: Use
/call-openrouter
command for structured model collaboration workflows - Easy Management: Interactive Docker manager for build/start/logs/shell
- No Duplicates: Single persistent container (no more container proliferation)
💬 Usage Examples
Chat with different models:
Attach files for analysis:
Multi-Model Collaboration:
🤖 Available Models
Just use simple names:
gemini
→ Google Gemini 2.5 Pro Preview (with web search)deepseek
→ DeepSeek R1 (reasoning & analysis)qwen
→ Qwen3 Coder (programming tasks)kimi
→ Moonshot Kimi K2 (advanced reasoning)grok
→ X.AI Grok 4 (creative & analytical)- Plus 400+ other models available by full name
🛠️ Management Commands
Check status:
View logs:
Restart container:
Interactive shell:
Manual Docker commands:
⚠️ Troubleshooting
Container not running?
MCP connection issues?
Build issues?
Large file attachment errors (400 Bad Request)?
- Fixed with 1,048,576 token limit (1M+ tokens supported)
- Check logs:
python3 tools/docker_manager.py logs
- Verify container is running:
python3 tools/docker_manager.py status
Still having issues?
- Check your API key in
.env
file - Make sure Docker is running and accessible
- Run interactive mode:
python3 tools/docker_manager.py
- Open an issue
📄 License
Apache 2.0 License - see LICENSE
Made with ❤️ for Claude Code users
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
A Model Context Protocol server that provides unified access to 400+ AI models from 30+ providers through OpenRouter's API, enabling seamless integration with Claude Code.
Related MCP Servers
- -securityFlicense-qualityA Model Context Protocol server that enables Claude users to access specialized OpenAI agents (web search, file search, computer actions) and a multi-agent orchestrator through the MCP protocol.Last updated -8Python
- -securityFlicense-qualityA Model Context Protocol server that gives Claude access to multiple AI models (Gemini, OpenAI, OpenRouter) for enhanced code analysis, problem-solving, and collaborative development through AI orchestration with conversations that continue across tasks.Last updated -5,128Python
- AsecurityAlicenseAqualityA secure Model Context Protocol server that enables Claude Code to connect with OpenAI and Google Gemini models, allowing users to query multiple AI providers through a standardized interface.Last updated -32JavaScriptMIT License
- -securityFlicense-qualityAn enhanced Model Context Protocol server that enables Claude to seamlessly collaborate with multiple AI models (Gemini, OpenAI, local models) for code analysis and development tasks, maintaining context across conversations.Last updated -14423JavaScript