Cross-LLM MCP Server
This server provides access to multiple Large Language Model (LLM) APIs including ChatGPT, Claude, and DeepSeek through a Model Context Protocol (MCP) interface, along with Bitcoin and Lightning network operations.
LLM Capabilities:
Call individual LLMs: Use tools like
call-chatgpt,call-claude, andcall-deepseekto send prompts to specific AI providers with configurable parameters like model, temperature, and token limitsCombine LLM responses: Use
call-all-llmsto send the same prompt to all available LLMs simultaneously and receive combined output with individual responses and a summaryDynamic provider selection: Use
call-llmto select an LLM provider ("chatgpt", "claude", or "deepseek") at runtimeCompare model outputs: Facilitate multi-perspective analysis, model comparison, and quality assurance
Bitcoin & Lightning Network Features:
Generate new Bitcoin key pairs and addresses
Validate Bitcoin addresses
Decode raw Bitcoin transactions from hexadecimal
Retrieve latest Bitcoin block information
Get specific Bitcoin transaction details using transaction ID
Decode BOLT11 Lightning invoices
Pay BOLT11 Lightning invoices
Configuration: Set environment variables for API keys (OPENAI_API_KEY, ANTHROPIC_API_KEY, DEEPSEEK_API_KEY) and default models for each provider.
Used for managing environment variables including API keys and default model configurations for the various LLM providers.
Provides access to OpenAI's ChatGPT API for generating responses from various GPT models with customizable parameters for temperature and token limits.
Implements schema validation for tool parameters to ensure proper formatting of requests to the different LLM APIs.
Click on "Deploy 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., "@Cross-LLM MCP Server call ChatGPT to explain quantum computing in simple terms"
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.
π€ Cross-LLM MCP Server
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.
An MCP (Model Context Protocol) server that provides unified access to multiple Large Language Model APIs for AI coding environments like Cursor and Claude Desktop.
Why Use Cross-LLM MCP?
π 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
Related MCP server: OpenRouter MCP Server
Quick Start
Ready to access multiple LLMs? Install in seconds:
Install in Cursor (Recommended):
Or install manually:
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 buildFeatures
π€ Individual LLM Tools
call-chatgptβ OpenAI's ChatGPT APIcall-claudeβ Anthropic's Claude APIcall-deepseekβ DeepSeek APIcall-geminiβ Google's Gemini APIcall-grokβ xAI's Grok APIcall-kimiβ Moonshot AI's Kimi APIcall-perplexityβ Perplexity AI APIcall-mistralβ Mistral AI APIcall-huggingfaceβ Hugging Face Inference Router (OpenAI-compatible Hub models)
π Combined Tools
call-all-llmsβ Call all LLMs with the same promptcall-llmβ Call a specific provider by name
βοΈ Preferences & Model Selection
get-user-preferencesβ Get current preferencesset-user-preferencesβ Set default model, cost preference, and tag-based preferencesget-models-by-tagβ Find models by tag (coding, business, reasoning, math, creative, general)
π Prompt Logging
get-prompt-historyβ View prompt history with filtersget-prompt-statsβ Get statistics about prompt logsdelete-prompt-entriesβ Delete log entries by criteriaclear-prompt-historyβ Clear all prompt logs
Installation
Cursor (One-Click)
Click the install link above or use:
cursor://anysphere.cursor-deeplink/mcp/install?name=cross-llm-mcp&config=eyJjcm9zcy1sbG0tbWNwIjp7ImNvbW1hbmQiOiJucHgiLCJhcmdzIjpbIi15IiwiY3Jvc3MtbGxtLW1jcCJdfX0=After installation, add your API keys in Cursor settings (see Configuration below).
Manual Installation
Requirements: Node.js 18+ and npm
# Clone and build
git clone https://github.com/JamesANZ/cross-llm-mcp.git
cd cross-llm-mcp
npm install
npm run buildClaude Desktop
Add to claude_desktop_config.json:
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.
Configuration
API Keys
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)Getting 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 with Inference (serverless / Inference Providers) access at https://huggingface.co/settings/tokens. See Chat Completion for supported models.
Running Hub models locally (outside this MCP)
This server calls Hugging Faceβs hosted Inference Router; it does not download weights or run PyTorch/GGUF inside Node. To run models on your machine, use tools such as Ollama, llama.cpp, Text Generation Inference, or Hugging Face Inference Endpoints, then point other clients at those services if they expose an API.
Usage Examples
Call ChatGPT
Get a response from OpenAI:
{
"tool": "call-chatgpt",
"arguments": {
"prompt": "Explain quantum computing in simple terms",
"temperature": 0.7,
"max_tokens": 500
}
}Call Hugging Face
Get a response from a Hub model via the Inference Router (model is 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
}
}Call All LLMs
Get responses from all providers:
{
"tool": "call-all-llms",
"arguments": {
"prompt": "Write a short poem about AI",
"temperature": 0.8
}
}Set Tag-Based Preferences
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"
}
}
}Get Prompt History
View your prompt logs:
{
"tool": "get-prompt-history",
"arguments": {
"provider": "chatgpt",
"limit": 10
}
}Model Tags
Models are tagged by their strengths:
coding:
deepseek-r1,deepseek-coder,gpt-4o,claude-3.5-sonnet-20241022business:
claude-3-opus-20240229,gpt-4o,gemini-1.5-proreasoning:
deepseek-r1,o1-preview,claude-3.5-sonnet-20241022math:
deepseek-r1,o1-preview,o1-minicreative:
gpt-4o,claude-3-opus-20240229,gemini-1.5-progeneral:
gpt-4o-mini,claude-3-haiku-20240307,gemini-1.5-flash
Use Cases
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
Technical Details
Built with: Node.js, TypeScript, MCP SDK
Dependencies: @modelcontextprotocol/sdk, superagent, zod
Platforms: macOS, Windows, Linux
Preference Storage:
Unix/macOS:
~/.cross-llm-mcp/preferences.jsonWindows:
%APPDATA%/cross-llm-mcp/preferences.json
Prompt Log Storage:
Unix/macOS:
~/.cross-llm-mcp/prompts.jsonWindows:
%APPDATA%/cross-llm-mcp/prompts.json
Contributing
β If this project helps you, please star it on GitHub! β
Contributions welcome! Please open an issue or submit a pull request.
License
MIT License β see LICENSE.md for details.
Support
If you find this project useful, consider supporting it:
β‘ Lightning Network
lnbc1pjhhsqepp5mjgwnvg0z53shm22hfe9us289lnaqkwv8rn2s0rtekg5vvj56xnqdqqcqzzsxqyz5vqsp5gu6vh9hyp94c7t3tkpqrp2r059t4vrw7ps78a4n0a2u52678c7yq9qyyssq7zcferywka50wcy75skjfrdrk930cuyx24rg55cwfuzxs49rc9c53mpz6zug5y2544pt8y9jflnq0ltlha26ed846jh0y7n4gm8jd3qqaautqaβΏ Bitcoin: bc1ptzvr93pn959xq4et6sqzpfnkk2args22ewv5u2th4ps7hshfaqrshe0xtp
Ξ Ethereum/EVM: 0x42ea529282DDE0AA87B42d9E83316eb23FE62c3f
Available Tools
7 toolsdecode_invoiceC
Decode a Lightning invoice
Inputs: invoice (required).
decode_txC
Decode a Bitcoin transaction
Inputs: rawHex (required).
generate_keyB
Generate a new Bitcoin key pair and address
Inputs: no named parameters.
get_latest_blockC
Get the latest block
Inputs: no named parameters.
get_transactionC
Get transaction details
Inputs: txid (required).
pay_invoiceC
Pay a Lightning invoice
Inputs: invoice (required).
validate_addressC
Validate a Bitcoin address
Inputs: address (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 7 tools
Each tool has a clearly distinct purpose targeting specific resources and actions in the Bitcoin/Lightning domain. For example, decode_invoice and pay_invoice handle Lightning payments, while decode_tx and get_transaction handle Bitcoin transactions, with no overlapping functionality that would cause confusion.
All tool names follow a consistent verb_noun pattern using snake_case, such as decode_invoice, generate_key, and validate_address. This uniformity makes the tool set predictable and easy to understand for agents.
With 7 tools, the server is well-scoped for its purpose of Bitcoin and Lightning operations. Each tool serves a specific, necessary function without redundancy, making the count appropriate for the domain's core needs.
The tool set covers key operations like decoding, generating, validating, and paying, but there are minor gaps such as creating invoices or managing wallet balances. However, agents can still perform essential workflows with the provided tools.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yoβ¦
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
Chat, image, video, and audio models from many vendors behind one remote MCP server and one key.
Real-time chat hub for AI agents β Claude Code, Cursor, Cline, Codex over MCP or REST.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceA unified Model Context Protocol server that aggregates multiple MCP servers into one, allowing AI assistants like Claude Desktop, Cursor, and Cherry Studio to connect to a single server instead of managing multiple instances.990 npm530Apache 2.0
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that provides unified access to 400+ AI models from 30+ providers through OpenRouter's API, enabling seamless integration with Claude Code.42Apache 2.0
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that bridges MCP clients with local LLM services, enabling seamless integration with MCP-compatible applications through standard tools like chat completion, model listing, and health checks.-
- FlicenseBqualityDmaintenanceA Model Context Protocol (MCP) server that can be deployed locally via stdio or remotely via SSE/HTTP endpoints, supporting multiple MCP clients including VS Code, Cursor, Windsurf, and Claude Desktop.1-