Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here
ChatGPT MCP Server logo

ChatGPT MCP Server

xncbf/chatgpt-mcp
75 starsSTDIORegistry activeMITUpdated 2026-07-09Community

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

claude mcp add chatgpt -- uvx chatgpt-mcp

Summary

ChatGPT MCP is a lightweight Model Context Protocol server that automates the macOS ChatGPT desktop app. It gives any MCP-compatible assistant three tools: send a prompt to ChatGPT, retrieve the latest response, and open a new conversation.

Connect from your MCP client

One-click install

Add this server to your editor with a single click. Fill in any required credentials afterward.

Claude Code

Run this once and Claude Code registers the server for you:

claude mcp add chatgpt -- uvx chatgpt-mcp

Claude Desktop

Add this to claude_desktop_config.json under Settings → Developer → Edit Config:

{
  "mcpServers": {
    "chatgpt": {
      "command": "uvx",
      "args": [
        "chatgpt-mcp"
      ]
    }
  }
}

Cursor

Add this to .cursor/mcp.json in your project (or ~/.cursor/mcp.json for all projects):

{
  "mcpServers": {
    "chatgpt": {
      "command": "uvx",
      "args": [
        "chatgpt-mcp"
      ]
    }
  }
}

Cline and other MCP clients

Most MCP clients accept the standard mcpServers JSON block:

{
  "mcpServers": {
    "chatgpt": {
      "command": "uvx",
      "args": [
        "chatgpt-mcp"
      ]
    }
  }
}

Codex CLI

Register the server with OpenAI's Codex CLI — run this once, or add the equivalent block to ~/.codex/config.toml:

codex mcp add chatgpt -- uvx chatgpt-mcp

# or add to ~/.codex/config.toml:
[mcp_servers.chatgpt]
command = "uvx"
args = ["chatgpt-mcp"]

OpenClaw

OpenClaw reads MCP servers from the mcp.servers section of ~/.openclaw/openclaw.json (managed via `openclaw mcp add` or the mcporter skill):

{
  "mcp": {
    "servers": {
      "chatgpt": {
        "command": "uvx",
        "args": [
          "chatgpt-mcp"
        ]
      }
    }
  }
}

README.md

ChatGPT MCP Server

A Model Context Protocol (MCP) server that enables AI assistants to interact with the ChatGPT desktop app on macOS.

<a href="https://glama.ai/mcp/servers/@xncbf/chatgpt-mcp"> <img width="380" height="200" src="https://glama.ai/mcp/servers/@xncbf/chatgpt-mcp/badge" alt="ChatGPT Server MCP server" /> </a>

https://github.com/user-attachments/assets/a30c9b34-cdbe-4c0e-a0b0-33eb5054db5c

Language Support

Supported system languages for response detection:

  • Korean
  • English

If your macOS system language is not listed above, please follow these instructions:

  1. Make sure ChatGPT desktop app is running
  2. Run show_all_button_names.applescript and copy the output to create an issue for language support.

Features

  • Send prompts to ChatGPT from any MCP-compatible AI assistant
  • Built with Python and FastMCP

Note: This server only supports English text input. Non-English characters may not work properly.

Installation

Prerequisites

  • macOS
  • ChatGPT desktop app installed and running
  • Python 3.10+
  • uv package manager

For Claude Code Users

Simply run: ``bash claude mcp add chatgpt-mcp uvx chatgpt-mcp ``

That's it! You can start using ChatGPT commands in Claude Code.

For Other MCP Clients

Step 1: Install the MCP Server

Option A: Install from PyPI (Recommended)

# Install with uv
uv add chatgpt-mcp

Option B: Manual Installation

# Clone the repository
git clone https://github.com/xncbf/chatgpt-mcp
cd chatgpt-mcp

# Install dependencies with uv
uv sync

Step 2: Configure Your MCP Client

If installed from PyPI, add to your MCP client configuration: ``json { "mcpServers": { "chatgpt": { "command": "uvx", "args": ["chatgpt-mcp"] } } } ``

If manually installed, add to your MCP client configuration: ``json { "mcpServers": { "chatgpt": { "command": "uv", "args": ["run", "chatgpt-mcp"], "cwd": "/path/to/chatgpt-mcp" } } } ``

Usage

  1. Open ChatGPT desktop app and make sure it's running
  2. Open your MCP client (Claude Code, etc.)
  3. Use ChatGPT commands in your AI assistant:
  • "Send a message to ChatGPT"

The AI assistant will automatically use the appropriate MCP tools to interact with ChatGPT.

Available Tools

ask_chatgpt

Send a prompt to ChatGPT and receive the response.

ask_chatgpt(prompt="Hello, ChatGPT!")

get_chatgpt_response

Get the latest response from ChatGPT after sending a message.

get_chatgpt_response()

new_chatgpt_chat

Start a new chat conversation in ChatGPT.

new_chatgpt_chat()

Development

Local Testing

To test the MCP server locally during development:

  1. Install in editable mode
   uv pip install -e .
  1. Test with MCP Inspector
   npx @modelcontextprotocol/inspector chatgpt-mcp

The editable installation creates a chatgpt-mcp command that directly references your source code, so any changes you make are immediately reflected without reinstalling.

Running without installation

You can also run the server directly: ``bash PYTHONPATH=. uv run python -m chatgpt_mcp.chatgpt_mcp ``

License

MIT

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use AI & ML servers.