Integrate Claude with Any OpenAI SDK Compatible Chat Completion API - OpenAI, Perplexity, Groq, xAI, PyroPrompts and more. This implements the Model Context Protocol Server. Learn more: https://modelcontextprotocol.io This is a TypeScript-based MCP server that implements an implementation into any OpenAI SDK Compatible Chat Completions API. It has one tool, chat which relays a question to a config
Add this skill
npx mdskills install pyroprompts/any-chat-completions-mcpWell-documented MCP server enabling Claude to query any OpenAI-compatible API with clear setup examples
1# any-chat-completions-mcp MCP Server234Integrate Claude with Any OpenAI SDK Compatible Chat Completion API - OpenAI, Perplexity, Groq, xAI, PyroPrompts and more.56This implements the Model Context Protocol Server. Learn more: [https://modelcontextprotocol.io](https://modelcontextprotocol.io)78This is a TypeScript-based MCP server that implements an implementation into any OpenAI SDK Compatible Chat Completions API.910It has one tool, `chat` which relays a question to a configured AI Chat Provider.111213<a href="https://glama.ai/mcp/servers/nuksdrfb55"><img width="380" height="200" src="https://glama.ai/mcp/servers/nuksdrfb55/badge" /></a>1415[](https://smithery.ai/server/any-chat-completions-mcp-server)1617## Development1819Install dependencies:20```bash21npm install22```2324Build the server:25```bash26npm run build27```2829For development with auto-rebuild:30```bash31npm run watch32```3334## Installation3536To add OpenAI to Claude Desktop, add the server config:3738On MacOS: `~/Library/Application Support/Claude/claude_desktop_config.json`3940On Windows: `%APPDATA%/Claude/claude_desktop_config.json`414243You can use it via `npx` in your Claude Desktop configuration like this:4445```json46{47 "mcpServers": {48 "chat-openai": {49 "command": "npx",50 "args": [51 "@pyroprompts/any-chat-completions-mcp"52 ],53 "env": {54 "AI_CHAT_KEY": "OPENAI_KEY",55 "AI_CHAT_NAME": "OpenAI",56 "AI_CHAT_MODEL": "gpt-4o",57 "AI_CHAT_BASE_URL": "https://api.openai.com/v1"58 }59 }60 }61}62```636465Or, if you clone the repo, you can build and use in your Claude Desktop configuration like this:666768```json6970{71 "mcpServers": {72 "chat-openai": {73 "command": "node",74 "args": [75 "/path/to/any-chat-completions-mcp/build/index.js"76 ],77 "env": {78 "AI_CHAT_KEY": "OPENAI_KEY",79 "AI_CHAT_NAME": "OpenAI",80 "AI_CHAT_MODEL": "gpt-4o",81 "AI_CHAT_BASE_URL": "https://api.openai.com/v1"82 }83 }84 }85}86```8788You can add multiple providers by referencing the same MCP server multiple times, but with different env arguments:8990```json9192{93 "mcpServers": {94 "chat-pyroprompts": {95 "command": "node",96 "args": [97 "/path/to/any-chat-completions-mcp/build/index.js"98 ],99 "env": {100 "AI_CHAT_KEY": "PYROPROMPTS_KEY",101 "AI_CHAT_NAME": "PyroPrompts",102 "AI_CHAT_MODEL": "ash",103 "AI_CHAT_BASE_URL": "https://api.pyroprompts.com/openaiv1"104 }105 },106 "chat-perplexity": {107 "command": "node",108 "args": [109 "/path/to/any-chat-completions-mcp/build/index.js"110 ],111 "env": {112 "AI_CHAT_KEY": "PERPLEXITY_KEY",113 "AI_CHAT_NAME": "Perplexity",114 "AI_CHAT_MODEL": "sonar",115 "AI_CHAT_BASE_URL": "https://api.perplexity.ai"116 }117 },118 "chat-openai": {119 "command": "node",120 "args": [121 "/path/to/any-chat-completions-mcp/build/index.js"122 ],123 "env": {124 "AI_CHAT_KEY": "OPENAI_KEY",125 "AI_CHAT_NAME": "OpenAI",126 "AI_CHAT_MODEL": "gpt-4o",127 "AI_CHAT_BASE_URL": "https://api.openai.com/v1"128 }129 }130 }131}132```133134With these three, you'll see a tool for each in the Claude Desktop Home:135136137138And then you can chat with other LLMs and it shows in chat like this:139140141142Or, configure in [LibreChat](https://www.librechat.ai/) like:143```yaml144 chat-perplexity:145 type: stdio146 command: npx147 args:148 - -y149 - @pyroprompts/any-chat-completions-mcp150 env:151 AI_CHAT_KEY: "pplx-012345679"152 AI_CHAT_NAME: Perplexity153 AI_CHAT_MODEL: sonar154 AI_CHAT_BASE_URL: "https://api.perplexity.ai"155 PATH: '/usr/local/bin:/usr/bin:/bin'156````157158And it shows in LibreChat:159160161162163164165### Installing via Smithery166167To install Any OpenAI Compatible API Integrations for Claude Desktop automatically via [Smithery](https://smithery.ai/server/any-chat-completions-mcp-server):168169```bash170npx -y @smithery/cli install any-chat-completions-mcp-server --client claude171```172173### Debugging174175Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the [MCP Inspector](https://github.com/modelcontextprotocol/inspector), which is available as a package script:176177```bash178npm run inspector179```180181The Inspector will provide a URL to access debugging tools in your browser.182183### Acknowledgements184185- Obviously the modelcontextprotocol and Anthropic team for the MCP Specification and integration into Claude Desktop. [https://modelcontextprotocol.io/introduction](https://modelcontextprotocol.io/introduction)186- [PyroPrompts](https://pyroprompts.com?ref=github-any-chat-completions-mcp) for sponsoring this project. Use code `CLAUDEANYCHAT` for 20 free automation credits on Pyroprompts.187
Full transparency — inspect the skill content before installing.