Skip to main content
Glama

ChatGPT MCP Server

by xncbf
MIT License
15
  • Apple

ChatGPT MCP Server

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

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()

License

MIT

-
security - not tested
A
license - permissive license
-
quality - not tested

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

          Related MCP Servers

          • A
            security
            A
            license
            A
            quality
            A Model Context Protocol server that allows AI assistants to interact with Appwrite's API, providing tools to manage databases, users, functions, teams, and other resources within Appwrite projects.
            Last updated -
            84
            40
            Python
            MIT License
            • Linux
            • Apple
          • 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
            132
            33
            TypeScript
            MIT License
            • Apple
          • A
            security
            A
            license
            A
            quality
            A server that enables AI assistants to execute terminal commands and retrieve outputs via the Model Context Protocol (MCP).
            Last updated -
            3
            6
            Python
            MIT License
            • Apple
            • Linux
          • -
            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 -
            16
            TypeScript

          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