Any Chat Completions

Data and AI

MCP Server for using any LLM as a Tool.

Your AI app calls the Any Chat Completions MCP server, which does the data and AI work and sends the result back to the chat.

About Any Chat Completions

Any Chat Completions is a community MCP server from pyroprompts, filed in our directory under data and ai. MCP Server for using any LLM as a Tool.

Any Chat Completions runs on your own machine: your AI app starts it with the command npx -y args and talks to it over standard input and output.

At a glance

Publisher
pyroprompts (community)
Runs
Locally on your machine
Install from
Node.js package on npm: args
Written in
JavaScript
License
MIT
GitHub stars
166

How to set up Any Chat Completions

  1. Install Node.js on the machine that runs your AI app, because Any Chat Completions starts with npx and downloads its package on first run.
  2. Check the Any Chat Completions README for keys or settings; the registry lists none that Any Chat Completions requires.
  3. Add Any Chat Completions to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Any Chat Completions tools to confirm the connection.
  5. Run one read-only task with Any Chat Completions first, and keep your app asking before each tool call until the results look right.

Any Chat Completions compared with similar servers

  • Atlas (scaleapi) by scaleapi has fewer GitHub stars than Any Chat Completions (165 against 166); both are community servers, and both run locally.
  • Game Asset by sato942 has more GitHub stars than Any Chat Completions (169 against 166); both are community servers, and both run locally.
  • Exp LLM MCP RAG by StrayDragon has fewer GitHub stars than Any Chat Completions (164 against 166); both are community servers, and both run locally.

Before you connect Any Chat Completions

  • Give Any Chat Completions its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Any Chat Completions tool call until you trust what it does with them.
  • Treat text that Any Chat Completions fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Any Chat Completions on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Any Chat Completions

How marketing and sales teams put Any Chat Completions to work, by company size. Pick the size closest to yours and start Any Chat Completions on one use case.

Small business

  • A small team can use Any Chat Completions to clean and enrich a lead list or a spreadsheet in one pass, instead of hours of copy and paste.
  • Owners can ask Any Chat Completions to sort feedback, reviews or survey answers into themes and see what customers mention most.
  • Any Chat Completions runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing ops can connect Any Chat Completions to enrich and score inbound leads, so sales sees fit and intent before the first call.
  • Content and research teams can use Any Chat Completions to analyze transcripts and surveys at scale and pull the quotes worth using.
  • Start Any Chat Completions on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can run Any Chat Completions inside their own cloud and data boundary, so models and data stay where governance requires.
  • Large teams can use Any Chat Completions in batch pipelines with evaluation and logging, so AI output is measured before it reaches customers.
  • Any Chat Completions is a community server, so have security review the code and pin a version before Any Chat Completions touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Any Chat Completions README

From pyroprompts/any-chat-completions-mcp on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

any-chat-completions-mcp MCP Server

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 configured AI Chat Provider.

Development

Install dependencies:

npm install

Build the server:

npm run build

For development with auto-rebuild:

npm run watch

Installation

To add OpenAI to Claude Desktop, add the server config:

On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json

On Windows: %APPDATA%/Claude/claude_desktop_config.json

You can use it via npx in your Claude Desktop configuration like this:

{
  "mcpServers": {
    "chat-openai": {
      "command": "npx",
      "args": [
        "@pyroprompts/any-chat-completions-mcp"
      ],
      "env": {
        "AI_CHAT_KEY": "OPENAI_KEY",
        "AI_CHAT_NAME": "OpenAI",
        "AI_CHAT_MODEL": "gpt-4o",
        "AI_CHAT_BASE_URL": "https://api.openai.com/v1"
      }
    }
  }
}

Or, if you clone the repo, you can build and use in your Claude Desktop configuration like this:


{
  "mcpServers": {
    "chat-openai": {
      "command": "node",
      "args": [
        "/path/to/any-chat-completions-mcp/build/index.js"
      ],
      "env": {
        "AI_CHAT_KEY": "OPENAI_KEY",
        "AI_CHAT_NAME": "OpenAI",
        "AI_CHAT_MODEL": "gpt-4o",
        "AI_CHAT_BASE_URL": "https://api.openai.com/v1"
      }
    }
  }
}

You can add multiple providers by referencing the same MCP server multiple times, but with different env arguments:


{
  "mcpServers": {
    "chat-pyroprompts": {
      "command": "node",
      "args": [
        "/path/to/any-chat-completions-mcp/build/index.js"
      ],
      "env": {
        "AI_CHAT_KEY": "PYROPROMPTS_KEY",
        "AI_CHAT_NAME": "PyroPrompts",
        "AI_CHAT_MODEL": "ash",
        "AI_CHAT_BASE_URL": "https://api.pyroprompts.com/openaiv1"
      }
    },
    "chat-perplexity": {
      "command": "node",
      "args": [
        "/path/to/any-chat-completions-mcp/build/index.js"
      ],
      "env": {
        "AI_CHAT_KEY": "PERPLEXITY_KEY",
        "AI_CHAT_NAME": "Perplexity",
        "AI_CHAT_MODEL": "sonar",
        "AI_CHAT_BASE_URL": "https://api.perplexity.ai"
      }
    },
    "chat-openai": {
      "command": "node",
      "args": [
        "/path/to/any-chat-completions-mcp/build/index.js"
      ],
      "env": {
        "AI_CHAT_KEY": "OPENAI_KEY",
        "AI_CHAT_NAME": "OpenAI",
        "AI_CHAT_MODEL": "gpt-4o",
        "AI_CHAT_BASE_URL": "https://api.openai.com/v1"
      }
    }
  }
}

With these three, you'll see a tool for each in the Claude Desktop Home:

And then you can chat with other LLMs and it shows in chat like this:

Or, configure in LibreChat like:

  chat-perplexity:
    type: stdio
    command: npx
    args:
      - -y
      - @pyroprompts/any-chat-completions-mcp
    env:
      AI_CHAT_KEY: "pplx-012345679"
      AI_CHAT_NAME: Perplexity
      AI_CHAT_MODEL: sonar
      AI_CHAT_BASE_URL: "https://api.perplexity.ai"
      PATH: '/usr/local/bin:/usr/bin:/bin'

And it shows in LibreChat:

Installing via Smithery

To install Any OpenAI Compatible API Integrations for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install any-chat-completions-mcp-server --client claude
Debugging

Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:

npm run inspector

The Inspector will provide a URL to access debugging tools in your browser.

Acknowledgements

Questions about Any Chat Completions

What is the Any Chat Completions MCP server?

MCP Server for using any LLM as a Tool. Any Chat Completions is maintained by pyroprompts on GitHub at pyroprompts/any-chat-completions-mcp, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Any Chat Completions MCP server?

Add Any Chat Completions to your AI app's MCP config with the command npx -y args. In Claude Code, run claude mcp add --transport stdio any-chat-completions -- npx -y args. To run Any Chat Completions this way you need Node.js installed.

Does Any Chat Completions need an API key?

The registry lists no required keys for Any Chat Completions. Check the Any Chat Completions README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Any Chat Completions an official MCP server?

No. Any Chat Completions is a community server maintained by pyroprompts. Community servers can be excellent; read the code and the open issues before you give Any Chat Completions access to company data.

What license is Any Chat Completions under?

Any Chat Completions is released under the MIT license, according to its GitHub repository. The license covers the code of Any Chat Completions; the service it connects to has its own terms.