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. - ๐ 8 LLM Providers โ ChatGPT, Claude, DeepSeek, Gemini, Grok, Kimi, Perplexity, Mistral - ๐ฏ Smart Model Selection โ Tag-based preferences (coding, business, reasoning, math, creative, general) - ๐ Prompt Logging โ Track all prompts
Add this skill
npx mdskills install JamesANZ/cross-llm-mcpComprehensive multi-LLM integration with smart model selection, excellent docs, but needs shell execution justification
1# ๐ค Cross-LLM MCP Server23> **Access multiple LLM APIs from one place.** Call ChatGPT, Claude, DeepSeek, Gemini, Grok, Kimi, Perplexity, and Mistral with intelligent model selection, preferences, and prompt logging.45An [MCP (Model Context Protocol)](https://modelcontextprotocol.io) server that provides unified access to multiple Large Language Model APIs for AI coding environments like Cursor and Claude Desktop.67[](https://archestra.ai/mcp-catalog/jamesanz__cross-llm-mcp)89## Why Use Cross-LLM MCP?1011- ๐ **8 LLM Providers** โ ChatGPT, Claude, DeepSeek, Gemini, Grok, Kimi, Perplexity, Mistral12- ๐ฏ **Smart Model Selection** โ Tag-based preferences (coding, business, reasoning, math, creative, general)13- ๐ **Prompt Logging** โ Track all prompts with history, statistics, and analytics14- ๐ฐ **Cost Optimization** โ Choose flagship or cheaper models based on preference15- โก **Easy Setup** โ One-click install in Cursor or simple manual setup16- ๐ **Call All LLMs** โ Get responses from all providers simultaneously1718## Quick Start1920Ready to access multiple LLMs? Install in seconds:2122**Install in Cursor (Recommended):**2324[๐ Install in Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=cross-llm-mcp&config=eyJjcm9zcy1sbG0tbWNwIjp7ImNvbW1hbmQiOiJucHgiLCJhcmdzIjpbIi15IiwiY3Jvc3MtbGxtLW1jcCJdfX0=)2526**Or install manually:**2728```bash29npm install -g cross-llm-mcp30# Or from source:31git clone https://github.com/JamesANZ/cross-llm-mcp.git32cd cross-llm-mcp && npm install && npm run build33```3435## Features3637### ๐ค Individual LLM Tools3839- **`call-chatgpt`** โ OpenAI's ChatGPT API40- **`call-claude`** โ Anthropic's Claude API41- **`call-deepseek`** โ DeepSeek API42- **`call-gemini`** โ Google's Gemini API43- **`call-grok`** โ xAI's Grok API44- **`call-kimi`** โ Moonshot AI's Kimi API45- **`call-perplexity`** โ Perplexity AI API46- **`call-mistral`** โ Mistral AI API4748### ๐ Combined Tools4950- **`call-all-llms`** โ Call all LLMs with the same prompt51- **`call-llm`** โ Call a specific provider by name5253### โ๏ธ Preferences & Model Selection5455- **`get-user-preferences`** โ Get current preferences56- **`set-user-preferences`** โ Set default model, cost preference, and tag-based preferences57- **`get-models-by-tag`** โ Find models by tag (coding, business, reasoning, math, creative, general)5859### ๐ Prompt Logging6061- **`get-prompt-history`** โ View prompt history with filters62- **`get-prompt-stats`** โ Get statistics about prompt logs63- **`delete-prompt-entries`** โ Delete log entries by criteria64- **`clear-prompt-history`** โ Clear all prompt logs6566## Installation6768### Cursor (One-Click)6970Click the install link above or use:7172```73cursor://anysphere.cursor-deeplink/mcp/install?name=cross-llm-mcp&config=eyJjcm9zcy1sbG0tbWNwIjp7ImNvbW1hbmQiOiJucHgiLCJhcmdzIjpbIi15IiwiY3Jvc3MtbGxtLW1jcCJdfX0=74```7576After installation, add your API keys in Cursor settings (see Configuration below).7778### Manual Installation7980**Requirements:** Node.js 18+ and npm8182```bash83# Clone and build84git clone https://github.com/JamesANZ/cross-llm-mcp.git85cd cross-llm-mcp86npm install87npm run build88```8990### Claude Desktop9192Add to `claude_desktop_config.json`:9394**macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`95**Windows**: `%APPDATA%\Claude\claude_desktop_config.json`9697```json98{99 "mcpServers": {100 "cross-llm-mcp": {101 "command": "node",102 "args": ["/absolute/path/to/cross-llm-mcp/build/index.js"],103 "env": {104 "OPENAI_API_KEY": "your_openai_api_key_here",105 "ANTHROPIC_API_KEY": "your_anthropic_api_key_here",106 "DEEPSEEK_API_KEY": "your_deepseek_api_key_here",107 "GEMINI_API_KEY": "your_gemini_api_key_here",108 "XAI_API_KEY": "your_grok_api_key_here",109 "KIMI_API_KEY": "your_kimi_api_key_here",110 "PERPLEXITY_API_KEY": "your_perplexity_api_key_here",111 "MISTRAL_API_KEY": "your_mistral_api_key_here"112 }113 }114 }115}116```117118Restart Claude Desktop after configuration.119120## Configuration121122### API Keys123124Set environment variables for the LLM providers you want to use:125126```bash127export OPENAI_API_KEY="your_openai_api_key"128export ANTHROPIC_API_KEY="your_anthropic_api_key"129export DEEPSEEK_API_KEY="your_deepseek_api_key"130export GEMINI_API_KEY="your_gemini_api_key"131export XAI_API_KEY="your_grok_api_key"132export KIMI_API_KEY="your_kimi_api_key"133export PERPLEXITY_API_KEY="your_perplexity_api_key"134export MISTRAL_API_KEY="your_mistral_api_key"135```136137### Getting API Keys138139- **OpenAI**: [https://platform.openai.com/api-keys](https://platform.openai.com/api-keys)140- **Anthropic**: [https://console.anthropic.com/](https://console.anthropic.com/)141- **DeepSeek**: [https://platform.deepseek.com/](https://platform.deepseek.com/)142- **Google Gemini**: [https://makersuite.google.com/app/apikey](https://makersuite.google.com/app/apikey)143- **xAI Grok**: [https://console.x.ai/](https://console.x.ai/)144- **Moonshot AI**: [https://platform.moonshot.ai/](https://platform.moonshot.ai/)145- **Perplexity**: [https://www.perplexity.ai/hub](https://www.perplexity.ai/hub)146- **Mistral**: [https://console.mistral.ai/](https://console.mistral.ai/)147148## Usage Examples149150### Call ChatGPT151152Get a response from OpenAI:153154```json155{156 "tool": "call-chatgpt",157 "arguments": {158 "prompt": "Explain quantum computing in simple terms",159 "temperature": 0.7,160 "max_tokens": 500161 }162}163```164165### Call All LLMs166167Get responses from all providers:168169```json170{171 "tool": "call-all-llms",172 "arguments": {173 "prompt": "Write a short poem about AI",174 "temperature": 0.8175 }176}177```178179### Set Tag-Based Preferences180181Automatically use the best model for each task type:182183```json184{185 "tool": "set-user-preferences",186 "arguments": {187 "defaultModel": "gpt-4o",188 "costPreference": "cheaper",189 "tagPreferences": {190 "coding": "deepseek-r1",191 "general": "gpt-4o",192 "business": "claude-3.5-sonnet-20241022",193 "reasoning": "deepseek-r1",194 "math": "deepseek-r1",195 "creative": "gpt-4o"196 }197 }198}199```200201### Get Prompt History202203View your prompt logs:204205```json206{207 "tool": "get-prompt-history",208 "arguments": {209 "provider": "chatgpt",210 "limit": 10211 }212}213```214215## Model Tags216217Models are tagged by their strengths:218219- **coding**: `deepseek-r1`, `deepseek-coder`, `gpt-4o`, `claude-3.5-sonnet-20241022`220- **business**: `claude-3-opus-20240229`, `gpt-4o`, `gemini-1.5-pro`221- **reasoning**: `deepseek-r1`, `o1-preview`, `claude-3.5-sonnet-20241022`222- **math**: `deepseek-r1`, `o1-preview`, `o1-mini`223- **creative**: `gpt-4o`, `claude-3-opus-20240229`, `gemini-1.5-pro`224- **general**: `gpt-4o-mini`, `claude-3-haiku-20240307`, `gemini-1.5-flash`225226## Use Cases227228- **Multi-Perspective Analysis** โ Get different perspectives from multiple LLMs229- **Model Comparison** โ Compare responses to understand strengths and weaknesses230- **Cost Optimization** โ Choose the most cost-effective model for each task231- **Quality Assurance** โ Cross-reference responses from multiple models232- **Intelligent Selection** โ Automatically use the best model for coding, business, reasoning, etc.233- **Prompt Analytics** โ Track usage, costs, and patterns with automatic logging234235## Technical Details236237**Built with:** Node.js, TypeScript, MCP SDK238**Dependencies:** `@modelcontextprotocol/sdk`, `superagent`, `zod`239**Platforms:** macOS, Windows, Linux240241**Preference Storage:**242243- Unix/macOS: `~/.cross-llm-mcp/preferences.json`244- Windows: `%APPDATA%/cross-llm-mcp/preferences.json`245246**Prompt Log Storage:**247248- Unix/macOS: `~/.cross-llm-mcp/prompts.json`249- Windows: `%APPDATA%/cross-llm-mcp/prompts.json`250251## Contributing252253โญ **If this project helps you, please star it on GitHub!** โญ254255Contributions welcome! Please open an issue or submit a pull request.256257## License258259MIT License โ see [LICENSE.md](LICENSE.md) for details.260261## Support262263If you find this project useful, consider supporting it:264265**โก Lightning Network**266267```268lnbc1pjhhsqepp5mjgwnvg0z53shm22hfe9us289lnaqkwv8rn2s0rtekg5vvj56xnqdqqcqzzsxqyz5vqsp5gu6vh9hyp94c7t3tkpqrp2r059t4vrw7ps78a4n0a2u52678c7yq9qyyssq7zcferywka50wcy75skjfrdrk930cuyx24rg55cwfuzxs49rc9c53mpz6zug5y2544pt8y9jflnq0ltlha26ed846jh0y7n4gm8jd3qqaautqa269```270271**โฟ Bitcoin**: [bc1ptzvr93pn959xq4et6sqzpfnkk2args22ewv5u2th4ps7hshfaqrshe0xtp](https://mempool.space/address/bc1ptzvr93pn959xq4et6sqzpfnkk2args22ewv5u2th4ps7hshfaqrshe0xtp)272273**ฮ Ethereum/EVM**: [0x42ea529282DDE0AA87B42d9E83316eb23FE62c3f](https://etherscan.io/address/0x42ea529282DDE0AA87B42d9E83316eb23FE62c3f)274
Full transparency โ inspect the skill content before installing.