About
Claude ChatGPT MCP Server enables Claude to control and interact with the ChatGPT desktop application on macOS through native UI automation. Key features: - Ask ChatGPT questions directly from within Claude conversations - Retrieve and view recent ChatGPT conversation history - Continue existing ChatGPT conversations without switching applications - Native macOS integration using AppleScript and Accessibility APIs - Optimized for Apple Silicon Macs (M1/M2/M3) with robust UI element targeting - Handles ChatGPT interface changes through multiple targeting approaches
README
Claude ChatGPT MCP Tool
This is a Model Context Protocol (MCP) tool that allows Claude to interact with the ChatGPT desktop app on macOS.
Features
Installation
Prerequisites
NPX Installation (Recommended)
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"]
}
Manual Installation
1. Clone this repository:
git clone https://github.com/syedazharmbnr1/claude-chatgpt-mcp.git
cd claude-chatgpt-mcp
2. Install dependencies:
bun install
3. Make sure the script is executable:
chmod +x index.ts
4. Update your Claude Desktop configuration:
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.
5. Restart Claude Desktop app
6. Grant permissions: - Go to System Preferences > Privacy & Security > Privacy - Give Terminal (or iTerm) access to Accessibility features - You may see permission prompts when the tool is first used
Usage
Once installed, you can use the ChatGPT tool directly from Claude by asking questions like:
Troubleshooting
If the tool isn't working properly:
1. Make sure ChatGPT app is installed and you're logged in 2. Verify the path to bun in your claude_desktop_config.json is correct 3. Check that you've granted all necessary permissions 4. Try restarting both Claude and ChatGPT apps
Optimizations
This fork includes several significant improvements to the original implementation:
Enhanced AppleScript Robustness
#### Conversation Retrieval
#### Response Handling
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.
License
MIT
Related MCP Servers
AI Research Assistant
hamid-vakilzadeh
AI Research Assistant provides comprehensive access to millions of academic papers through the Semantic Scholar and arXiv databases. This MCP server enables AI coding assistants to perform intelligent literature searches, citation network analysis, and paper content extraction without requiring an API key. Key features include: - Advanced paper search with multi-filter support by year ranges, citation thresholds, field of study, and publication type - Title matching with confidence scoring for finding specific papers - Batch operations supporting up to 500 papers per request - Citation analysis and network exploration for understanding research relationships - Full-text PDF extraction from arXiv and Wiley open-access content (Wiley TDM token required for institutional access) - Rate limits of 100 requests per 5 minutes with options to request higher limits through Semantic Scholar
Linkup
LinkupPlatform
Linkup is a real-time web search and content extraction service that enables AI assistants to search the web and retrieve information from trusted sources. It provides source-backed answers with citations, making it ideal for fact-checking, news gathering, and research tasks. Key features of Linkup: - Real-time web search using natural language queries to find current information, news, and data - Page fetching to extract and read content from any webpage URL - Search depth modes: Standard for direct-answer queries and Deep for complex research across multiple sources - Source-backed results with citations and context from relevant, trustworthy websites - JavaScript rendering support for accessing dynamic content on JavaScript-heavy pages
Math-MCP
EthanHenrickson
Math-MCP is a computation server that enables Large Language Models (LLMs) to perform accurate numerical calculations through the Model Context Protocol. It provides precise mathematical operations via a simple API to overcome LLM limitations in arithmetic and statistical reasoning. Key features of Math-MCP: - Basic arithmetic operations: addition, subtraction, multiplication, division, modulo, and bulk summation - Statistical analysis functions: mean, median, mode, minimum, and maximum calculations - Rounding utilities: floor, ceiling, and nearest integer rounding - Trigonometric functions: sine, cosine, tangent, and their inverses with degrees and radians conversion support