webgpt MCP
Optionally uses Cloudflare Tunnel to expose the MCP server endpoints for remote access, enabling ChatGPT Web connector functionality.
Controls Google Chrome to interact with ChatGPT Web Pro extension, enabling automated prompting and result retrieval.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@webgpt MCPSend a prompt to ChatGPT Pro to plan the next feature."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
codex-gptpro: call ChatGPT Pro from Codex
codex-gptpro is a local MCP server that lets Codex ask ChatGPT Web Pro for planning, review, and long-running reasoning, then receive the result back inside Codex.
It is designed for a local, Codex-led workflow. ChatGPT Web does not directly call Codex, and this MCP does not expose arbitrary shell execution, patch application, git commits, git pushes, file deletion, or a remote Codex runner.
Canonical names:
GitHub repo:
codex-gptpropackage name:
codex-gptproMCP server name:
codex_gptproChrome profile:
codex-gptpro
日本語
これは何か
codex-gptpro は、Codex から ChatGPT Web の Pro 拡張へpromptを送り、回答をCodexへ返すためのローカルMCPサーバーです。
主な用途は、Codexが実装中にChatGPT Proへ重い計画、設計レビュー、調査、長時間の推論を依頼し、その出力をローカルの .ai/pro-outputs に保存して作業に戻すことです。
アーキテクチャ
Codex
-> MCP server: codex_gptpro
-> http://127.0.0.1:8788/mcp-codex
-> run_pro_prompt
-> Google Chrome profile: codex-gptpro
-> ChatGPT Web Pro
<- Pro output saved under .ai/pro-outputs任意で /mcp もありますが、通常の主経路では使いません。CodexからChatGPT Proを呼び出すだけなら、外部公開やCloudflare Tunnelは不要です。
必要条件
Node.js 20+
pnpm
Google Chrome
Codex CLI または Codex IDE
Chromiumや専用Chromeアプリのインストールは不要です。既存のGoogle Chromeアプリに、MCP用profile codex-gptpro を作って使います。
セットアップ
git clone https://github.com/tomato-ga/codex-gptpro.git
cd codex-gptpro
pnpm install
pnpm build
pnpm run codex:configure開発起動:
pnpm dev本番寄りのローカル起動:
pnpm startデフォルトURL:
http://127.0.0.1:8788Codex設定
pnpm run codex:configure は ~/.codex/config.toml に次のMCP設定を追加します。
[mcp_servers.codex_gptpro]
url = "http://127.0.0.1:8788/mcp-codex"
startup_timeout_sec = 20
tool_timeout_sec = 1200
enabled = true
default_tools_approval_mode = "prompt"MCP_CODEX_TOKEN を設定している場合だけ、次の行も追加されます。
bearer_token_env_var = "MCP_CODEX_TOKEN"古い [mcp_servers.webgpt] がある場合は、codex:configure が新しい codex_gptpro 設定へ置き換えます。
使い方
Codexでこう依頼します。
Use codex_gptpro MCP.
Register the current repository automatically if needed.
Ask ChatGPT Pro to create an implementation plan for the current task.
Save the output and summarize the next steps.初回だけChrome profileのログインが必要な場合があります。
Use codex_gptpro MCP.
Call prepare_pro_browser with keepBrowserOpen: true.開いたChrome profile codex-gptpro でChatGPTにログインしてください。その後、run_pro_prompt が使えます。
主なtool
register_project: 現在のrepoをMCPへ登録list_projects: 登録済みrepoを一覧repo_tree: repo構造を安全に取得read_file: 許可されたtext fileを読むgrep_repo: repo内検索git_diff: bounded diffを取得pro_browser_status: Chrome/Pro連携状態を確認prepare_pro_browser: ChatGPTログイン用にChrome profileを開くrun_pro_prompt: ChatGPT Proへpromptを送り、回答を返すlist_tasks,read_task,claim_task,write_result,read_result:.aitask handoffrun_check:typecheck,lint,test,buildのallowlisted scriptだけ実行
Chrome profile
デフォルト:
MCP_PRO_CHROME_AUTOMATION_USER_DATA_DIR=~/.codex-gptpro/chrome-user-data
MCP_PRO_CHROME_PROFILE_DIRECTORY=codex-gptproこれは既存のGoogle Chromeアプリを使います。Chrome 136+では通常のChrome data directoryに対するremote debuggingが制限されるため、MCP専用のuser data dirを使います。
任意の環境変数
.env は必須ではありません。必要な場合だけ作成します。
cp .env.example .env
chmod 600 .envよく使う値:
MCP_PORT=8788
MCP_CODEX_TOKEN=<long-random-token>
MCP_PUBLIC_PIN=<short-lived-pin>
MCP_PRO_MODEL_LABEL=Pro 拡張
MCP_PRO_CHROME_PROFILE_DIRECTORY=codex-gptproセキュリティ
public repoへ入れてはいけないものは .gitignore で除外しています。
.env,.env.*projects.local.json.ai/.codex/node_modules/,dist/,coverage/local launchd plist
Chrome profile data
local memory files
MCP toolsも意図的に制限しています。
arbitrary shell executionなし
patch applicationなし
file deletionなし
git commit/pushなし
direct Codex invocationなし
検証
pnpm build
pnpm test
pnpm lint
pnpm run healthcheckmacOSで常駐化する場合:
pnpm run launchd:install
launchctl print "gui/$(id -u)/local.codex-gptpro"Related MCP server: @prompthub/mcp
English
What It Does
codex-gptpro is a local MCP server that lets Codex send prompts to ChatGPT Web Pro and receive the answer back in Codex.
The main use case is letting Codex delegate heavyweight planning, design review, research, and long-running reasoning to ChatGPT Pro while keeping implementation and verification local.
Architecture
Codex
-> MCP server: codex_gptpro
-> http://127.0.0.1:8788/mcp-codex
-> run_pro_prompt
-> Google Chrome profile: codex-gptpro
-> ChatGPT Web Pro
<- Pro output saved under .ai/pro-outputsThe optional /mcp endpoint exists for safe planner/reviewer tools, but it is not required for the primary workflow. If all you want is Codex calling ChatGPT Pro, you do not need to expose any endpoint publicly.
Requirements
Node.js 20+
pnpm
Google Chrome
Codex CLI or Codex IDE
You do not need Chromium or a separate Chrome app. The server uses your existing Google Chrome app with a dedicated Chrome profile named codex-gptpro.
Setup
git clone https://github.com/tomato-ga/codex-gptpro.git
cd codex-gptpro
pnpm install
pnpm build
pnpm run codex:configureDevelopment server:
pnpm devProduction-like local server:
pnpm startDefault URL:
http://127.0.0.1:8788Codex Config
pnpm run codex:configure writes this MCP server block to ~/.codex/config.toml.
[mcp_servers.codex_gptpro]
url = "http://127.0.0.1:8788/mcp-codex"
startup_timeout_sec = 20
tool_timeout_sec = 1200
enabled = true
default_tools_approval_mode = "prompt"If MCP_CODEX_TOKEN is set, it also adds:
bearer_token_env_var = "MCP_CODEX_TOKEN"If an old [mcp_servers.webgpt] block exists, codex:configure replaces it with the new codex_gptpro server name.
Usage
Ask Codex:
Use codex_gptpro MCP.
Register the current repository automatically if needed.
Ask ChatGPT Pro to create an implementation plan for the current task.
Save the output and summarize the next steps.On first use, the Chrome profile may need a ChatGPT login:
Use codex_gptpro MCP.
Call prepare_pro_browser with keepBrowserOpen: true.Log in to ChatGPT in the opened codex-gptpro Chrome profile. After that, use run_pro_prompt.
Main Tools
register_project: register the current repositorylist_projects: list registered repositoriesrepo_tree: inspect repository structure safelyread_file: read allowed text filesgrep_repo: search repository textgit_diff: return bounded diff outputpro_browser_status: check Chrome/Pro automation statusprepare_pro_browser: open the Chrome profile for first-run loginrun_pro_prompt: send a prompt to ChatGPT Pro and return the answerlist_tasks,read_task,claim_task,write_result,read_result:.aitask handoffrun_check: run only allowlisted package scripts:typecheck,lint,test,build
Chrome Profile
Defaults:
MCP_PRO_CHROME_AUTOMATION_USER_DATA_DIR=~/.codex-gptpro/chrome-user-data
MCP_PRO_CHROME_PROFILE_DIRECTORY=codex-gptproThis uses your existing Google Chrome app. Chrome 136+ restricts remote debugging on the default Chrome data directory, so this server uses a dedicated user data directory for MCP automation.
Optional Environment Variables
.env is optional. Create one only when needed.
cp .env.example .env
chmod 600 .envCommon values:
MCP_PORT=8788
MCP_CODEX_TOKEN=<long-random-token>
MCP_PUBLIC_PIN=<short-lived-pin>
MCP_PRO_MODEL_LABEL=Pro 拡張
MCP_PRO_CHROME_PROFILE_DIRECTORY=codex-gptproSecurity
Local and sensitive files are ignored by default:
.env,.env.*projects.local.json.ai/.codex/node_modules/,dist/,coverage/local launchd plists
Chrome profile data
local memory files
The MCP surface is intentionally limited:
no arbitrary shell execution
no patch application
no file deletion
no git commit/push
no direct Codex invocation
Verification
pnpm build
pnpm test
pnpm lint
pnpm run healthcheckFor macOS launchd:
pnpm run launchd:install
launchctl print "gui/$(id -u)/local.codex-gptpro"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.
Latest Blog Posts
- 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/tomato-ga/codex-gptpro'
If you have feedback or need assistance with the MCP directory API, please join our Discord server