Skip to content
Install
mcp-registry/any-chat-completions-mcp
any-chat-completions-mcp logo

any-chat-completions-mcp

Author: pyroprompts

Description: TypeScript-based MCP server that forwards chat-completion requests to any OpenAI-compatible provider (OpenAI, Perplexity, Groq, xAI, PyroPrompts, etc.).

Stars: 138

Forks: 18

License: MIT License

Category: Open Source

Overview

Installation

1. Clone the repository
git clone https://github.com/pyroprompts/any-chat-completions-mcp.git cd any-chat-completions-mcp
2. Install JavaScript dependencies
npm install # or: pnpm install / yarn install
3. Configure environment
cp .env.example .env # if template exists # Edit .env and set: # PROVIDER_API_KEY=<your-LLM-provider-key> # MODEL_ID=gpt-4o (or any supported model) # PORT=3000 # LOG_LEVEL=info
4. Start the MCP server
# Development (auto-reload) npm run dev # Production npm run build && npm start
5. Verify
curl http://localhost:3000/v1/chat/completions -H "Authorization: Bearer <token>" -d '{"model":"MODEL_ID", "messages":[{"role":"user","content":"Hello"}]}'

01

chat

Relay a user question to the configured AI Chat Provider and return the provider’s chat completion response

License: MIT License
Updated 7/30/2025