Skip to content
Back to search

claude-chatgpt-mcp

A Claude MCP tool to interact with the ChatGPT desktop app on macOS

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/syedazharmbnr1--claude-chatgpt-mcp/badge.svg)](/listings/syedazharmbnr1--claude-chatgpt-mcp)

HTML

<a href="/listings/syedazharmbnr1--claude-chatgpt-mcp"><img src="/api/listings/syedazharmbnr1--claude-chatgpt-mcp/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

Prerequisites

- macOS with M1/M2/M3 chip - [ChatGPT desktop app](https://chatgpt.com/download) installed - [Bun](https://bun.sh/) installed - [Claude desktop app](https://claude.ai/desktop) installed

NPX Installation (Recommended)

You can use NPX to run this tool without cloning the repository:

- **Install and run the package using NPX:**

npx claude-chatgpt-mcp

- **Configure Claude Desktop:**

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:** - 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

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

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 131 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. # Claude ChatGPT MCP Tool
  2. This is a Model Context Protocol (MCP) tool that allows Claude to interact with the ChatGPT desktop app on macOS.
  3. ## Features
  4. - Ask ChatGPT questions directly from Claude
  5. - View ChatGPT conversation history
  6. - Continue existing ChatGPT conversations
  7. ## Installation
  8. ### Prerequisites
  9. - macOS with M1/M2/M3 chip
  10. - [ChatGPT desktop app](https://chatgpt.com/download) installed
  11. - [Bun](https://bun.sh/) installed
  12. - [Claude desktop app](https://claude.ai/desktop) installed
  13. ### NPX Installation (Recommended)
  14. You can use NPX to run this tool without cloning the repository:
  15. - **Install and run the package using NPX:**
  16. ```bash
  17. npx claude-chatgpt-mcp
  18. ```
  19. - **Configure Claude Desktop:**
  20. Edit your `claude_desktop_config.json` file (located at `~/Library/Application Support/Claude/claude_desktop_config.json`) to include this tool:
  21. ```json
  22. "chatgpt-mcp": {
  23. "command": "npx",
  24. "args": ["claude-chatgpt-mcp"]
  25. }
  26. ```
  27. - **Restart the Claude Desktop app**
  28. - **Grant necessary permissions:**
  29. - Go to System Preferences > Privacy & Security > Privacy
  30. - Give Terminal (or iTerm) access to Accessibility features
  31. - You may see permission prompts when the tool is first used
  32. ### Manual Installation
  33. 1. Clone this repository:
  34. ```bash
  35. git clone https://github.com/syedazharmbnr1/claude-chatgpt-mcp.git
  36. cd claude-chatgpt-mcp
  37. ```
  38. 2. Install dependencies:
  39. ```bash
  40. bun install
  41. ```
  42. 3. Make sure the script is executable:
  43. ```bash
  44. chmod +x index.ts
  45. ```
  46. 4. Update your Claude Desktop configuration:
  47. Edit your `claude_desktop_config.json` file (located at `~/Library/Application Support/Claude/claude_desktop_config.json`) to include this tool:
  48. ```json
  49. "chatgpt-mcp": {
  50. "command": "/Users/YOURUSERNAME/.bun/bin/bun",
  51. "args": ["run", "/path/to/claude-chatgpt-mcp/index.ts"]
  52. }
  53. ```
  54. Make sure to replace `YOURUSERNAME` with your actual macOS username and adjust the path to where you cloned this repository.
  55. 5. Restart Claude Desktop app
  56. 6. Grant permissions:
  57. - Go to System Preferences > Privacy & Security > Privacy
  58. - Give Terminal (or iTerm) access to Accessibility features
  59. - You may see permission prompts when the tool is first used
  60. ## Usage
  61. Once installed, you can use the ChatGPT tool directly from Claude by asking questions like:
  62. - "Can you ask ChatGPT what the capital of France is?"
  63. - "Show me my recent ChatGPT conversations"
  64. - "Ask ChatGPT to explain quantum computing"
  65. ## Troubleshooting
  66. If the tool isn't working properly:
  67. 1. Make sure ChatGPT app is installed and you're logged in
  68. 2. Verify the path to bun in your claude_desktop_config.json is correct
  69. 3. Check that you've granted all necessary permissions
  70. 4. Try restarting both Claude and ChatGPT apps
  71. ## Optimizations
  72. This fork includes several significant improvements to the original implementation:
  73. ### Enhanced AppleScript Robustness
  74. #### Conversation Retrieval
  75. - Added multiple UI element targeting approaches to handle ChatGPT UI changes
  76. - Implemented better error detection with specific error messages
  77. - Added fallback mechanisms using accessibility attributes
  78. - Improved timeout handling with appropriate delays
  79. #### Response Handling
  80. - Replaced fixed waiting times with dynamic response detection
  81. - Added intelligent completion detection that recognizes when ChatGPT has finished typing
  82. - Implemented text stability detection (waits until text stops changing)
  83. - Added response extraction logic to isolate just the relevant response text
  84. - Improved error handling with detailed error messages
  85. - Added post-processing to clean up UI elements from responses
  86. - Implemented incomplete response detection to warn about potential cutoffs
  87. 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.
  88. ## License
  89. MIT

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.