OpenRouter Model Selector MCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@OpenRouter Model Selector MCPfind a model for text to speech"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
OpenRouter Model Selector MCP
OpenRouter Model Selector is a Model Context Protocol (MCP) server that helps AI assistants automatically find, filter, and rank the best AI models for a specific task using the OpenRouter API.
Whether you need a model for coding, image generation, text-to-speech (TTS), or transcription (STT), this tool queries the live OpenRouter directory, groups them by your requested modality, and ranks the top 10 models based on:
Price (1 to 5 stars - 5 stars being the most expensive).
Benchmark / Performance (1 to 5 stars based on intelligence index or Elo rating).
Features
Zero Configuration: No API keys required. It uses OpenRouter's public
/api/v1/modelsendpoint.Smart Modality Routing: Understands keywords to correctly filter for
image-understanding,video-understanding,transcription,speech,image-generation, andvideo-generation.Dynamic Pricing Calculation: Accurately compares prompt/completion/image output prices to give a relative cost score.
FastMCP Built: Built on top of
fastmcpfor quick integration with MCP-compatible clients like Claude Desktop, Cursor, or Google Antigravity.
Related MCP server: OpenRouter MCP Server
Installation
Clone this repository:
git clone https://github.com/your-username/openrouter-model-selector-mcp.git
cd openrouter-model-selector-mcpCreate a virtual environment and install dependencies:
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtUsage & Configuration
To use this with any MCP-compatible AI assistant, you need to add it to your MCP configuration file (e.g., mcp.json or claude_desktop_config.json).
Here is an example configuration:
{
"mcpServers": {
"openrouter-model-selector": {
"command": "/absolute/path/to/your/cloned/repo/.venv/bin/python",
"args": [
"/absolute/path/to/your/cloned/repo/openrouter_agent_selector.py"
]
}
}
}Make sure to replace /absolute/path/to/your/cloned/repo/ with the actual path on your machine.
How it works
When connected, your AI assistant will have access to a tool called select_best_agent.
If you ask your AI: "Find me an AI model for text to speech", it will call this tool with topic="text to speech", fetch the relevant models, and present you with a Markdown-formatted list containing the stars for Price and Benchmark.
Security & Privacy
This tool does not require or transmit any private API keys. It only reads public model catalog data from OpenRouter.
License
MIT License
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/rifatsaltoglu/OpenRouter-Model-Selector-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server