npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

claude-chatgpt-mcp

v1.0.1

Published

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

Downloads

78

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

  • Ask ChatGPT questions directly from Claude
  • View ChatGPT conversation history
  • Continue existing ChatGPT conversations

Installation

Prerequisites

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
  1. Install dependencies:
bun install
  1. Make sure the script is executable:
chmod +x index.ts
  1. 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.

  1. Restart Claude Desktop app

  2. 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:

  • "Can you ask ChatGPT what the capital of France is?"
  • "Show me my recent ChatGPT conversations"
  • "Ask ChatGPT to explain quantum computing"

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

  • Added multiple UI element targeting approaches to handle ChatGPT UI changes
  • Implemented better error detection with specific error messages
  • Added fallback mechanisms using accessibility attributes
  • Improved timeout handling with appropriate delays

Response Handling

  • Replaced fixed waiting times with dynamic response detection
  • Added intelligent completion detection that recognizes when ChatGPT has finished typing
  • Implemented text stability detection (waits until text stops changing)
  • Added response extraction logic to isolate just the relevant response text
  • Improved error handling with detailed error messages
  • Added post-processing to clean up UI elements from responses
  • Implemented incomplete response detection to warn about potential cutoffs

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