MCP ChatGPT Server
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.
billster45
README
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:
npx -y @smithery/cli install @billster45/mcp-chatgpt-responses --client claude
Prerequisites
- Python 3.10 or higher
- Claude Desktop application
- OpenAI API key
- uv for Python package management
Installation
-
Clone this repository:
git clone https://github.com/billster45/mcp-chatgpt-responses.git cd mcp-chatgpt-responses
-
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
-
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):
{ "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.
-
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 response -
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:
- 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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
MCP Package Docs Server
Facilitates LLMs to efficiently access and fetch structured documentation for packages in Go, Python, and NPM, enhancing software development with multi-language support and performance optimization.
Claude Code MCP
An implementation of Claude Code as a Model Context Protocol server that enables using Claude's software engineering capabilities (code generation, editing, reviewing, and file operations) through the standardized MCP interface.
@kazuph/mcp-taskmanager
Model Context Protocol server for Task Management. This allows Claude Desktop (or any MCP client) to manage and execute tasks in a queue-based system.
Linear MCP Server
Enables interaction with Linear's API for managing issues, teams, and projects programmatically through the Model Context Protocol.
mermaid-mcp-server
A Model Context Protocol (MCP) server that converts Mermaid diagrams to PNG images.
Jira-Context-MCP
MCP server to provide Jira Tickets information to AI coding agents like Cursor

Linear MCP Server
A Model Context Protocol server that integrates with Linear's issue tracking system, allowing LLMs to create, update, search, and comment on Linear issues through natural language interactions.

Sequential Thinking MCP Server
This server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.