Skip to main content
Glama

🚀 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_ask

ส่งคำถามไปยัง ChatGPT Web

message, model, reasoning_effort, web_search, file_paths, image_paths, conversation_id, new_chat

chatgpt_new_chat

เริ่มต้นบทสนทนาใหม่บน ChatGPT

-

chatgpt_list_conversations

ดึงประวัติรายการบทสนทนาล่าสุด

limit (ค่าเริ่มต้น: 20)

chatgpt_list_models

ดึงรายชื่อโมเดลที่บัญชีสามารถใช้งานได้

-

chatgpt_get_status

ตรวจสอบสถานะการเชื่อมต่อและการล็อกอิน

-

llm_ask

สั่งคำถามไปยัง Provider ใดก็ได้

message, provider (chatgpt | gemini | kimi | zai), model

2. เครื่องมือ Multi-Provider (เสริม)

Provider

Tools

ความสามารถเด่น

Google Gemini

gemini_ask, gemini_new_chat, gemini_get_status

เชื่อมต่อ gemini.google.com/app ค้นหาแท็บอัตโนมัติ

Z.ai

zai_ask, zai_new_chat, zai_get_status

เชื่อมต่อ chat.z.ai รองรับโมเดล GLM-5.2 Deep Think

Kimi AI

kimi_ask, kimi_new_chat, kimi_get_status

เชื่อมต่อ kimi.ai รองรับดีไซน์ใหม่ K3 ProseMirror

3. เครื่องมือ Workspace & Profiles

Tool Name

คำอธิบาย

พารามิเตอร์หลัก

shell_command

รันคำสั่ง Shell ในไดเรกทอรีโปรเจกต์อย่างปลอดภัย

command, workdir, timeout_ms, shell

apply_patch

แก้ไข/เขียนทับเนื้อหาไฟล์ในโปรเจกต์

patch (V4 format)

chatgpt_list_profiles

แสดงรายการโปรไฟล์ Chrome ที่พบบนเครื่อง

-

chatgpt_select_profile

เลือกโปรไฟล์ Chrome สำหรับใช้งาน

profile


📦 การติดตั้งและการเตรียมความพร้อม (Installation)

1. ติดตั้ง Dependencies และ Build โปรเจกต์

git clone https://github.com/JonusNattapong/mcp-chatgpt.git
cd mcp-chatgpt
npm install
npm run build

2. ติดตั้ง Chrome Extension Bridge (แนะนำ)

  1. เปิด Google Chrome แล้วไปที่ chrome://extensions/

  2. เปิดสวิตช์ Developer mode ที่มุมขวาบน

  3. คลิก Load unpacked แล้วเลือกโฟลเดอร์ extension ภายในโปรเจกต์นี้

  4. คลิกไอคอนส่วนขยาย 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 tools
apply_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

    A3.8/5.0

    Scored across 12 tools

    Disambiguation4/5

    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.

    Naming Consistency4/5

    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.

    Tool Count4/5

    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.

    Completeness4/5

    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

    Related MCP Servers