MCP ChatGPT Server
MCP server for access to OpenAI's ChatGPT API with Responses API for conversation management
Overview
MCP ChatGPT Server is a server that allows users to access OpenAI's ChatGPT API directly from the Claude Desktop application, enabling conversation management and interaction between Claude and ChatGPT.
To use the MCP ChatGPT Server, clone the repository, set up a virtual environment, install dependencies, and configure Claude Desktop to connect to the server using your OpenAI API key.
- Customizable parameters for ChatGPT API calls - Long-running discussions between Claude and ChatGPT - Configuration options for model versions and temperature - Web search integration for up-to-date information - Automatic conversation state management using OpenAI's Responses API
- Engaging in interactive conversations with ChatGPT through Claude.
- Utilizing web search to enhance responses with current information.
- Managing conversation history seamlessly for a more natural dialogue experience.
Add to your AI client
Use these steps to connect MCP ChatGPT Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-chatgpt-responses-billster45": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-chatgpt-responses-billster45"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-chatgpt-responses-billster45": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-chatgpt-responses-billster45"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-chatgpt-responses-billster45": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-chatgpt-responses-billster45"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-chatgpt-responses-billster45": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-chatgpt-responses-billster45"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-chatgpt-responses-billster45": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-chatgpt-responses-billster45"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-chatgpt-responses-billster45": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-chatgpt-responses-billster45"
]
}
}
}FAQ
Can I use my own OpenAI API key?
Yes! You can use your own OpenAI API key to access the ChatGPT API.
What are the prerequisites for using this server?
You need Python 3.10 or higher, Claude Desktop application, and the OpenAI API key.
How does the conversation state management work?
The server uses OpenAI's Responses API to automatically maintain the conversation state, simplifying the coding process and improving user experience.