openai-mcp
openai-mcp
ChatGPT PlusまたはProのサブスクリプションをClaude Code、Codex、およびその他のMCPクライアント内で利用できます。
機能
openai-mcpは、ChatGPTのバックエンドAPIに直接リクエストを転送する15個のMCPツールを提供します。 プロキシプロセスや別のアカウントは不要です。あなたのトークンとクォータをそのまま使用します。
Claude Code、Codex CLI、およびstdio経由でMCPプロトコルをサポートするあらゆるクライアントで動作します。
Related MCP server: claude-max-mcp
インストール
pip install openai-mcpまたは、分離された環境にインストールする場合はpipxを使用します:
pipx install openai-mcpセットアップ
openai-mcp setupウィザードは以下の処理を行います:
~/.codex/auth.jsonに既存のCodex認証トークンがあるか確認します見つからない場合は、ChatGPTセッショントークンの貼り付けを求めます
認証情報を
~/.openai-mcp/token.jsonに保存します
Claude Codeでの設定
~/.claude.json (mcpServers内)に以下を追加します:
{
"mcpServers": {
"openai": {
"type": "stdio",
"command": "openai-mcp",
"args": ["run", "--stdio"]
}
}
}保存後、Claude Codeを再起動してください。ツールは openai 名前空間の下に表示されます。
ツール
ツール | 機能 |
| GPT-5.x、Proモデル、o3、o3-proとのチャット |
| Web拡張検索回答(約30秒) |
| gpt-5-5-proによる長文ディープリサーチ(5〜30分、月間クォータを消費) |
| ChatGPTのプランおよび有効な機能の確認 |
| アカウントで利用可能な全モデルのリスト |
| ChatGPTのメモリ一覧(PIIは編集済み) |
| キーワードによるChatGPTメモリの検索 |
| ChatGPTのカスタム指示を取得 |
| Codex環境のリスト |
| 最近のCodexタスクのリスト |
| カスタムGPTのリスト |
| 最近のChatGPT会話のリスト |
| スケジュールされたChatGPTタスクのリスト |
| 接続されたアプリとコネクタのリスト |
アーキテクチャ
ネイティブPython実装であり、プロキシは使用しません。サーバーはTLSなりすましのための curl_cffi を使用して、/backend-api/conversation (SSE) を直接呼び出します。OpenAI Sentinelの課題は、同梱されたPOWおよびTurnstileソルバーによって処理されます。帰属表示については NOTICES を参照してください。
~/.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 tool制限事項
ディープリサーチのクォータ: Proでは月間248リクエスト、Plusではそれ以下となります。
image_gen: スタブは存在しますが、動作するエンドポイントにはまだ接続されていません。
memory_add: 読み取り専用です。書き込みエンドポイントは405を返すため、ツールは登録されていません。
有効なChatGPT PlusまたはProサブスクリプションが必要です。
開発
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
pytestライセンス
MIT。サードパーティの帰属表示については NOTICES を参照してください。
謝辞
lanqian528/chat2api — POWおよびTurnstileソルバーコード (MIT)
basketikun/chatgpt2api — ChatGPTバックエンドAPIパターンの調査
7836246/cursor2api — Cursor APIパターンの調査
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