OpenRouter
io.github.tsilva/mcp-openrouter
MCP server providing access to 300+ AI models via OpenRouter
Is this your project? Claim this entry to answer questions, hear about reviews and appear as the author.
- Repository
- github.com/tsilva/mcp-openrouter
- Version
- 1.1.8
- Author
- tsilva (namespace verified by the registry)
- Source
- Official MCP registry (updated Apr 29, 2026)
Reviews
No review yet.
Sign in to leave a review. Your email is all you need.
Questions for the author
No question yet.
Sign in to ask the author a question. The author has not claimed this entry yet: they will only be told if they claim it. Other members can answer.
How to install it
Variables to fill in: OPENROUTER_API_KEY, DEFAULT_TEXT_MODEL, DEFAULT_IMAGE_MODEL, DEFAULT_CODE_MODEL, DEFAULT_VISION_MODEL, DEFAULT_EMBEDDING_MODEL.
On your machine
Claude Code
The server runs on your machine (pypi package). In a terminal:
claude mcp add mcp-openrouter -e OPENROUTER_API_KEY=YOUR_OPENROUTER_API_KEY -e DEFAULT_TEXT_MODEL=YOUR_DEFAULT_TEXT_MODEL -e DEFAULT_IMAGE_MODEL=YOUR_DEFAULT_IMAGE_MODEL -e DEFAULT_CODE_MODEL=YOUR_DEFAULT_CODE_MODEL -e DEFAULT_VISION_MODEL=YOUR_DEFAULT_VISION_MODEL -e DEFAULT_EMBEDDING_MODEL=YOUR_DEFAULT_EMBEDDING_MODEL -- uvx [email protected]Claude Desktop claude_desktop_config.json
Settings, Developer, Edit config, then add:
{
"mcpServers": {
"mcp-openrouter": {
"command": "uvx",
"args": [
"[email protected]"
],
"env": {
"OPENROUTER_API_KEY": "YOUR_OPENROUTER_API_KEY",
"DEFAULT_TEXT_MODEL": "YOUR_DEFAULT_TEXT_MODEL",
"DEFAULT_IMAGE_MODEL": "YOUR_DEFAULT_IMAGE_MODEL",
"DEFAULT_CODE_MODEL": "YOUR_DEFAULT_CODE_MODEL",
"DEFAULT_VISION_MODEL": "YOUR_DEFAULT_VISION_MODEL",
"DEFAULT_EMBEDDING_MODEL": "YOUR_DEFAULT_EMBEDDING_MODEL"
}
}
}
}Cursor ~/.cursor/mcp.json
In ~/.cursor/mcp.json:
{
"mcpServers": {
"mcp-openrouter": {
"command": "uvx",
"args": [
"[email protected]"
],
"env": {
"OPENROUTER_API_KEY": "YOUR_OPENROUTER_API_KEY",
"DEFAULT_TEXT_MODEL": "YOUR_DEFAULT_TEXT_MODEL",
"DEFAULT_IMAGE_MODEL": "YOUR_DEFAULT_IMAGE_MODEL",
"DEFAULT_CODE_MODEL": "YOUR_DEFAULT_CODE_MODEL",
"DEFAULT_VISION_MODEL": "YOUR_DEFAULT_VISION_MODEL",
"DEFAULT_EMBEDDING_MODEL": "YOUR_DEFAULT_EMBEDDING_MODEL"
}
}
}
}VS Code .vscode/mcp.json
In .vscode/mcp.json:
{
"servers": {
"mcp-openrouter": {
"type": "stdio",
"command": "uvx",
"args": [
"[email protected]"
],
"env": {
"OPENROUTER_API_KEY": "YOUR_OPENROUTER_API_KEY",
"DEFAULT_TEXT_MODEL": "YOUR_DEFAULT_TEXT_MODEL",
"DEFAULT_IMAGE_MODEL": "YOUR_DEFAULT_IMAGE_MODEL",
"DEFAULT_CODE_MODEL": "YOUR_DEFAULT_CODE_MODEL",
"DEFAULT_VISION_MODEL": "YOUR_DEFAULT_VISION_MODEL",
"DEFAULT_EMBEDDING_MODEL": "YOUR_DEFAULT_EMBEDDING_MODEL"
}
}
}
}ChatGPT
ChatGPT only connects to remote servers (an https address). This package runs locally: use one of the apps above.
These configurations are built from the information published by the author. Check the repository before installing a local server.
Our test
This server runs on your machine: we cannot test it remotely.
Cite this entry
For an article or comparison, use this permanent link and include the test date. The description comes from its source; reviews belong to members. A successful test is not a security audit.
[OpenRouter — L’Agora](https://lagora.dev/en/entry/io.github.tsilva/mcp-openrouter)
Comments
No comment yet. A question, a tip? Start the discussion.
Sign in to comment.
Badge for your README
Show that your project is listed (and tested, if it responds): paste this code in your README. The badge follows the latest test and links back to this entry.
Markdown (GitHub)
[](https://lagora.dev/en/entry/io.github.tsilva/mcp-openrouter)HTML
<a href="https://lagora.dev/en/entry/io.github.tsilva/mcp-openrouter"><img src="https://lagora.dev/badge/io.github.tsilva/mcp-openrouter.svg?lang=en" alt="io.github.tsilva/mcp-openrouter on L’Agora" height="20"></a>For the entry’s author only: sign in to continue.