Multi-AI MCP Bridge
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| HOST | No | HTTP mode address. | 127.0.0.1 |
| PORT | No | HTTP mode port. | 3000 |
| LOG_LEVEL | No | debug, info, warn, error or silent. Logs go to stderr. | info |
| MAX_RETRIES | No | Automatic retries on rate limits and server errors. | 2 |
| XAI_API_KEY | No | xAI Grok API key. | |
| CORS_ORIGINS | No | Browser origins allowed to call the HTTP endpoint. | |
| OPENAI_MODEL | No | Default chat model. | gpt-5.6-sol |
| ALLOWED_HOSTS | No | Extra allowed Host headers when binding to 0.0.0.0. | |
| OPENAI_ORG_ID | No | Bill to a specific organisation. | |
| ALLOWED_MODELS | No | Comma-separated allow-list, e.g. gpt-5.6-sol,gpt-image-2. | (any) |
| GEMINI_API_KEY | No | Google Gemini API key. | |
| MAX_FILE_BYTES | No | Size limit for shared files. | 200000 |
| MAX_TEAM_CALLS | No | Most AI calls one ai_team session may make. | 20 |
| MCP_AUTH_TOKEN | No | Bearer token required in HTTP mode. | |
| OLLAMA_ENABLED | No | Set to "true" to enable local Ollama models (no API key needed). | |
| OPENAI_API_KEY | No | ChatGPT (OpenAI) API key. At least one provider key is required; see also GEMINI_API_KEY, XAI_API_KEY, ANTHROPIC_API_KEY, DEEPSEEK_API_KEY and OLLAMA_ENABLED. | |
| OPENAI_BASE_URL | No | Point at Azure OpenAI, OpenRouter, Ollama, etc. | OpenAI |
| DEEPSEEK_API_KEY | No | DeepSeek API key. | |
| DEFAULT_PROVIDER | No | Which AI the tools use when none is named. | openai |
| IMAGE_OUTPUT_DIR | No | Also save generated images to this folder. | (off) |
| ALLOWED_FILE_DIRS | No | Folders the AIs may read files from. File sharing is off until set. | (off) |
| ANTHROPIC_API_KEY | No | Anthropic Claude API key. | |
| MAX_CONVERSATIONS | No | Threads held at once (least recently used dropped first). | 200 |
| MAX_OUTPUT_TOKENS | No | Default reply length limit. | 4096 |
| OPENAI_PROJECT_ID | No | Bill to a specific project. | |
| OPENAI_IMAGE_MODEL | No | Default image model. | gpt-image-2 |
| REQUEST_TIMEOUT_MS | No | Per-request timeout. | 120000 |
| MAX_HISTORY_MESSAGES | No | Messages kept per conversation (system prompt always kept). | 40 |
| MAX_TOTAL_FILE_BYTES | No | Total size limit for shared files. | 600000 |
| DEFAULT_SYSTEM_PROMPT | No | Instructions applied to every chatgpt_ask call. | |
| CONVERSATION_STORE_PATH | No | JSON file to keep threads across restarts. | (memory) |
| CONVERSATION_TTL_MINUTES | No | Idle threads are forgotten after this long. | 1440 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server connects you to ChatGPT and other AI models (Gemini, Grok, Claude, DeepSeek, Mistral, Llama, Perplexity, Kimi, Qwen, Cohere, local models).
chatgpt_ask: send ChatGPT (the default AI) a message. Pass a conversation_id to keep a multi-turn thread.
ai_ask: ask a specific AI by name (provider="gemini", "grok", "claude", ...).
ai_panel: ask every configured AI the same question at once, then summarise agreement and disagreement.
ai_team: make several AIs work together on a task with roles (review loop, discussion or pipeline). Pass your own draft to have the team improve your work.
ai_list_providers: see which AIs are switched on and how to add more.
Files can be shared with the AIs through the 'files' input (only from folders in ALLOWED_FILE_DIRS).
chatgpt_second_opinion / chatgpt_code_review / chatgpt_debate: get a critical outside view.
chatgpt_structured: get a JSON object back.
chatgpt_compare_models: run one prompt on several models side by side.
chatgpt_generate_image: create images.
chatgpt_list_models / chatgpt_server_info: discover models and check the bridge. The other AIs cannot see your conversation with the user. Always include the full context they need. Tell the user which AI each answer came from.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| chatgpt_askA | Send a message to ChatGPT (or the bridge's default AI) and get its reply. Use this when the user asks to 'ask ChatGPT' or wants a second model's view. For a multi-turn chat, pass the same conversation_id on every call. To ask a different AI by name (Gemini, Grok, Claude, DeepSeek...), use ai_ask instead. The other AI cannot see this conversation, so include all the context it needs. |
| ai_askA | Send a message to a specific AI model: ChatGPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, Perplexity, Kimi, Qwen, Cohere, models on Groq or OpenRouter, or a local model via Ollama/LM Studio. Use this whenever the user names an AI ('ask Gemini', 'what does Grok think'). Pass the same conversation_id to keep a multi-turn thread with that AI. |
| chatgpt_list_conversationsA | List the conversation threads this bridge is holding (with ChatGPT or any other AI), newest first. |
| chatgpt_get_conversationA | Show the full message history of one ChatGPT conversation thread. |
| chatgpt_reset_conversationA | Forget a ChatGPT conversation so the next message with that ID starts fresh. Set all=true to delete every conversation. |
| chatgpt_second_opinionA | Ask ChatGPT (or any AI, via provider) to critically review an answer, plan or piece of writing, for example Claude's own draft, and say what is right, wrong or missing. Useful for cross-checking important answers between models. |
| chatgpt_code_reviewA | Have ChatGPT (or any AI, via provider) review code for bugs, security problems, performance and readability, with severity ratings and suggested fixes. |
| chatgpt_structuredA | Ask ChatGPT (or any AI, via provider) for a machine-readable JSON object (for example, extracting fields from text, classifying items, or generating test data). Describe the shape you want in json_shape. |
| chatgpt_debateA | Ask ChatGPT (or any AI, via provider) to argue against (or for) a position so you can stress-test an idea. ChatGPT gives its strongest arguments, then the best counter-points, then a balanced conclusion. |
| chatgpt_compare_modelsA | Send the same prompt to 2 to 8 models in parallel and return their answers side by side, with timing and token usage. Entries can be model IDs ('gpt-5.6-sol'), provider names ('gemini', 'grok', 'claude') or 'provider:model' ('xai:grok-4.6'). Use it to choose a model or to see where models disagree. |
| ai_panelA | Ask several different AIs the same question at once (by default every AI configured in the bridge, up to 8) and get all their answers side by side. Use it when the user wants a consensus, a 'council', or to see what ChatGPT, Gemini, Grok, DeepSeek and others each think. Afterwards, summarise where they agree and disagree. |
| ai_teamA | Make several AI models work together as a team on a task, for work or code. Modes: 'review' (first member writes or revises, the others review, repeated for several rounds until approved; pass your own draft to have the team improve YOUR work), 'discussion' (all answer, then read each other's answers and refine), 'pipeline' (each member does its role in order, e.g. researcher -> writer -> editor). Roles: author, coder, reviewer, critic, security, tester, researcher, writer, editor, planner, devils_advocate, summariser, expert, or any custom role text. Use for code reviews, document drafting, planning, decisions and debugging. Afterwards, check the result yourself and tell the user which AI did what. |
| chatgpt_generate_imageA | Create an image from a text description using OpenAI's image model (the same family ChatGPT uses). The image is returned so Claude can see and describe it. If IMAGE_OUTPUT_DIR is set, it is also saved to disk. |
| ai_list_providersA | List every AI the bridge can connect to (ChatGPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, Perplexity, Kimi, Qwen, Cohere, Groq, OpenRouter, Ollama, LM Studio), which ones are switched on, their default models, and exactly which setting turns each one on. |
| chatgpt_list_modelsA | List the model IDs an AI provider offers to your key (ChatGPT by default; pass provider for others). Use this to pick a value for the 'model' parameter or to troubleshoot 'model not found' errors. |
| chatgpt_server_infoA | Show the bridge version, which AI providers are switched on and the current settings (never shows API keys). Use to check the bridge is working. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| team_build | Claude plans, an AI team critiques the plan, Claude builds, the team reviews the result. |
| team_write | A researcher, a writer and an editor (different AIs) produce a document; Claude checks it. |
| cross_check | Claude answers a question, then asks ChatGPT for a second opinion and reconciles the two. |
| council | Claude and ChatGPT each propose an approach to a problem, then Claude merges the best of both. |
| review_my_code | Claude and ChatGPT both review the same code; Claude merges and de-duplicates the findings. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 16 tools
The descriptions do a good job separating chatgpt_ask from ai_ask (default vs named provider), but the pair still overlaps since nearly every chatgpt_* tool secretly accepts any provider. The bigger collision is chatgpt_compare_models vs ai_panel, which both fan a prompt out to multiple models in parallel and return side-by-side answers, differentiated mainly by input format rather than purpose. The prompt-preset tools (second_opinion, code_review, debate) are also close cousins that an agent could easily misselect between.
Two competing prefixes coexist: chatgpt_* (12 tools) and ai_* (4 tools), and the chatgpt_ prefix is actively misleading because those tools accept Gemini, Grok, Claude and others. Suffixes mix noun-actions (chatgpt_ask, ai_ask), verb_noun list/get/reset patterns, and concept names (chatgpt_debate, chatgpt_structured). It remains readable, but the pattern is not predictable from a name alone.
16 tools is on the heavy side for what is essentially a chat-and-fan-out bridge. Several tools (second_opinion, code_review, debate, structured) are prompt templates that could collapse into one ask tool with a mode parameter, so a few slots are not truly earning their place.
Coverage is broad: single-model chat, conversation list/get/reset, provider and model discovery, server health, multi-model comparison, team workflows and image generation. Minor gaps exist—conversation history is only retrievable per ChatGPT thread (no generic get for other providers), and there is no tool to actually toggle a provider on despite documenting which setting does it.