Skip to main content
Glama

openai-mcp

ChatGPT PlusまたはProのサブスクリプションをClaude Code、Codex、およびその他のMCPクライアント内で利用できます。

PyPI version License: MIT Python 3.10+


機能

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

ウィザードは以下の処理を行います:

  1. ~/.codex/auth.json に既存のCodex認証トークンがあるか確認します

  2. 見つからない場合は、ChatGPTセッショントークンの貼り付けを求めます

  3. 認証情報を ~/.openai-mcp/token.json に保存します


Claude Codeでの設定

~/.claude.jsonmcpServers内)に以下を追加します:

{
  "mcpServers": {
    "openai": {
      "type": "stdio",
      "command": "openai-mcp",
      "args": ["run", "--stdio"]
    }
  }
}

保存後、Claude Codeを再起動してください。ツールは openai 名前空間の下に表示されます。


ツール

ツール

機能

chat

GPT-5.x、Proモデル、o3、o3-proとのチャット

deep_research

Web拡張検索回答(約30秒)

deep_research_heavy

gpt-5-5-proによる長文ディープリサーチ(5〜30分、月間クォータを消費)

account_status

ChatGPTのプランおよび有効な機能の確認

list_models

アカウントで利用可能な全モデルのリスト

memory_list

ChatGPTのメモリ一覧(PIIは編集済み)

memory_search

キーワードによるChatGPTメモリの検索

custom_instructions_get

ChatGPTのカスタム指示を取得

list_codex_envs

Codex環境のリスト

list_codex_tasks

最近のCodexタスクのリスト

list_custom_gpts

カスタムGPTのリスト

list_conversations

最近のChatGPT会話のリスト

list_tasks

スケジュールされたChatGPTタスクのリスト

list_apps

接続されたアプリとコネクタのリスト


アーキテクチャ

ネイティブ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 を参照してください。


謝辞

A
license - permissive license
Not graded
quality - not tested
A
maintenance

Maintenance

Maintainers
Response time
6dRelease cycle
7Releases (12mo)
Commit activity

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

View all related MCP servers

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

View all MCP Connectors

Latest Blog Posts

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