Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

MCP server for Claude to talk to ChatGPT and use its web search capability.

README.md

![MseeP.ai Security Assessment Badge](https://mseep.ai/app/billster45-mcp-chatgpt-responses)

MCP ChatGPT Server

![smithery badge](https://smithery.ai/server/@billster45/mcp-chatgpt-responses)

This MCP server allows you to access OpenAI's ChatGPT API directly from Claude Desktop.

📝 Read about why I built this project: I Built an AI That Talks to Other AIs: Demystifying the MCP Hype

Features

  • Call the ChatGPT API with customisable parameters
  • Aks Claude and ChatGPT to talk to each other in a long running discussion!
  • Configure model versions, temperature, and other parameters
  • Use web search to get up-to-date information from the internet
  • Uses OpenAI's Responses API for automatic conversation state management
  • Use your own OpenAI API key

Setup Instructions

Installing via Smithery

To install ChatGPT Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @billster45/mcp-chatgpt-responses --client claude

Prerequisites

Installation

  1. Clone this repository:
   git clone https://github.com/billster45/mcp-chatgpt-responses.git
   cd mcp-chatgpt-responses
  1. Set up a virtual environment and install dependencies using uv:
   uv venv
   .venv\\Scripts\\activate
   uv pip install -r requirements.txt

Using with Claude Desktop

  1. Configure Claude Desktop to use this MCP server by following the instructions at:

MCP Quickstart Guide

  1. Add the following configuration to your Claude Desktop config file (adjust paths 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"
         }
       }
     }
   }
  1. Restart Claude Desktop.
  1. You can now use the ChatGPT API through Claude by asking questions that mention ChatGPT or that Claude might not be able to answer.

Available Tools

The MCP server provides the following tools:

  1. ask_chatgpt(prompt, model, temperature, max_output_tokens, response_id) - Send a prompt to ChatGPT and get a response
  1. ask_chatgpt_with_web_search(prompt, model, temperature, max_output_tokens, response_id) - Send a prompt to ChatGPT with web search enabled to get up-to-date information

Example Usage

Basic ChatGPT usage:

Tell Claude to ask ChatGPT a question! `` Use the ask_chatgpt tool to answer: What is the best way to learn Python? ``

Tell Claude to have a conversation with ChatGPT: `` Use the ask_chatgpt tool to have a two way conversation between you and ChatGPT about the topic that is most important to you. `` Note how in a turn taking conversation the response id allows ChatGPT to store the history of the conversation so its a genuine conversation and not just as series of API calls. This is called conversation state.

With web search:

For questions that may benefit from up-to-date information: `` Use the ask_chatgpt_with_web_search tool to answer: What are the latest developments in quantum computing? ``

Now try web search in agentic way to plan your perfect day out based on the weather! `` Use the ask_chatgpt_with_web_search tool to find the weather tomorrow in New York, then based on that weather and what it returns, keep using the tool to build up a great day out for someone who loves food and parks ``

How It Works

This tool utilizes OpenAI's Responses API, which automatically maintains conversation state on OpenAI's servers. This approach:

  1. Simplifies code by letting OpenAI handle the conversation history
  2. Provides more reliable context tracking
  3. Improves the user experience by maintaining context across messages
  4. Allows access to the latest information from the web with the web search tool

License

MIT License

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Search servers.