openai-mcp
openai-mcp
Nutzen Sie Ihr ChatGPT Plus- oder Pro-Abonnement innerhalb von Claude Code, Codex und jedem beliebigen MCP-Client.
Funktionsweise
openai-mcp stellt 15 MCP-Tools bereit, die Anfragen direkt an die Backend-API von ChatGPT weiterleiten. Kein Proxy-Prozess. Kein separates Konto. Ihr Token, Ihr Kontingent.
Funktioniert mit Claude Code, Codex CLI und jedem Client, der das MCP-Protokoll über stdio unterstützt.
Related MCP server: claude-max-mcp
Installation
pip install openai-mcpOder mit pipx für eine isolierte Installation:
pipx install openai-mcpEinrichtung
openai-mcp setupDer Einrichtungsassistent führt folgende Schritte aus:
Sucht nach einem vorhandenen Codex-Authentifizierungs-Token unter
~/.codex/auth.jsonFalls nicht gefunden, werden Sie aufgefordert, ein ChatGPT-Sitzungs-Token einzufügen
Speichert die Anmeldedaten unter
~/.openai-mcp/token.json
Konfiguration in Claude Code
Fügen Sie Folgendes zu ~/.claude.json hinzu (unter mcpServers):
{
"mcpServers": {
"openai": {
"type": "stdio",
"command": "openai-mcp",
"args": ["run", "--stdio"]
}
}
}Starten Sie Claude Code nach dem Speichern neu. Die Tools erscheinen unter dem Namespace openai.
Tools
Tool | Funktion |
| Chatten mit GPT-5.x, Pro-Modellen, o3, o3-pro |
| Web-gestützte Suchantwort (~30 s) |
| Ausführliche Deep Research via gpt-5-5-pro (5–30 Min., verbraucht monatliches Kontingent) |
| ChatGPT-Plan und aktivierte Funktionen |
| Alle für Ihr Konto verfügbaren Modelle |
| ChatGPT-Gedächtnis auflisten (PII geschwärzt) |
| ChatGPT-Gedächtnis nach Stichwort durchsuchen |
| Ihre benutzerdefinierten ChatGPT-Anweisungen abrufen |
| Codex-Umgebungen auflisten |
| Kürzliche Codex-Aufgaben auflisten |
| Ihre benutzerdefinierten GPTs auflisten |
| Kürzliche ChatGPT-Konversationen |
| Geplante ChatGPT-Aufgaben |
| Verbundene Apps und Connectoren |
Architektur
Native Python-Implementierung — kein Proxy. Der Server ruft /backend-api/conversation (SSE) direkt unter Verwendung von curl_cffi für TLS-Impersonation auf. Integrierte POW- und Turnstile-Solver behandeln die OpenAI Sentinel-Herausforderung. Siehe NOTICES für Quellenangaben.
~/.codex/auth.json (or ~/.openai-mcp/token.json)
|
openai-mcp (stdio MCP server)
|
curl_cffi → chatgpt.com /backend-api/conversation (SSE)
|
14 read tools + 1 heavy DR toolEinschränkungen
Deep Research-Kontingent: 248 Anfragen/Monat bei Pro; weniger bei Plus.
image_gen: Stub ist vorhanden, aber noch nicht mit einem funktionierenden Endpunkt verbunden.
memory_add: Nur lesend — der Schreib-Endpunkt gibt 405 zurück; das Tool ist nicht registriert.
Erfordert ein aktives ChatGPT Plus- oder Pro-Abonnement.
Entwicklung
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
pytestLizenz
MIT. Siehe NOTICES für Drittanbieter-Zuschreibungen.
Danksagungen
lanqian528/chat2api — POW- und Turnstile-Solver-Code (MIT)
basketikun/chatgpt2api — Analyse der ChatGPT-Backend-API-Muster
7836246/cursor2api — Analyse der Cursor-API-Muster
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceEnterprise-grade MCP server integrating Claude AI capabilities, enabling AI-powered conversations, file operations, and system tools via the Model Context Protocol.1Apache 2.0
- AlicenseAqualityCmaintenanceAn MCP server that enables any AI agent to call Claude using your existing Max/Pro subscription via OAuth, avoiding additional API billing.11MIT
- FlicenseBqualityDmaintenanceMCP server that proxies GPT API calls for Claude Code, supporting multiple GPT models with both standard and streaming responses.2
- AlicenseAqualityDmaintenanceMCP server that integrates OpenClaw AI assistant with Claude Code, enabling chat, task management, messaging, memory, alerts, agent spawning, and web search through configurable tools.12156MIT
Related MCP Connectors
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
MCP server for AI dialogue using various LLM models via AceDataCloud
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/robotlearning123/gpt2agent'
If you have feedback or need assistance with the MCP directory API, please join our Discord server