mcp-chatgpt-bridge
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-chatgpt-bridgeShould I refactor this function to use async/await?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-chatgpt-bridge
MCP server that lets Claude Code consult an AI advisor (OpenAI or Gemini, configurable via web dashboard) for a second opinion mid-task, with explicit context passed by the caller.
Contents
Related MCP server: LLM Panel
What it does
When Claude Code is stuck on a design decision, needs a cross-check, or wants an independent opinion, it can call the ask_chatgpt tool to consult an AI advisor. The advisor sees only the context you provide — it has no access to your repo, files, or conversation history.
Every consultation is automatically pushed to Telegram/Slack (if configured) so you can review the advice independently later.
Features
Dual-provider — OpenAI or Gemini, switchable via the web dashboard.
Key rotation (LRU + cooldown) — spreads load across multiple keys, skips ones currently rate-limited (429).
Full audit log — every question/context/answer plus all HTTP requests logged daily to
logs/YYYY-MM-DD.log, viewable in the dashboard.Best-effort notify — pushes each consultation to Telegram/Slack in parallel; delivery failures never block the tool result.
No
.envneeded — all config (API keys, active provider, notify secrets) lives in a local SQLite database, managed vianpm run web.
Quickstart
See Deployment Guide for full setup instructions.
TL;DR:
npm install && npm run build
npm run web # Start the web dashboard (port 4141)
# Open http://localhost:4141, add your API key, select provider (OpenAI or Gemini)
npm run install-hooks # restores the ask-chatgpt-gate hooks into ~/.claude (see below)
claude mcp add chatgpt-bridge -s user -- node "$(pwd)/dist/index.js"
# No -e flags needed — all config lives in the dashboardThe ask_chatgpt tool
ask_chatgpt({
question: string, // The specific question to ask
context: string, // Self-contained background the AI needs
model?: string // Optional: override the provider's default model
})The AI responds in Vietnamese with three sections: Câu hỏi (question recap), Khuyến nghị (recommendation), Giải thích (reasoning). Which provider (OpenAI or Gemini) is used is determined by the selection in the web dashboard — the tool itself always consults whoever is active.
Model precedence: if the API key picked for this call has its own model configured (set via the web dashboard — useful when a key points at a non-default endpoint like OpenRouter, whose model namespace differs from OpenAI's own), that always wins over the model param above. Otherwise model overrides the provider's default; if both are omitted, the provider's hardcoded default model is used.
Architecture
Claude Code calls ask_chatgpt over stdio; the server picks an active provider/key from SQLite, dispatches the call, logs the outcome, and (best-effort, in parallel) notifies Telegram/Slack.
flowchart LR
A[Claude Code] -->|stdio: ask_chatgpt| B[mcp-chatgpt-bridge]
B --> C{Active provider}
C -->|OpenAI/OpenRouter| D[openai-provider]
C -->|Gemini| E[gemini-provider]
B --> F[(SQLite: config + usage log)]
B -.->|best-effort| G[Telegram / Slack]Two global Claude Code hooks push auto-consult behavior (one hard-blocks AskUserQuestion until ask_chatgpt has run, capped at 2 tries/session so it can't loop forever) — see System Architecture § Global Hook Enforcement for the full mechanism, error handling, and design rationale.
Project Status
Maturity: Demo / personal use (0.1.0)
Test suite: None yet
CI/CD: None yet
Known gaps:
Gemini path not yet live-tested (no API key available at time of refactor completion)
No dashboard authentication (bare SQLite CRUD, suitable only for local single-user use)
usage_events table unbounded growth (no retention policy yet)
See Project Roadmap for details.
Documentation
Project Overview & PDR — Purpose, scope, non-goals
Codebase Summary — File-by-file breakdown and data flow
Code Standards — Conventions observed in this codebase
System Architecture — Architecture diagram and component details
Deployment Guide — Setup, registration, environment variables
Project Roadmap — Current state and open items
License
No LICENSE file yet — all rights reserved by default until one is added.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityAmaintenanceAn MCP server that lets Claude Code consult stronger AI models (o3, Gemini 2.5 Pro, DeepSeek Reasoner) when you need deeper analysis on complex problems.Last updated1102126MIT
- Alicense-qualityCmaintenanceA small MCP server that lets Claude (or any MCP client) ask other models what they think.Last updatedMIT
- Alicense-qualityBmaintenanceMCP server enabling Claude to consult Codex (GPT-5.x) mid-task for second opinions, plan/diff review, brainstorming, and codebase exploration via structured debates and permission-controlled interactions.Last updated2MIT
- Flicense-qualityCmaintenanceAn MCP server that lets Claude Code send prompts to a logged-in ChatGPT web session via Chrome DevTools Protocol, enabling a second opinion from GPT without using API tokens.Last updated
Related MCP Connectors
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
A paid remote MCP for OpenAI Codex agent coordination MCP, built to return verdicts, receipts, usage
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/hieuh0/mcp-chatgpt-bridge'
If you have feedback or need assistance with the MCP directory API, please join our Discord server