SuperAPIAI Directory

mcp-chatgpt-responses

github.com · AI developer platforms

Talk to ChatGPT and use its web search capability.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

Purpose

mcp-chatgpt-responses is an MCP (Model Context Protocol) server designed to let Claude Desktop users directly access OpenAI's ChatGPT API. Through this server, users can ask ChatGPT questions within the Claude interface, and even let Claude and ChatGPT engage in long multi-turn conversations.

Main Capabilities

  • Call the ChatGPT API, with support for custom parameters (such as model version, temperature, maximum output tokens, etc.).
  • Let Claude and ChatGPT talk to each other for ongoing discussions.
  • Use web search functionality to get the latest information from the internet.
  • Use OpenAI's Responses API to automatically manage conversation state, enabling true multi-turn conversations rather than a simple sequence of API calls.
  • Use the user's own OpenAI API key.

How to Use

Requirements

  • Python 3.10 or higher
  • Claude Desktop application
  • uv (for Python package management)

Installation Steps

  1. Clone the repository:
    git clone https://github.com/billster45/mcp-chatgpt-responses.git
    cd mcp-chatgpt-responses
    
  2. Use uv to create a virtual environment and install dependencies:
    uv venv .venv
    .venv\Scripts\activate
    uv pip install -r requirements.txt
    

Configure Claude Desktop

Add the following configuration to Claude Desktop's configuration file (adjust the path as needed):

{
  "mcpServers": {
    "chatgpt": {
      "command": "uv",
      "args": [
        "--directory",
        "\\path\\to\\mcp-chatgpt-responses",
        "run",
        "chatgpt_server.py"
      ],
      "env": {
        "OPENAI_API_KEY": "your-api-key-here",
        "DEFAULT_MODEL": "gpt-4o",
        "DEFAULT_TEMPERATURE": "0.7",
        "MAX_TOKENS": "1000"
      }
    }
  }
}

Restart Claude Desktop and it is ready to use.

Available Tools

  • ask_chatgpt(prompt, model, temperature, max_output_tokens, response_id): Send a prompt to ChatGPT and get a reply.
  • ask_chatgpt_with_web_search(prompt, model, temperature, max_output_tokens, response_id): Send a prompt to ChatGPT and enable web search to get the latest information.

Usage Examples

  • Let Claude ask ChatGPT questions.
  • Let Claude converse with ChatGPT: in multi-turn conversations, response_id allows ChatGPT to store the conversation history, enabling true conversation state management.
  • Use web search: for questions that require the latest information, web search can be enabled, and you can even plan the perfect day in an agentic way.

Applicable Scenarios

  • Users who need to leverage ChatGPT's capabilities within Claude.
  • Scenarios where you want two AI models to talk to each other, brainstorm, or debate.
  • Tasks that require real-time web information to answer questions.

Limitations

  • Users must provide their own OpenAI API key and bear the corresponding costs.
  • It depends on Claude Desktop and a Python environment, so configuration has a certain barrier to entry.
  • For specific feature details and limitations, please refer to the project repository.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools