hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Integrations
Provides access to OpenAI's ChatGPT API with customizable parameters, conversation state management through the Responses API, and web search capabilities for retrieving up-to-date information.
MCP ChatGPT Server
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:
Prerequisites
- Python 3.10 or higher
- Claude Desktop application
- OpenAI API key
- uv for Python package management
Installation
- Clone this repository:Copy
- Set up a virtual environment and install dependencies using uv:CopyCopyCopy
Using with Claude Desktop
- Configure Claude Desktop to use this MCP server by following the instructions at: MCP Quickstart Guide
- Add the following configuration to your Claude Desktop config file (adjust paths as needed):Copy
- Restart Claude Desktop.
- 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:
ask_chatgpt(prompt, model, temperature, max_output_tokens, response_id)
- Send a prompt to ChatGPT and get a responseask_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!
Tell Claude to have a conversation with ChatGPT:
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:
Now try web search in agentic way to plan your perfect day out based on the weather!
How It Works
This tool utilizes OpenAI's Responses API, which automatically maintains conversation state on OpenAI's servers. This approach:
- Simplifies code by letting OpenAI handle the conversation history
- Provides more reliable context tracking
- Improves the user experience by maintaining context across messages
- Allows access to the latest information from the web with the web search tool
License
MIT License
This server cannot be installed
MCP ChatGPT Responses connects Claude to ChatGPT through two essential tools: standard queries for AI-to-AI conversations and web-enabled requests for current information. It uses OpenAI's Responses API to maintain conversation state automatically.