multi-llm-mcp
Allows delegating coding tasks to NVIDIA NIM cloud models, providing access to high-performance LLMs such as Llama 3.1 405B, Mixtral, and Code Llama.
Allows delegating coding tasks to local Ollama models, enabling fully offline and private coding assistance with models like Llama 3, CodeLlama, Mistral, and Gemma.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
multi-llm-mcp
An MCP server that lets any IDE agent delegate coding tasks to any LLM — cloud APIs or local models — through a single unified interface.
Instead of being locked into one model, your coding agent can call NVIDIA NIM, OpenRouter, Groq, DeepSeek, or a local Ollama model for a second opinion, code review, or specialized task.
Features
5 providers out of the box — NVIDIA NIM, OpenRouter, Groq, DeepSeek, Ollama
Local model support — Use Ollama for fully offline, private coding assistance
Fine-grained control — Set
temperature,max_tokens, andsystem_promptper callSecure by design — API keys stay in environment variables, never in code
Connection pooling — Clients are cached for fast, efficient API calls
MCP standard — Works with any MCP-compatible IDE (Claude Desktop, VS Code, Cursor, Windsurf, etc.)
Standalone agent skill — A zero-dependency CLI variant (
multi-llm-skill/) that works in any agent harness, even without MCP support
Related MCP server: claude-code-delegate-local
Supported Providers
Provider | Type | Models |
Local | Llama 3, CodeLlama, Mistral, Gemma, etc. | |
Cloud | Llama 3.1 405B, Mixtral, Code Llama, etc. | |
Cloud | Claude, GPT-4, Gemini, 200+ models | |
Cloud | Llama 3, Mixtral, Gemma (ultra-fast inference) | |
Cloud | DeepSeek Coder, DeepSeek Chat |
Quick Start
1. Clone and install
git clone https://github.com/arjunkr303/multi-llm-mcp.git
cd multi-llm-mcp
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -e .2. Configure API keys
cp .env.example .envEdit .env and add your API keys. You only need keys for the providers you want to use. Ollama requires no API key.
NVIDIA_API_KEY=your_nvidia_key_here
OPENROUTER_API_KEY=your_openrouter_key_here
GROQ_API_KEY=your_groq_key_here
DEEPSEEK_API_KEY=your_deepseek_key_here3. Connect to your IDE
Add this to your MCP configuration:
Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"multi-llm-gateway": {
"command": "/path/to/multi-llm-mcp/venv/bin/python",
"args": ["-m", "multi_llm_mcp"]
}
}
}VS Code / Cursor (.vscode/mcp.json or IDE MCP settings):
{
"mcpServers": {
"multi-llm-gateway": {
"command": "/path/to/multi-llm-mcp/venv/bin/python",
"args": ["-m", "multi_llm_mcp"]
}
}
}Replace
/path/to/multi-llm-mcpwith the actual path where you cloned the repo.
4. Use it
Once connected, your IDE agent has access to the ask_llm tool. You can invoke it by prompting your agent naturally. The agent will call the MCP server behind the scenes.
Tool: ask_llm
Delegates a coding question, code review, or rewrite task to an external LLM.
Parameters:
Parameter | Default | Description |
| (required) | The question, code snippet, or task |
|
| Role context for the model |
|
| Which provider to use |
|
| Model name for that provider |
|
| 0.0 = deterministic, 1.0 = creative |
|
| Maximum response length |
Example Prompts
Use these prompts in your IDE chat to trigger the MCP tool:
Rewrite code using a cloud model:
Use NVIDIA's Llama 3.1 to rewrite the database query in db.py to use async/await.Get a code review from a different LLM:
Ask Groq's Llama 3 to review src/multi_llm_mcp/server.py for performance issues and suggest improvements.Refactor with a local model (Ollama):
Use Ollama to refactor the authentication logic in auth.py into smaller, testable functions.Generate tests using DeepSeek:
Ask DeepSeek Coder to write unit tests for the parse_config function in utils.py.Get a second opinion on architecture:
Use OpenRouter's Claude to evaluate whether the current project structure follows
best practices and suggest a better layout.Agent Skill — use without MCP
multi-llm-skill/ is a standalone agent skill that bundles the same provider
logic into a single zero-dependency CLI (Python stdlib only — no pip installs,
no server process). It gives the same delegation capability to any agent:
Native skill harnesses (Claude Code, OpenCode, etc.) — copy the folder into your skills directory and it auto-triggers on "second opinion", "independent review", and similar requests
Any other agent (Cursor, Codex CLI, Cline, Gemini CLI, ...) — paste one ready-made snippet into the agent's rules file (
AGENTS.md,CLAUDE.md,.cursorrules, ...)Standalone — useful right from the terminal:
python multi-llm-skill/scripts/ask_llm.py --list-providers
python multi-llm-skill/scripts/ask_llm.py --system-prompt "You are a senior staff engineer." --prompt "Review this function for bugs: <code>"Both the MCP server and the skill read the same .env keys and call the same
provider endpoints, so they can coexist independently. Full instructions:
multi-llm-skill/README.md.
Using with Ollama (Local Models)
For fully private, offline coding assistance:
# Install Ollama: https://ollama.com/download
ollama pull llama3
ollama pull codellamaThen use provider: "ollama" with any pulled model name. No API key needed.
Security
API keys are loaded from environment variables only
.envis gitignored and never committedNo secrets are hardcoded in source code
All API communication happens server-side only
Project Structure
multi-llm-mcp/
├── src/multi_llm_mcp/ # MCP server package
│ ├── __init__.py
│ ├── __main__.py # entry point: python -m multi_llm_mcp
│ ├── server.py # FastMCP server & the ask_llm tool
│ └── providers.py # provider registry & client factory
├── multi-llm-skill/ # standalone agent skill (zero deps, no MCP)
│ ├── SKILL.md # skill metadata + agent instructions
│ ├── scripts/ask_llm.py # the CLI the agent runs
│ └── README.md # skill install & usage
├── tests/ # pytest suite
├── pyproject.toml
├── .env.example
└── LICENSERunning Tests
pip install -e . pytest
pytestLicense
MIT — see LICENSE for details.
This server cannot be deployed
Maintenance
Related MCP Connectors
One MCP endpoint for Claude, GPT & Gemini: 100+ tools + no-code connectors + agent workers.
Connect MCP clients to 2,000+ AI models without managing provider API keys.
Chat, image, video, and audio models from many vendors behind one remote MCP server and one key.
The OpenRouter MCP server plugs OpenRouter into the AI tools you already use. Once connected, your assistant can pull live OpenRouter data (models, prices, your credits, rankings, and docs) and send quick test messages, all without leaving your editor.
Related MCP Servers
- AlicenseBqualityCmaintenanceEnables AI agents to interact with multiple LLM providers (OpenAI, Anthropic, Google, DeepSeek) through a standardized interface, making it easy to switch between models or use multiple models in the same application.16MIT
- AlicenseAqualityBmaintenanceMCP server that delegates Claude Code subagents to alternative backends such as local models, DeepSeek, or AWS Bedrock, while keeping your Claude Code orchestrator session intact.518MIT
- AlicenseAqualityAmaintenanceEnables AI agents to delegate scoped tasks across multiple providers like Codex, Claude Code, and Antigravity through a single local MCP server, with quota monitoring, notifications, and remote control via messaging apps.132Apache 2.0
- AlicenseAqualityAmaintenanceBridges multiple CLI coding agents (Codex, Cursor, OpenCode, Claude, Antigravity) into any MCP client, enabling delegation of prompts, parallel execution, and code review workflows.682 npmMozilla Public 2.0