The ChatGPT MCP Server allows AI assistants to interact with the ChatGPT desktop app on macOS through:
Send Prompts: Use
ask_chatgpt_toolto send prompts to ChatGPT and receive responsesRetrieve Responses: Use
get_chatgpt_response_toolto get the latest response from ChatGPTMCP Compatibility: Works with any MCP-compatible AI assistant for seamless integration
Language Support: Handles prompts in English and detects responses in Korean and English
Easy Setup: Can be installed via PyPI or manually
Enables AI assistants to interact with the ChatGPT desktop app on macOS, allowing them to send prompts to ChatGPT and receive responses.
ChatGPT MCP Server
A Model Context Protocol (MCP) server that enables AI assistants to interact with the ChatGPT desktop app on macOS.
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:
Make sure ChatGPT desktop app is running
Run
show_all_button_names.applescriptand copy the output to create an issue for language support.
Related MCP server: MCP AI Chat LangChain
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:
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)
Option B: Manual Installation
Step 2: Configure Your MCP Client
If installed from PyPI, add to your MCP client configuration:
If manually installed, add to your MCP client configuration:
Usage
Open ChatGPT desktop app and make sure it's running
Open your MCP client (Claude Code, etc.)
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.
get_chatgpt_response
Get the latest response from ChatGPT after sending a message.
new_chatgpt_chat
Start a new chat conversation in ChatGPT.
Development
Local Testing
To test the MCP server locally during development:
Install in editable mode
uv pip install -e .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:
License
MIT