Skip to main content
Glama

ChatGPT MCP Server

ChatGPT MCP Server

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

https://github.com/user-attachments/assets/a30c9b34-cdbe-4c0e-a0b0-33eb5054db5c

Language Support

Supported system languages for response detection:

  • Korean
  • English

If your macOS system language is not listed above, please follow these instructions:

  1. Make sure ChatGPT desktop app is running
  2. Run show_all_button_names.applescript and copy the output to create an issue for language support.

Features

  • Send prompts to ChatGPT from any MCP-compatible AI assistant
  • 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 uvx chatgpt-mcp

That's it! You can start using ChatGPT commands in Claude Code.

For Other MCP Clients

Step 1: Install the MCP Server

# Install with uv uv add chatgpt-mcp
Option B: Manual Installation
# Clone the repository git clone https://github.com/xncbf/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": { "command": "uvx", "args": ["chatgpt-mcp"] } } }

If manually installed, add to your MCP client configuration:

{ "mcpServers": { "chatgpt": { "command": "uv", "args": ["run", "chatgpt-mcp"], "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:
    • "Send a message to ChatGPT"

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

Available Tools

ask_chatgpt

Send a prompt to ChatGPT and receive the response.

ask_chatgpt(prompt="Hello, ChatGPT!")

get_chatgpt_response

Get the latest response from ChatGPT after sending a message.

get_chatgpt_response()

new_chatgpt_chat

Start a new chat conversation in ChatGPT.

new_chatgpt_chat()

Development

Local Testing

To test the MCP server locally during development:

  1. Install in editable mode
    uv pip install -e .
  2. Test with MCP Inspector
    npx @modelcontextprotocol/inspector chatgpt-mcp

The editable installation creates a chatgpt-mcp command that directly references your source code, so any changes you make are immediately reflected without reinstalling.

Running without installation

You can also run the server directly:

PYTHONPATH=. uv run python -m chatgpt_mcp.chatgpt_mcp

License

MIT

Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

A Model Context Protocol server that allows AI assistants to communicate with the ChatGPT desktop app on macOS, enabling users to send prompts to ChatGPT from any MCP-compatible assistant.

  1. Language Support
    1. Features
      1. Installation
        1. Prerequisites
      2. For Claude Code Users
        1. For Other MCP Clients
          1. Step 1: Install the MCP Server
          2. Step 2: Configure Your MCP Client
        2. Usage
          1. Available Tools
            1. ask_chatgpt
            2. get_chatgpt_response
            3. new_chatgpt_chat
          2. Development
            1. Local Testing
            2. Running without installation
          3. License

            Related MCP Servers

            • A
              security
              A
              license
              A
              quality
              A Model Context Protocol server that allows AI assistants to interact with the VRChat API, enabling retrieval of user information, friends lists, and other VRChat data through a standardized interface.
              Last updated -
              7
              6
              40
              TypeScript
              MIT License
              • Apple
            • -
              security
              F
              license
              -
              quality
              A comprehensive Model Context Protocol server implementation that enables AI assistants to interact with file systems, databases, GitHub repositories, web resources, and system tools while maintaining security and control.
              Last updated -
              6
              1
              TypeScript
            • -
              security
              F
              license
              -
              quality
              A basic Model Context Protocol server implementation that demonstrates core functionality including tools and resources for AI chat applications.
              Last updated -
              Python
            • A
              security
              A
              license
              A
              quality
              A modern Model Context Protocol (MCP) server that enables AI assistants to collect interactive user feedback, supporting text and image-based responses.
              Last updated -
              3
              Python
              MIT License

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/xncbf/chatgpt-mcp'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server