drio
Open app

Any Chat Completions

Source

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

Catalog onlyCatalog onlySTDIO

Overview

Any Chat Completions is a TypeScript-based MCP (Model Context Protocol) server that enables the integration of various OpenAI SDK-compatible chat completion APIs, including OpenAI, Perplexity, Groq, and xAI.

To use Any Chat Completions, install the necessary dependencies, build the server, and configure it with the specific chat provider of your choice by specifying the required commands and environment variables.

  • Integrates multiple AI chat providers seamlessly. - Uses the Model Context Protocol for effective communication. - Supports configuration for various chat providers (OpenAI, PyroPrompts, Perplexity).
  1. Chat application for customer support using different AI models.
  2. Custom chatbot solutions for businesses leveraging multiple AI technologies.
  3. Research and development of hybrid AI systems integrating various APIs.

Add to your AI client

Use these steps to connect Any Chat Completions in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "any-chat-completions": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-any-chat-completions"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "any-chat-completions": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-any-chat-completions"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "any-chat-completions": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-any-chat-completions"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "any-chat-completions": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-any-chat-completions"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "any-chat-completions": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-any-chat-completions"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "any-chat-completions": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-any-chat-completions"
      ]
    }
  }
}

FAQ

What programming languages does it support?

It is built using TypeScript, so familiarity with JavaScript/TypeScript is essential.

Can I add multiple AI chat providers?

Yes! You can add multiple configurations by referencing the same server with different environment variables.

How do I debug communication issues?

Use the MCP Inspector for accessing debugging tools to troubleshoot communication between the MCP server and chat providers.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":65,"uuid":"ee24cc51-9bbd-46b8-86f6-251e4d5abdb9","name":"any-chat-completions","title":"Any Chat Completions","description":"Interact with any OpenAI SDK Compatible Chat Completions API like OpenAI, Perplexity, Groq, xAI and many more.","avatar_url":"https://r2.trys.ai/imgs/aja2xfq1-1733451324993.png","created_at":"$D2024-12-05T16:27:19.593Z","updated_at":"$D2024-12-13T07:45:57.907Z","status":"created","author_name":"","author_avatar_url":"","tags":"chatbot,AI-integration,development-tools","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/pyroprompts/any-chat-completions-mcp","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]