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 - 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
Add this skill
npx mdskills install billster45/mcp-chatgpt-responsesBridges Claude and ChatGPT API with good examples but declares excessive shell permissions
1[](https://mseep.ai/app/billster45-mcp-chatgpt-responses)23# MCP ChatGPT Server4[](https://smithery.ai/server/@billster45/mcp-chatgpt-responses)56This MCP server allows you to access OpenAI's ChatGPT API directly from Claude Desktop.78š **Read about why I built this project**: [I Built an AI That Talks to Other AIs: Demystifying the MCP Hype](https://medium.com/@billcockerill/i-built-an-ai-that-talks-to-other-ais-demystifying-the-mcp-hype-88dc03520552)910## Features1112- Call the ChatGPT API with customisable parameters13- Aks Claude and ChatGPT to talk to each other in a long running discussion!14- Configure model versions, temperature, and other parameters15- Use web search to get up-to-date information from the internet16- Uses OpenAI's Responses API for automatic conversation state management17- Use your own OpenAI API key1819## Setup Instructions2021### Installing via Smithery2223To install ChatGPT Server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@billster45/mcp-chatgpt-responses):2425```bash26npx -y @smithery/cli install @billster45/mcp-chatgpt-responses --client claude27```2829### Prerequisites3031- Python 3.10 or higher32- [Claude Desktop](https://claude.ai/download) application33- [OpenAI API key](https://platform.openai.com/settings/organization/api-keys)34- [uv](https://github.com/astral-sh/uv) for Python package management3536### Installation37381. Clone this repository:39 ```bash40 git clone https://github.com/billster45/mcp-chatgpt-responses.git41 cd mcp-chatgpt-responses42 ```43442. Set up a virtual environment and install dependencies using uv:45 ```bash46 uv venv47 ```4849 ```bash50 .venv\\Scripts\\activate51 ```5253 ```bash54 uv pip install -r requirements.txt55 ```5657### Using with Claude Desktop58591. Configure Claude Desktop to use this MCP server by following the instructions at:60 [MCP Quickstart Guide](https://modelcontextprotocol.io/quickstart/user#2-add-the-filesystem-mcp-server)61622. Add the following configuration to your Claude Desktop config file (adjust paths as needed):63 ```json64 {65 "mcpServers": {66 "chatgpt": {67 "command": "uv",68 "args": [69 "--directory",70 "\\path\\to\\mcp-chatgpt-responses",71 "run",72 "chatgpt_server.py"73 ],74 "env": {75 "OPENAI_API_KEY": "your-api-key-here",76 "DEFAULT_MODEL": "gpt-4o",77 "DEFAULT_TEMPERATURE": "0.7",78 "MAX_TOKENS": "1000"79 }80 }81 }82 }83 ```84853. Restart Claude Desktop.86874. You can now use the ChatGPT API through Claude by asking questions that mention ChatGPT or that Claude might not be able to answer.8889## Available Tools9091The MCP server provides the following tools:92931. `ask_chatgpt(prompt, model, temperature, max_output_tokens, response_id)` - Send a prompt to ChatGPT and get a response94952. `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 information9697## Example Usage9899### Basic ChatGPT usage:100101Tell Claude to ask ChatGPT a question!102```103Use the ask_chatgpt tool to answer: What is the best way to learn Python?104```105106Tell Claude to have a conversation with ChatGPT:107```108Use the ask_chatgpt tool to have a two way conversation between you and ChatGPT about the topic that is most important to you.109```110Note 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](https://platform.openai.com/docs/guides/conversation-state?api-mode=responses#openai-apis-for-conversation-state).111112### With web search:113114For questions that may benefit from up-to-date information:115```116Use the ask_chatgpt_with_web_search tool to answer: What are the latest developments in quantum computing?117```118119Now try web search in agentic way to plan your perfect day out based on the weather!120```121Use 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 parks122```123124## How It Works125126This tool utilizes OpenAI's Responses API, which automatically maintains conversation state on OpenAI's servers. This approach:1271281. Simplifies code by letting OpenAI handle the conversation history1292. Provides more reliable context tracking1303. Improves the user experience by maintaining context across messages1314. Allows access to the latest information from the web with the web search tool132133## License134135MIT License136
Full transparency ā inspect the skill content before installing.