Skip to main content

Enhanced MCP server for ChatGPT with dynamic button detection and improved response handling

Project description

ChatGPT MCP Plus

An enhanced Model Context Protocol (MCP) server that enables AI assistants to interact with the ChatGPT desktop app on macOS.

Based on the original chatgpt-mcp by @xncbf

What's New in Plus Version

  • Dynamic Button Detection: Reliable UI interaction without hardcoded positions
  • Enhanced Response Handling: Waits for complete responses using button state monitoring
  • New Chat Tool: Start fresh conversations with a single command
  • Improved Reliability: Better error handling and state detection

Features

  • Send prompts to ChatGPT and receive complete responses
  • Start new chat conversations to clear context
  • Automatic response detection using button state monitoring
  • 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-plus uvx chatgpt-mcp-plus

That'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-mcp-plus

Option B: Manual Installation

# Clone the repository
git clone https://github.com/yowmamasita/chatgpt-mcp
cd chatgpt-mcp

# Install dependencies with uv
uv sync

Step 2: Configure Your MCP Client

If installed from PyPI, add to your MCP client configuration:

{
  "mcpServers": {
    "chatgpt-plus": {
      "command": "uvx",
      "args": ["chatgpt-mcp-plus"]
    }
  }
}

If manually installed, add to your MCP client configuration:

{
  "mcpServers": {
    "chatgpt-plus": {
      "command": "uv",
      "args": ["run", "chatgpt-mcp-plus"],
      "cwd": "/path/to/chatgpt-mcp"
    }
  }
}

Usage

  1. Open ChatGPT desktop app and make sure it's running
  2. Open your MCP client (Claude Code, etc.)
  3. Use ChatGPT commands in your AI assistant:

Available Tools

  • ask_chatgpt: Send a prompt to ChatGPT and get the complete response

    Example: "Ask ChatGPT to explain quantum computing"
    
  • new_chat: Start a fresh conversation in ChatGPT

    Example: "Start a new chat in ChatGPT"
    

The AI assistant will automatically use the appropriate MCP tools to interact with ChatGPT.

Tool Details

ask_chatgpt

Send a prompt to ChatGPT and wait for the complete response.

Parameters:

  • prompt (string): The text to send to ChatGPT

Returns: ChatGPT's complete response text

Example:

response = await ask_chatgpt("What is the capital of France?")
# Returns: "The capital of France is Paris..."

new_chat

Start a new conversation in ChatGPT, clearing any previous context.

Parameters: None

Returns: Success message

Example:

result = await new_chat()
# Returns: "Successfully started a new chat conversation"

Acknowledgments

This project is based on the original chatgpt-mcp by @xncbf. The Plus version adds enhanced features including dynamic button detection, improved response handling, and new chat functionality.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chatgpt_mcp_plus-1.0.0.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chatgpt_mcp_plus-1.0.0-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file chatgpt_mcp_plus-1.0.0.tar.gz.

File metadata

  • Download URL: chatgpt_mcp_plus-1.0.0.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.3

File hashes

Hashes for chatgpt_mcp_plus-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5305ade91af93a40697f23875afe856386357eac6dc0f6cf6cb4cae173bc5ba7
MD5 71e90ac75ba5801213e0fa1187cdc9dd
BLAKE2b-256 67198b545468c2dfcdb06e266a59d78b22d7fa477f29b2140a3baef16c92016e

See more details on using hashes here.

File details

Details for the file chatgpt_mcp_plus-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for chatgpt_mcp_plus-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7e3fcd00c6fe1bcb5330ca083e6784516c1687fa7d9eacfd91d21a626f81bff2
MD5 e6f51524a596c788fc7209b4a5d2ca24
BLAKE2b-256 7bdf93f75df54c000cab84ad193e5e681f0e265d9dbdcd494835a6b7e4bbae4e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page