Codex MCP Server
Provides web search capabilities using DuckDuckGo as a provider for quick and detailed searches.
Provides web search capabilities using Google as a provider for quick and detailed searches.
Integrates with OpenAI Codex CLI to provide AI-powered coding tools including code generation, analysis, and fixing.
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., "@Codex MCP Serverwrite a function to calculate the nth Fibonacci number in Python"
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 MCP Server
OpenAI Codex CLI と Claude Code をModel Context Protocol (MCP) で統合
インストール • 使用方法 • 利用可能なツール • 設定 • トラブルシューティング
概要
Codex MCP Server は OpenAI Codex CLI と Claude Code をシームレスに統合し、Model Context Protocol (MCP) を通じてClaude Code内でCodexの強力なAIコーディング機能を直接使用できるようにします。
✨ 機能
🚀 グローバルインストール - 一度インストールすれば、Claude Code のどこからでも使用可能
🛠️ 6つの強力なツール - 実行、分析、修正、汎用操作、Web検索対応
🔒 セキュア - タイムアウト制御付きサンドボックス実行
⚡ 高速 - 効率的なTypeScript実装
🎯 簡単セットアップ - ワンコマンドでインストールと設定
📝 TypeScript - 完全な型安全性と優れた開発体験
🎯 利用可能なツール
ツール | 説明 | 使用例 |
codex.exec | プロンプトでCodexコマンドを実行 | コード生成、アルゴリズム説明、関数作成 |
codex.analyze | コードの問題を分析 | セキュリティ監査、パフォーマンス確認、コード品質 |
codex.fix | AIアシスタンスでコードの問題を修正 | バグ修正、最適化提案、リファクタリング |
codex.general | 汎用Codex CLI操作 | カスタムコマンド、高度なワークフロー |
codex.search | 高速Web検索(構造化結果) | API仕様確認、エラー意味調査、技術情報検索 |
codex.search_detailed | 詳細Web検索(フルコンテンツ) | チュートリアル取得、実装例分析、深い技術解説 |
Related MCP server: gpt5mcp
必要な環境
Node.js 18+ - MCPサーバーの実行に必要
OpenAI Codex CLI - 基盤となるAIコーディングツール
Claude Code - MCPサーバーを使用するクライアント
OpenAI API キー - またはChatGPT Plus/Pro/Team/Enterprise サブスクリプション
インストール
🚀 クイックインストール(推奨)
# オプション1: ワンコマンドインストール(近日公開)
npx create-codex-mcp --global
# オプション2: ソースから手動インストール
git clone https://github.com/goalseeklabs/codex-mcp-server.git
cd codex-mcp-server
./setup/install.sh📦 手動インストール
Codex CLI のインストール(未インストールの場合):
# npmを使用
npm install -g @openai/codex
# またはHomebrew(macOS)
brew install codexCodex MCP Server のインストール:
npm install -g codex-mcp-serverClaude Code の設定:
codex-mcp-setupClaude Code を再起動すると、ツールが使用可能になります!
使用方法
基本的な使用例
1. コード生成
codex.exec ツールを使用してフィボナッチ数を計算するPython関数を作成してください2. コード分析
codex.analyze ツールを使用して、このJavaScriptファイルのセキュリティ脆弱性をチェックしてください: /path/to/file.js3. 問題修正
codex.fix ツールを使用して、この関数のパフォーマンス問題を修正してください: [コードを貼り付け]4. カスタムコマンド
codex.general ツールを使用してカスタムCodex操作を実行: このコードベースのアーキテクチャを説明してください5. Web検索(高速)
codex.search ツールを使用して、React useEffectフックの最新ベストプラクティスを調べてください6. Web検索(詳細)
codex.search_detailed ツールを使用して、TypeScript genericsの詳しいチュートリアルと実装例を取得してくださいツールパラメータ
codex.exec
{
"prompt": "ユーザー認証用のREST APIエンドポイントを作成",
"args": ["--language", "typescript"],
"workingDirectory": "/path/to/project",
"timeout": 30000
}codex.analyze
{
"filePath": "/path/to/file.js",
"analysisType": "security",
"workingDirectory": "/path/to/project"
}codex.fix
{
"filePath": "/path/to/buggy-file.py",
"issueDescription": "この関数のメモリリークを修正",
"workingDirectory": "/path/to/project",
"dryRun": true
}codex.general
{
"command": "explain",
"args": ["--detailed", "architecture"],
"workingDirectory": "/path/to/project",
"timeout": 60000
}codex.search
{
"query": "React hooks useEffect best practices 2024",
"provider": "bing",
"workingDirectory": "/path/to/project",
"timeout": 30000
}codex.search_detailed
{
"query": "TypeScript advanced generics tutorial examples",
"provider": "bing",
"maxPages": 3,
"workingDirectory": "/path/to/project",
"timeout": 60000
}設定
グローバル設定
MCPサーバーは以下のファイルを通じてClaude Codeでグローバルに設定されます:
~/.config/claude-code/mcp_settings.json環境変数
# OpenAI APIキー(ChatGPTサブスクリプションを使用しない場合)
export OPENAI_API_KEY="your-api-key-here"
# オプション: カスタムタイムアウト(ミリ秒)
export CODEX_MCP_TIMEOUT="30000"高度な設定
グローバル設定を変更してサーバーの動作をカスタマイズできます:
{
"mcpServers": {
"codex": {
"command": "codex-mcp",
"args": [],
"env": {
"CODEX_MCP_TIMEOUT": "45000"
}
}
}
}開発
ソースからのビルド
git clone https://github.com/goalseeklabs/codex-mcp-server.git
cd codex-mcp-server
# 依存関係のインストール
npm install
# TypeScriptのビルド
npm run build
# テストの実行
npm test
# テスト用にグローバルインストール
npm install -g .テスト
# バリデーションテストの実行
npm run test
# 手動バリデーション
node tests/validation.js
# サーバー起動テスト
node tests/startup-test.jsプロジェクト構造
codex-mcp-server/
├── src/
│ ├── index.ts # メインMCPサーバー
│ ├── codex.ts # Codex CLI統合
│ └── schemas.ts # 型定義とバリデーション
├── bin/
│ ├── codex-mcp.js # CLIエントリーポイント
│ └── setup.js # セットアップコマンド
├── config/
│ └── claude-code-mcp.json # Claude Code設定テンプレート
├── setup/
│ └── install.sh # インストールスクリプト
├── tests/
│ ├── validation.js # バリデーションテスト
│ └── startup-test.js # 起動テスト
└── docs/
└── usage-guide.md # 詳細使用ガイドトラブルシューティング
よくある問題
❌ "Codex CLI is not available"
# Codex CLIのインストール
npm install -g @openai/codex
# または
brew install codex
# インストール確認
codex --version❌ "Command not found: codex-mcp"
# グローバルインストール確認
npm list -g codex-mcp-server
# 必要に応じて再インストール
npm install -g codex-mcp-server
# PATH確認
echo $PATH❌ "MCP server not responding"
# Claude Codeの再起動
# サーバーログの確認
codex-mcp --version
# セットアップ再実行
codex-mcp-setup❌ "Permission denied"
# macOS/Linuxでの権限修正
sudo chown -R $(whoami) ~/.config/claude-code
chmod 755 ~/.config/claude-codeデバッグモード
デバッグログの有効化:
DEBUG=codex-mcp:* codex-mcpサポート
🐛 バグレポート: GitHub Issues
💬 ディスカッション: GitHub Discussions
📧 メール: support@goalseeklabs.com
貢献
貢献を歓迎します!詳細についてはContributing Guideをご覧ください。
貢献者向けクイックスタート
リポジトリをフォーク
機能ブランチ作成:
git checkout -b feature/amazing-feature変更を加える
テスト実行:
npm testコミット:
git commit -m 'Add amazing feature'プッシュ:
git push origin feature/amazing-featureプルリクエストを開く
ライセンス
このプロジェクトはApache License 2.0の下でライセンスされています - 詳細はLICENSEファイルをご覧ください。
⚠️ 免責事項・重要な注意事項
使用前に必ず 免責事項・重要な注意事項 をお読みください。
更新履歴
v0.2.0 (2025-08-30)
🔍 Web検索機能追加 - Codex CLIのweb search機能を統合
✅ 高速検索ツール(codex.search)追加 - 構造化結果で素早い情報収集
✅ 詳細検索ツール(codex.search_detailed)追加 - フルページ内容で深い分析
✅ マルチプロバイダー対応(Bing、Google、DuckDuckGo)
✅ 検索プロバイダー自動選択とカスタム設定対応
⚡ 詳細検索デフォルトページ数最適化(3ページで最大情報取得)
🛠️ 6つの強力なツールでより包括的なコーディング支援
v0.1.0 (2025-08-30)
🎉 初回リリース
✅ Claude Code とのフルMCP統合
✅ 4つのコアツール(exec、analyze、fix、general)
✅ グローバルインストール対応
✅ 自動セットアップと設定
✅ TypeScript実装
✅ 包括的テスト
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.
Appeared in Searches
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/GoalSeekLabo/codex-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server