================== /// MCP /// /// ANY /// ================== [server:online] [protocol:ready]
any-chat-completions-mcp
by pyroprompts
TypeScript-based MCP server that forwards chat-completion requests to any OpenAI-compatible provider (OpenAI, Perplexity, Groq, xAI, PyroPrompts, etc.).
138
18
Open Source01
chat
Relay a user question to the configured AI Chat Provider and return the provider’s chat completion response
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"}]}'
Documentation
License: MIT License
Updated 7/30/2025