Design Engineer Logo
Visit Repo
Open Graph preview

Any Chat Completions MCP

A server that integrates Claude with OpenAI-compatible chat completion APIs

Site favicon
🔌 MCP Tools

Overview

any-chat-completions-mcp

Description:
A server that integrates Claude with OpenAI-compatible chat completion APIs

Category: Integration/Compatibility

Overview: This TypeScript-based server enables Claude to communicate with various AI chat providers that use OpenAI-compatible APIs, including:

  • OpenAI
  • Perplexity
  • Groq
  • xAI
  • PyroPrompts

The server allows configuring multiple providers simultaneously through different environment settings, each appearing as a separate tool in Claude Desktop.

Installation:

# Install dependencies
npm install

# Build server
npm run build

# Development with auto-rebuild
npm run dev

Configuration Example:

{
  "mcpServers": {
    "chat-provider": {
      "command": "node",
      "args": ["/path/to/any-chat-completions-mcp/build/index.js"],
      "env": {
        "AI_CHAT_KEY": "YOUR_PROVIDER_API_KEY",
        "AI_CHAT_NAME": "Provider_Name",
        "AI_CHAT_MODEL": "model-name",
        "AI_CHAT_BASE_URL": "https://api.provider.com/v1"
      }
    }
  }
}

Key Features:

  • Multiple provider support
  • Configurable model selection
  • Custom base URL support
  • Debugging tools via MCP Inspector

Debugging: Use the built-in MCP Inspector for troubleshooting:

npm run inspect

Config locations:

  • MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%/Claude/claude_desktop_config.json