cross-llm-mcp
About
A Model Context Protocol (MCP) server that provides access to multiple Large Language Model (LLM) APIs including ChatGPT, Claude, Gemini, and DeepSeek.
Details
- Author
- jamesanz
- Categories
- Productivity, AI, Other, API
Jump to
Setup
Install cross-llm-mcp in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/jamesanz/cross-llm-mcp
Follow the installation instructions in the repository README, then restart your MCP client.
Access multiple LLM APIs from one place.Call ChatGPT, Claude, DeepSeek, Gemini, Grok, Kimi, Perplexity, Mistral, and Hugging Face Inference Router with intelligent model selection, preferences, and prompt logging.
- π9 LLM Providersβ ChatGPT, Claude, DeepSeek, Gemini, Grok, Kimi, Perplexity, Mistral, Hugging Face
- π―Smart Model Selectionβ Tag-based preferences (coding, business, reasoning, math, creative, general)
- πPrompt Loggingβ Track all prompts with history, statistics, and analytics
- π°Cost Optimizationβ Choose flagship or cheaper models based on preference
- β‘Easy Setupβ One-click install in Cursor or simple manual setup
- πCall All LLMsβ Get responses from all providers simultaneously
Ready to access multiple LLMs? Install in seconds:
npm install -g cross-llm-mcp # Or from source: git clone https://github.com/JamesANZ/cross-llm-mcp.git cd cross-llm-mcp && npm install && npm run build
- call-chatgptβ OpenAI's ChatGPT API
- call-claudeβ Anthropic's Claude API
- call-deepseekβ DeepSeek API
- call-geminiβ Google's Gemini API
- call-grokβ xAI's Grok API
- call-kimiβ Moonshot AI's Kimi API
- call-perplexityβ Perplexity AI API
- call-mistralβ Mistral AI API
- call-huggingfaceβ Hugging Face Inference Router (OpenAI-compatible Hub models)
- call-all-llmsβ Call all LLMs with the same prompt
- call-llmβ Call a specific provider by name
- get-user-preferencesβ Get current preferences
- set-user-preferencesβ Set default model, cost preference, and tag-based preferences
- get-models-by-tagβ Find models by tag (coding, business, reasoning, math, creative, general)
- get-prompt-historyβ View prompt history with filters
- get-prompt-statsβ Get statistics about prompt logs
- delete-prompt-entriesβ Delete log entries by criteria
- clear-prompt-historyβ Clear all prompt logs
cursor://anysphere.cursor-deeplink/mcp/install?name=cross-llm-mcp&config=eyJjcm9zcy1sbG0tbWNwIjp7ImNvbW1hbmQiOiJucHgiLCJhcmdzIjpbIi15IiwiY3Jvc3MtbGxtLW1jcCJdfX0=
After installation, add your API keys in Cursor settings (see Configuration below).
# Clone and build git clone https://github.com/JamesANZ/cross-llm-mcp.git cd cross-llm-mcp npm install npm run build
macOS:~/Library/Application Support/Claude/claude_desktop_config.json
Windows:%APPDATA%\Claude\claude_desktop_config.json
{ "mcpServers": { "cross-llm-mcp": { "command": "node", "args": ["/absolute/path/to/cross-llm-mcp/build/index.js"], "env": { "OPENAI_API_KEY": "your_openai_api_key_here", "ANTHROPIC_API_KEY": "your_anthropic_api_key_here", "DEEPSEEK_API_KEY": "your_deepseek_api_key_here", "GEMINI_API_KEY": "your_gemini_api_key_here", "XAI_API_KEY": "your_grok_api_key_here", "KIMI_API_KEY": "your_kimi_api_key_here", "PERPLEXITY_API_KEY": "your_perplexity_api_key_here", "MISTRAL_API_KEY": "your_mistral_api_key_here", "HF_TOKEN": "your_huggingface_token_here" } } } }
Restart Claude Desktop after configuration.
Set environment variables for the LLM providers you want to use:
export OPENAI_API_KEY="your_openai_api_key" export ANTHROPIC_API_KEY="your_anthropic_api_key" export DEEPSEEK_API_KEY="your_deepseek_api_key" export GEMINI_API_KEY="your_gemini_api_key" export XAI_API_KEY="your_grok_api_key" export KIMI_API_KEY="your_kimi_api_key" export PERPLEXITY_API_KEY="your_perplexity_api_key" export MISTRAL_API_KEY="your_mistral_api_key" export HF_TOKEN="your_huggingface_token" # Or: HUGGINGFACE_API_KEY (same as HF_TOKEN) # Optional: DEFAULT_HUGGINGFACE_MODEL, HUGGINGFACE_INFERENCE_BASE_URL (default https://router.huggingface.co/v1)
- OpenAI:https://platform.openai.com/api-keys
- Anthropic:https://console.anthropic.com/
- DeepSeek:https://platform.deepseek.com/
- Google Gemini:https://makersuite.google.com/app/apikey
- xAI Grok:https://console.x.ai/
- Moonshot AI:https://platform.moonshot.ai/
- Perplexity:https://www.perplexity.ai/hub
- Mistral:https://console.mistral.ai/
- Hugging Face: Create a fine-grained token withInference(serverless / Inference Providers) access athttps://huggingface.co/settings/tokens. SeeChat Completionfor supported models.
Running Hub models locally (outside this MCP)
This server calls Hugging FaceβshostedInference Router; it does not download weights or run PyTorch/GGUF inside Node. To run models on your machine, use tools such asOllama,llama.cpp,Text Generation Inference, or Hugging FaceInference Endpoints, then point other clients at those services if they expose an API.
{ "tool": "call-chatgpt", "arguments": { "prompt": "Explain quantum computing in simple terms", "temperature": 0.7, "max_tokens": 500 } }
Get a response from a Hub model via the Inference Router (modelis the Hub repo id, e.g.Qwen/Qwen2.5-7B-Instruct):
{ "tool": "call-huggingface", "arguments": { "prompt": "Reply with exactly: ok", "model": "Qwen/Qwen2.5-7B-Instruct", "temperature": 0.3, "max_tokens": 32 } }
{ "tool": "call-all-llms", "arguments": { "prompt": "Write a short poem about AI", "temperature": 0.8 } }
Automatically use the best model for each task type:
{ "tool": "set-user-preferences", "arguments": { "defaultModel": "gpt-4o", "costPreference": "cheaper", "tagPreferences": { "coding": "deepseek-r1", "general": "gpt-4o", "business": "claude-3.5-sonnet-20241022", "reasoning": "deepseek-r1", "math": "deepseek-r1", "creative": "gpt-4o" } } }
{ "tool": "get-prompt-history", "arguments": { "provider": "chatgpt", "limit": 10 } }
- coding:deepseek-r1,deepseek-coder,gpt-4o,claude-3.5-sonnet-20241022
- business:claude-3-opus-20240229,gpt-4o,gemini-1.5-pro
- reasoning:deepseek-r1,o1-preview,claude-3.5-sonnet-20241022
- math:deepseek-r1,o1-preview,o1-mini
- creative:gpt-4o,claude-3-opus-20240229,gemini-1.5-pro
- general:gpt-4o-mini,claude-3-haiku-20240307,gemini-1.5-flash
- Multi-Perspective Analysisβ Get different perspectives from multiple LLMs
- Model Comparisonβ Compare responses to understand strengths and weaknesses
- Cost Optimizationβ Choose the most cost-effective model for each task
- Quality Assuranceβ Cross-reference responses from multiple models
- Intelligent Selectionβ Automatically use the best model for coding, business, reasoning, etc.
- Prompt Analyticsβ Track usage, costs, and patterns with automatic logging
Built with:Node.js, TypeScript, MCP SDK
Dependencies:@modelcontextprotocol/sdk,superagent,zod
Platforms:macOS, Windows, Linux
- Unix/macOS:~/.cross-llm-mcp/preferences.json
- Windows:%APPDATA%/cross-llm-mcp/preferences.json
- Unix/macOS:~/.cross-llm-mcp/prompts.json
- Windows:%APPDATA%/cross-llm-mcp/prompts.json
βIf this project helps you, please star it on GitHub!β
Contributions welcome! Please open an issue or submit a pull request.
MIT License β seeLICENSE.mdfor details.
If you find this project useful, consider supporting it:
lnbc1pjhhsqepp5mjgwnvg0z53shm22hfe9us289lnaqkwv8rn2s0rtekg5vvj56xnqdqqcqzzsxqyz5vqsp5gu6vh9hyp94c7t3tkpqrp2r059t4vrw7ps78a4n0a2u52678c7yq9qyyssq7zcferywka50wcy75skjfrdrk930cuyx24rg55cwfuzxs49rc9c53mpz6zug5y2544pt8y9jflnq0ltlha26ed846jh0y7n4gm8jd3qqaautqa
βΏ Bitcoin:bc1ptzvr93pn959xq4et6sqzpfnkk2args22ewv5u2th4ps7hshfaqrshe0xtp
Ξ Ethereum/EVM:0x42ea529282DDE0AA87B42d9E83316eb23FE62c3f
Integrates Deepseek models with any MCP-compatible client, such as Claude Desktop.
Access DeepSeek's advanced language models via the DeepSeek API.
MCP server for OpenAI ChatGPT API β chat, vision, and embeddings
MCP server for xAI Grok API β chat, vision, search, and embeddings (Rust, stdio)
Integrate with the Grok AI API to access its powerful language models.
A unified interface to various LLM providers like OpenAI, Anthropic, and Google using Pydantic AI.
A production-ready MCP server for ChatGPT and o3-pro, featuring caching, cost tracking, and rate limiting.
A bridge to OpenAI's Chat Completion and Assistants APIs.
Integrate with OpenRouter.ai's diverse ecosystem of AI models. Requires an OpenRouter API key.
Persistent memory for any AI assistant. Zero token cost until recall. Stores memories in local SQLite, ranks by 6-factor scoring, returns results 79% smaller than JSON. Works with Claude, ChatGPT, Grok, Cursor, Windsurf, and any MCP client.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





