pyroprompts/any-chat-completions-mcp logo

pyroprompts/any-chat-completions-mcp

Free

与任何其他 OpenAI SDK 兼容的聊天完成 API 聊天,如 Perplexity, Groq, xAI 等。

FreeFree tier
Inputs: textOutputs: text
Type
Open Source
Company
PyroPrompts

About pyroprompts/any-chat-completions-mcp

Any Chat Completions MCP is a TypeScript-based Model Context Protocol (MCP) server that enables Claude (or any MCP client) to interact with any OpenAI SDK-compatible chat completion API. It provides a single tool called 'chat' which relays a user's question to a configured AI provider and returns the response. The server is highly configurable via environment variables (AI_CHAT_KEY, AI_CHAT_NAME, AI_CHAT_MODEL, AI_CHAT_BASE_URL), allowing users to switch between providers such as OpenAI, Perplexity, Groq, xAI, and PyroPrompts. Multiple providers can be added by defining separate MCP server entries with different environment variables, making it easy to query different LLMs from the same client. The server can be installed via npx or built from source, and it integrates seamlessly with Claude Desktop and LibreChat.

Key Features

Single 'chat' tool that relays questions to configured AI providers
Supports any OpenAI SDK-compatible chat completion API (OpenAI, Perplexity, Groq, xAI, PyroPrompts, etc.)
Configurable via environment variables: AI_CHAT_KEY, AI_CHAT_NAME, AI_CHAT_MODEL, AI_CHAT_BASE_URL
Can add multiple providers by referencing the same MCP server with different env arguments
TypeScript-based, open source MCP server
Installable via npx or built from source
Integrates with Claude Desktop and LibreChat

Pros & Cons

Pros
  • Compatible with many providers (OpenAI, Perplexity, Groq, xAI, PyroPrompts)
  • Easy to configure and switch between providers using environment variables
  • Open source and free to use
  • Lightweight and simple – only one tool for chat completions
Cons
  • Requires manual setup of environment variables and API keys
  • Only provides a single 'chat' tool, no additional capabilities like image generation or streaming (not mentioned)
  • Depends on external API keys and services
  • No built-in user interface – requires an MCP client like Claude Desktop

Best For

Chat with multiple LLMs (OpenAI, Perplexity, Groq, etc.) directly from Claude DesktopUse in LibreChat as a tool to query different AI providersDevelopers can integrate any OpenAI-compatible API into MCP clients for flexible LLM access

FAQ

How do I install the Any Chat Completions MCP server?
You can install it via npx (npx @pyroprompts/any-chat-completions-mcp) or build from source by cloning the repo and running npm install && npm run build.
How do I configure multiple providers?
Add multiple entries in your MCP client configuration (e.g., Claude Desktop's claude_desktop_config.json) with different environment variables for each provider (AI_CHAT_KEY, AI_CHAT_NAME, AI_CHAT_MODEL, AI_CHAT_BASE_URL).
Which AI providers are supported?
Any provider that uses an OpenAI SDK-compatible chat completion API is supported – for example, OpenAI, Perplexity, Groq, xAI, and PyroPrompts.
Can I use this server with LibreChat?
Yes, you can configure it in LibreChat using the stdio transport with npx and the appropriate environment variables.