Any Chat Completions

Any Chat Completions

Interact with any OpenAI SDK Compatible Chat Completions API like OpenAI, Perplexity, Groq, xAI and many more.

144
Stars
25
Forks
2
Releases

Overview

This TypeScript-based MCP server implements the Model Context Protocol Server and exposes a single tool, chat, that relays questions to a configured AI chat provider. It is designed to integrate Claude Desktop workflows with any OpenAI SDK-compatible Chat Completion API (including OpenAI, Perplexity, Groq, xAI, PyroPrompts and more). Providers are configured via environment variables (AI_CHAT_KEY, AI_CHAT_NAME, AI_CHAT_MODEL, AI_CHAT_BASE_URL), enabling a single server instance to serve multiple backends by launching separate configurations. The README includes example Claude Desktop and LibreChat configurations showing how to point the MCP server to different backends. The server builds with npm, supports development with watch, and can be installed or run via npx or direct node invocation after building. For debugging, the MCP Inspector provides a browser-based debugging URL. You can install automatically via Smithery, or clone and build locally. The core capability is a lightweight chat tool that forwards user input to the chosen provider and returns responses through the MCP protocol, enabling cross-provider chat within Claude Desktop and LibreChat ecosystems.

Details

Owner
pyroprompts
Language
JavaScript
License
MIT License
Updated
2025-12-07

Features

Chat Tool

A single tool named 'chat' that relays user questions to the configured AI chat provider via MCP.

Multi-provider configuration

Reuse the same MCP server for multiple providers by launching separate configurations with different environment variables (AI_CHAT_NAME, AI_CHAT_MODEL, AI_CHAT_BASE_URL, AI_CHAT_KEY).

OpenAI SDK compatibility

Works with any OpenAI SDK-compatible Chat Completion API, enabling integration with OpenAI, Perplexity, Groq, xAI, PyroPrompts, and more.

TypeScript implementation

Implemented as a TypeScript MCP server for robust typing and integration.

Claude Desktop integration

Designed to plug into Claude Desktop MCP workflows with example config snippets.

Debugging with MCP Inspector

Supports debugging via the MCP Inspector with a browser-accessible debugging URL.

Development workflow and Smithery deployment

Provides npm scripts for build, watch, and installation via Smithery, npx, or direct node invocation.

Audience

DevelopersConfigure and deploy MCP server to route chat queries to multiple AI providers.
Claude DesktopIntegrators using Claude Desktop to access non-OpenAI providers through MCP.
LibreChatLibreChat users seeking multi-provider chat integration via MCP within LibreChat workflows.

Tags

MCPModel Context ProtocolOpenAI SDK CompatibleChat CompletionsClaude DesktopLibreChatTypeScriptMulti-providerOpenAIPerplexityGroqxAIPyroPrompts