
OpenRouter
io.github.tsilvaPublished by GitHub account tsilvav1.1.8Updated Oct 24, 2026
MCP server providing access to 300+ AI models via OpenRouter
The publisher's own server: 370.ai — AI Gateway: 100+ Chat Models, Image & Speech Generation
Overview
A local MCP server that lets an assistant call OpenRouter's 300+ AI models for chat, image generation, embeddings, and model discovery.
- What you can do
- Send prompts or message lists to an OpenRouter chat model and get responses back in the assistant session. Generate an image from a prompt and optionally save it to an absolute local path. Create embeddings for a string or a list of strings. List available models, filtered by capability such as vision, image generation, embedding, tool use, or long context. Search model names and slugs and get up to 20 matches.
- When to use it
- Useful when you want one assistant session to reach many different model providers through a single OpenRouter account, for example to compare models, generate images, or produce embeddings without installing separate provider integrations.
- Requirements
- Runs locally over stdio as a Python package (Python 3.10+), typically launched with uvx. Requires an OpenRouter account and the OPENROUTER_API_KEY environment variable for all tool calls. Optional DEFAULT_TEXT_MODEL, DEFAULT_IMAGE_MODEL, and DEFAULT_EMBEDDING_MODEL variables supply fallback models. Network access to OpenRouter is needed.
Installation
In SourceWeft
- Open OpenRouter in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
[mcp-openrouter]
🚀 One MCP server for OpenRouter models 🚀
mcp-openrouter is a Python MCP server that lets Codex, Claude Code, opencode, and other MCP hosts call OpenRouter models from local stdio tools.
It exposes chat, image generation, embeddings, model listing, and model search through a small FastMCP server with retry handling, host-aware installation, and optional default model environment variables.
Install
Install the published server into every detected MCP client:
Install into selected clients:
Run from a local checkout:
mcp-openrouter with no arguments starts the stdio server. The explicit command is uv run mcp-openrouter serve.
Commands
Tools
Example MCP prompts:
Configuration
OPENROUTER_API_KEY is required for all tool calls. For a local checkout, its .keyenv.toml maps the variable to macOS Keychain: use keyenv set OPENROUTER_API_KEY to replace it, keyenv doctor to verify it, and keyenv run -- ... to launch the server or live tests. Python still reads the value normally from os.environ.
Optional defaults make the model parameter optional for matching tools:
The current tools read DEFAULT_TEXT_MODEL, DEFAULT_IMAGE_MODEL, and DEFAULT_EMBEDDING_MODEL. DEFAULT_CODE_MODEL and DEFAULT_VISION_MODEL are available for client conventions. Non-secret defaults may remain in .env; the API key must not.
Notes
- Python 3.10+ is required.
- The published runtime command installed into hosts is
uvx mcp-openrouter. - Supported installer targets are Codex, Claude Code, and opencode.
generate_image.output_pathmust be absolute, for example/Users/you/output.png.- Unit tests mock network calls.
tests/test_tools.pyrequires a liveOPENROUTER_API_KEY. - After changing server code, restart the MCP host so it launches a fresh server process.
- Keep
server.json,CHANGELOG.md, and the package version in sync before release. The Makefile release helper ismake release-x.y.z.
Local MCP Development
Register a local checkout when you want an MCP host to run your working tree instead of the published PyPI package.
Claude Code:
Codex:
opencode:
Architecture
[mcp-openrouter architecture diagram]
License
Source: README.md at commit 9dbab24
Tools
0Version history
1- v1.1.8LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Other Router integrations
370.ai — AI Gateway: 100+ Chat Models, Image & Speech Generation
ai.routerOfficial publisher
Remote AI gateway MCP server that lets an assistant call 100+ chat models, generate images, and convert text to speech through one 370.ai API key.

AI Media Router
Published by GitHub account jutsuhq
Local MCP server that generates images and videos through 40+ providers using your own API keys, with price comparison and a searchable local asset library.

Bike Router
Published by GitHub account JonasHeinickeBio
MCP bridge to a self-hosted pyBikeRouter API that plans OSM-based bike routes with weather, sights and GeoJSON/GPX exports.

Uniswap Universal Router Decoder
Published by GitHub account Elnaril
Local MCP server that decodes and encodes Uniswap Universal Router calldata for V2, V3 and V4 swaps, read-only and never signing or sending.

x402 Router
Published by GitHub account camerxnduff
Read-only MCP server that searches a probed registry of live x402 pay-per-call endpoints and routes an agent to the best-scored one.