mcp-chatgpt
This server lets you connect AI clients to ChatGPT Web (and optionally Gemini/Z.ai/Kimi) through Chrome automation, plus run workspace shell and file-edit tools.
Ask ChatGPT questions with model selection, reasoning effort, web search, file/image attachments, conversation continuation, and code extraction.
Manage ChatGPT sessions: start new chats, list conversations/models, get status, reload, fetch latest response, and log in.
Control Chrome profiles: list detected profiles and select which profile to use for automation.
Run shell commands and apply file patches safely inside a configured project/workspace root.
Optionally switch to Google Gemini, Z.ai (GLM), or Kimi AI providers through the unified
llm_asktool.
Provides tools for interacting with Google Gemini through browser automation, including sending prompts, starting new conversations, and checking connection status.
Click on "Deploy 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 Ask ChatGPT to explain quantum computing in simple terms"
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
เซิร์ฟเวอร์ Model Context Protocol (MCP) ประสิทธิภาพสูง สำหรับเชื่อมต่อ AI Client (เช่น Claude Desktop, Cursor, Cline, Antigravity) เข้ากับ ChatGPT Web เป็นเครื่องยนต์หลัก พร้อมรองรับ Google Gemini, Z.ai (GLM-5.2) และ Kimi AI (K3) ผ่าน Chrome Extension Bridge หรือ Playwright Automation โดยตรงจากโปรไฟล์เบราว์เซอร์ในเครื่องของคุณ
🌟 ฟีเจอร์เด่น (Key Features)
🟢 ChatGPT Web First (หลัก): สนทนาต่อเนื่อง, ค้นหาเว็บ (
web_search), วิเคราะห์ไฟล์/รูปภาพ, เลือกโมเดล (GPT-4o, o3-mini) และเลือกระดับการคิด (reasoning_effort: High / Medium / Low)🔌 Chrome Extension Bridge: เชื่อมต่อตรงกับแท็บเบราว์เซอร์ที่เปิดอยู่แบบ Real-time ไม่ต้องล็อกอินซ้ำ และไม่รบกวนการทำงานปกติ
🌐 Multi-Provider Support (เสริม): สลับไปใช้งาน Google Gemini, Z.ai (GLM-5.2 Deep Think) หรือ Kimi AI (K3) ได้ในระบบเดียว
📁 Workspace & Shell Tools: มีเครื่องมือสั่งรันคำสั่ง Shell (
shell_command) และแก้ไขไฟล์ (apply_patch) อย่างปลอดภัยภายในโปรเจกต์👤 Chrome Profile Selector: ตรวจจับและสลับโปรไฟล์ Chrome ที่มีอยู่ในเครื่องอัตโนมัติ
🔒 Local & Remote MCP: รองรับทั้งโหมด Local stdio สำหรับใช้งานในเครื่อง และโหมด Remote Streamable HTTP (พร้อม Bearer Token Auth และ Cloudflare Tunnel)
Related MCP server: agentify-desktop
🛠️ รายการ MCP Tools (Tools Reference)
1. เครื่องมือหลัก ChatGPT & Unified
Tool Name | คำอธิบาย | พารามิเตอร์หลัก |
| ส่งคำถามไปยัง ChatGPT Web |
|
| เริ่มต้นบทสนทนาใหม่บน ChatGPT | - |
| ดึงประวัติรายการบทสนทนาล่าสุด |
|
| ดึงรายชื่อโมเดลที่บัญชีสามารถใช้งานได้ | - |
| ตรวจสอบสถานะการเชื่อมต่อและการล็อกอิน | - |
| สั่งคำถามไปยัง Provider ใดก็ได้ |
|
2. เครื่องมือ Multi-Provider (เสริม)
Provider | Tools | ความสามารถเด่น |
Google Gemini |
| เชื่อมต่อ |
Z.ai |
| เชื่อมต่อ |
Kimi AI |
| เชื่อมต่อ |
3. เครื่องมือ Workspace & Profiles
Tool Name | คำอธิบาย | พารามิเตอร์หลัก |
| รันคำสั่ง Shell ในไดเรกทอรีโปรเจกต์อย่างปลอดภัย |
|
| แก้ไข/เขียนทับเนื้อหาไฟล์ในโปรเจกต์ |
|
| แสดงรายการโปรไฟล์ Chrome ที่พบบนเครื่อง | - |
| เลือกโปรไฟล์ Chrome สำหรับใช้งาน |
|
📦 การติดตั้งและการเตรียมความพร้อม (Installation)
1. ติดตั้ง Dependencies และ Build โปรเจกต์
git clone https://github.com/JonusNattapong/mcp-chatgpt.git
cd mcp-chatgpt
npm install
npm run build2. ติดตั้ง Chrome Extension Bridge (แนะนำ)
เปิด Google Chrome แล้วไปที่
chrome://extensions/เปิดสวิตช์ Developer mode ที่มุมขวาบน
คลิก Load unpacked แล้วเลือกโฟลเดอร์
extensionภายในโปรเจกต์นี้คลิกไอคอนส่วนขยาย MCP Web LLMs Bridge เพื่อเปิดใช้งาน
⚙️ การตั้งค่าใน AI Client (Configuration)
1. Claude Desktop / Cursor / Antigravity IDE (claude_desktop_config.json)
{
"mcpServers": {
"chatgpt-bridge": {
"command": "node",
"args": ["D:/Projects/Github/mcp-chatgpt/dist/index.js"]
}
}
}2. เปิดใช้งานแบบ Remote HTTP Server (พร้อม Bearer Auth)
# รัน HTTP Server พอร์ต 8686
node dist/index.js --http 8686 --auth-token "your-secret-token"
# หรือเชื่อมต่อผ่าน Cloudflare Tunnel
node dist/index.js --http 8686 --tunnel🧪 การทดสอบระบบ (Testing)
# รัน Unit Tests ทั้งหมด
npm test
# รัน Bridge Mode อย่างเดียว
npm run bridge📄 License
MIT License © 2026 JonusNattapong
Available Tools
12 toolsapply_patchA
Safely add, update, delete, or move files inside the configured shell root using an *** Begin Patch / *** End Patch patch. Prefer this over shell redirection for code edits.
Inputs: patch (required).
chatgpt_askB
Send a question or prompt to ChatGPT Web (chatgpt.com) and get the assistant response. Supports Web Search, o1/o3-mini reasoning, model selection, code extraction, image/file attachments, and Chrome profiles.
Inputs: message (required), model, profile, new_chat, +9 more.
chatgpt_get_latest_responseA
Fetch and recover the latest assistant response (including text, code blocks, and images) from the current or specified conversation without asking a new question. Useful after recovering from a timeout or reload.
Inputs: refresh_first, conversation_id.
chatgpt_get_statusA
Get the current status of ChatGPT Web automation (initialized, logged in, active profile, extension bridge status, current conversation URL, title, model).
Inputs: no named parameters.
chatgpt_list_conversationsA
List recent conversation history topics and IDs from the ChatGPT sidebar so you can select and resume any previous chat.
Inputs: limit.
chatgpt_list_modelsA
List all available AI models (e.g. GPT-5.6 Sol, GPT-5.5, o3, gpt-4o, o1) and reasoning effort options for this ChatGPT account.
Inputs: no named parameters.
chatgpt_list_profilesA
List all detected Google Chrome profiles available on this machine (including Profile Folder ID, Display Name, Email).
Inputs: no named parameters.
chatgpt_loginA
Open ChatGPT Web in a visible (headed) browser window so the user can log in or solve Captcha challenges.
Inputs: profile.
chatgpt_new_chatA
Start a clean/new conversation on ChatGPT Web.
Inputs: no named parameters.
chatgpt_reloadA
Reload and refresh the current ChatGPT Web page to fix stuck conversations or connection glitches.
Inputs: no named parameters.
chatgpt_select_profileA
Select which Chrome profile to use for ChatGPT Web automation (by Profile Folder ID, Display Name, or Email).
Inputs: profile (required).
shell_commandA
Run a command with a working directory inside the configured shell root. Uses PowerShell on Windows and Bash on Linux/macOS by default. The command has the same OS permissions as this MCP server.
Inputs: command (required), shell, workdir, timeout_ms.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
The ChatGPT tools mostly map to distinct lifecycle stages, such as selecting a profile, asking a question, reloading the page, and fetching status. The main potential confusions are shell_command vs apply_patch for file operations and chatgpt_ask vs chatgpt_get_latest_response for retrieving assistant output, though the descriptions provide reasonable separation.
The 10 chatgpt_* tools consistently use a readable, mostly verb-first style with a common prefix. Two tools, shell_command and apply_patch, break away from the chatgpt_ prefix and use different naming conventions, which makes the overall set slightly inconsistent.
With 12 tools, the count is reasonable, and most tools are clearly relevant to ChatGPT Web automation. The shell_command and apply_patch pair broadens the server beyond ChatGPT-specific tasks, feeling slightly like an additional generic toolkit rather than a core part of the same domain.
The core ChatGPT Web workflow is covered well: profile selection, login/status, starting a chat, asking questions, recovering responses, listing conversations, listing models, and reloading. Obvious gaps are conversation management actions such as delete or rename, and there is no explicit tool name for select/resume a previous conversation, though this may be handled through parameters in ask or get_latest_response.
Related MCP Connectors
Hosted MCP server connecting AI assistants to 9,000+ apps and 40,000+ actions via Zapier.
MCP server that lets your AI assistant build and deploy apps, hosting each one at a live URL.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server for OpenAI API (chat completions, image generation, embeddings) via AceDataCloud
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceAn MCP Server that enables AI assistants to interact with your local browsers.4,045 npm55MIT

agentify-desktopofficial
AlicenseNot gradedqualityDmaintenanceMCP server that enables AI tools to control local browser sessions for ChatGPT, Claude, and other AI services, supporting querying, navigation, file uploads, and artifact management.25 npm574Mozilla Public 2.0- AlicenseAqualityDmaintenanceA MCP server that gives AI assistants full browser control, enabling navigation, clicking, form filling, and screenshots via any MCP client.8MIT
- AlicenseBqualityFmaintenanceMCP server that drives chatgpt.com via web UI automation using a session token, enabling long-running tasks, deep research, and image generation.9142 npm2MIT