Labsco
MCP SERVER

Any Chat Completions MCP

by pyroprompts

Put OpenAI, Perplexity, Groq or xAI inside your assistant as a tool it can hand a question to.

Model Routing, Multi-Model Consultation & Cost ControlVerified
Summary
Any chat API becomes a tool your assistant can call.

One small server covers every provider that speaks the OpenAI shape, and the configuration is four environment variables - so adding a second opinion from Perplexity or Groq is a config block rather than an integration.

What it is

A small TypeScript server that relays a question to any chat completions API that speaks the OpenAI SDK's shape - OpenAI, Perplexity, Groq, xAI, PyroPrompts and others. It exposes a single chat tool, named after the provider you configure, so several providers can sit side by side as separate entries.

What you get
  • A question relayed to any OpenAI-SDK-compatible chat completions endpoint, and the answer returned in your conversation
  • The provider chosen entirely in configuration - key, display name, model and base URL - with no code change
  • The tool named after the provider you configured, so a client with three of these set up shows three distinct tools
  • Several providers at once: add the same server again with a different set of environment variables
Requirements

Node, with the package run through npx or built from a clone. Four environment variables per provider: AI_CHAT_KEY, AI_CHAT_NAME, AI_CHAT_MODEL and AI_CHAT_BASE_URL. Each provider you want is its own entry in the client config.

Setup effort

One command plus a key — npx -y @smithery/cli install any-chat-completions-mcp-server --client claude, then supply credentials