ChatGPT MCP Server
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.
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., "@ChatGPT MCP Server summarize this article about climate change"
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.
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 Bridge Server
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:
claude mcp add chatgpt-mcp uvx chatgpt-mcpThat'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-mcpOption B: Manual Installation
# Clone the repository
git clone https://github.com/xncbf/chatgpt-mcp
cd chatgpt-mcp
# Install dependencies with uv
uv syncStep 2: Configure Your MCP Client
If installed from PyPI, add to your MCP client configuration:
{
"mcpServers": {
"chatgpt": {
"command": "uvx",
"args": ["chatgpt-mcp"]
}
}
}If manually installed, add to your MCP client configuration:
{
"mcpServers": {
"chatgpt": {
"command": "uv",
"args": ["run", "chatgpt-mcp"],
"cwd": "/path/to/chatgpt-mcp"
}
}
}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.
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:
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:
PYTHONPATH=. uv run python -m chatgpt_mcp.chatgpt_mcpLicense
MIT
Available Tools
3 toolsask_chatgpt_toolC
Send a prompt to ChatGPT and return the response.
Inputs: prompt (required).
get_chatgpt_response_toolA
Get the latest response from ChatGPT after sending a message.
Inputs: no named parameters.
new_chatgpt_chat_toolA
Start a new chat conversation in ChatGPT.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
The 'ask_chatgpt_tool' returns the response immediately, making 'get_chatgpt_response_tool' redundant and causing confusion about when to use each. 'new_chatgpt_chat_tool' is distinct but the overlap between the first two tools leads to ambiguity.
All tools follow a snake_case pattern with a '_tool' suffix, maintaining consistency. However, the noun component varies (no noun in 'ask_chatgpt_tool', 'response' in 'get_chatgpt_response_tool', 'chat' in 'new_chatgpt_chat_tool'), which is a minor deviation.
Three tools is a reasonable number for a basic ChatGPT interaction server. It covers sending a prompt, retrieving the latest response, and starting a new conversation without being overly minimal or excessive.
The set covers sending prompts and managing conversations at a basic level, but lacks tools for listing past conversations, adjusting model parameters, or deleting chats, which are notable gaps for a chatbot interface.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.
Connect ChatGPT and Claude to your Mac, Windows or Linux with secure MCP remote access.
MCP server that lets your AI assistant build and deploy apps, hosting each one at a live URL.
Related MCP Servers
- AlicenseAqualityDmaintenanceA simple MCP server for interacting with OpenAI assistants. This server allows other tools (like Claude Desktop) to create and interact with OpenAI assistants through the Model Context Protocol.939MIT
- AlicenseBqualityDmaintenanceA macOS-native bridge server that enables communication between different AI clients like Claude and Cline, allowing them to interact with each other through the Model Context Protocol.23MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables AI assistants to communicate with each other using Inter-Process Communication, featuring natural language commands and cross-platform compatibility.9132MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server for Max messenger that lets AI assistants send and read messages, manage chats, and interact with the Max platform API.MIT