The Claude ChatGPT MCP tool enables Claude to interact with the ChatGPT desktop application on macOS, providing capabilities to ask ChatGPT questions, view conversation history, and continue existing conversations directly from Claude. It solves the problem of switching between Claude and ChatGPT by allowing users to query ChatGPT and access its conversation history without leaving the Claude interface. The tool uses AppleScript to control the ChatGPT app and requires macOS with an Apple Silicon chip, along with both Claude and ChatGPT desktop applications installed.
This is a Model Context Protocol (MCP) tool that allows Claude to interact with the ChatGPT desktop app on macOS.
You can use NPX to run this tool without cloning the repository:
npx claude-chatgpt-mcp
Edit your claude_desktop_config.json file (located at ~/Library/Application Support/Claude/claude_desktop_config.json) to include this tool:
"chatgpt-mcp": {
"command": "npx",
"args": ["claude-chatgpt-mcp"]
}
Restart the Claude Desktop app
Grant necessary permissions:
git clone https://github.com/syedazharmbnr1/claude-chatgpt-mcp.git
cd claude-chatgpt-mcp
bun install
chmod +x index.ts
Edit your claude_desktop_config.json file (located at ~/Library/Application Support/Claude/claude_desktop_config.json) to include this tool:
"chatgpt-mcp": {
"command": "/Users/YOURUSERNAME/.bun/bin/bun",
"args": ["run", "/path/to/claude-chatgpt-mcp/index.ts"]
}
Make sure to replace YOURUSERNAME with your actual macOS username and adjust the path to where you cloned this repository.
Restart Claude Desktop app
Grant permissions:
Once installed, you can use the ChatGPT tool directly from Claude by asking questions like:
If the tool isn't working properly:
This fork includes several significant improvements to the original implementation:
These optimizations make the integration more reliable across different scenarios, more resilient to UI changes in the ChatGPT application, and better at handling longer response times without message cutoff issues.
MIT