Basic information
About Codex Mcp Server
MCP server bridging AI assistants to OpenAI Codex CLI for code analysis and review
Codex Mcp Server is a MCP server in the Developer Tools category listed in the AddMCP.net directory, published by x51xxx. It exposes 13 tools, including ask-codex, batch-codex, review-changes, ping and more. Supported transport: stdio. Runtime: node. License: MIT. The repository has 23 GitHub stars. Source code is hosted on github.com. Related topics: claude, code-analysis, code-review, codex, codex-cli.
Setup
{
"mcpServers": {
"codex-cli": {
"command": "npx",
"args": [
"-y",
"@trishchuk/codex-mcp-tool"
]
}
}
}
{
"mcpServers": {
"codex-cli": {
"command": "npx",
"args": [
"-y",
"@trishchuk/codex-mcp-tool"
]
}
}
}
{
"servers": {
"codex-cli": {
"command": "npx",
"args": [
"-y",
"@trishchuk/codex-mcp-tool"
]
}
}
}
Codex Mcp Server — by x51xxx config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"codex-cli": {
"command": "npx",
"args": [
"-y",
"@trishchuk/codex-mcp-tool"
]
}
}
}
Codex Mcp Server — by x51xxx tools
-
ask-codex
— Execute Codex CLI with file analysis (@syntax), skills ($syntax), model selection, and safety controls. Supports changeMode.
prompt:string*, model:string, sandbox:boolean, fullAuto:boolean, approvalPolicy:string, approval:string, sandboxMode:string, yolo:boolean, cd:string, workingDir:string, changeMode:boolean, chunkIndex:number, … -
batch-codex
— Delegate multiple atomic tasks to Codex for batch processing. Ideal for repetitive operations, mass refactoring, and automated code transformations
tasks:array*, model:string, sandbox:string, parallel:boolean, concurrency:integer, stopOnError:boolean, timeout:number, workingDir:string, search:boolean, oss:boolean, enableFeatures:array, disableFeatures:array, … -
review-changes
— Run a code review against the current repository using Codex CLI native review subcommand
prompt:string, uncommitted:boolean, base:string, commit:string, title:string, model:string, reasoningEffort:string, workingDir:string, timeout:number -
ping
— Echo
prompt:string -
help
— receive help information
(no parameters) -
version
— Display version and system information
(no parameters) -
brainstorm
— Generate creative ideas using structured frameworks with domain context and feasibility analysis.
prompt:string*, model:string, approvalPolicy:string, sandboxMode:string, fullAuto:boolean, yolo:boolean, cd:string, methodology:string, domain:string, constraints:string, existingContext:string, ideaCount:integer, … -
fetch-chunk
— Retrieves cached chunks from a changeMode response. Use this to get subsequent chunks after receiving a partial changeMode response.
cacheKey:string*, chunkIndex:number* -
timeout-test
— Test timeout prevention by running for a specified duration
duration:number* -
list-sessions
— List all active conversation sessions with metadata, or manage sessions
action:string, sessionId:string -
health
— Check Codex CLI and session health status
sessionId:string, verbose:boolean -
list-skills
— Discover available Codex skills from .agents/skills/ directory
workingDir:string -
do-act
— Execute task via Codex, verify with shell command, auto-fix on failure. Act-Check-Fix loop.
task:string*, verify:object, maxRetries:integer, model:string, fullAuto:boolean, sandboxMode:string, workingDir:string, timeout:number, reasoningEffort:string, oss:boolean, localProvider:string
Overview
What is Codex Mcp Server?
An MCP server that connects Claude or Cursor to Codex CLI, enabling code analysis via @ file references, multi-turn conversations, sandboxed edits, and structured change mode. It is for developers who want to leverage Codex CLI’s capabilities through an MCP-compatible client.
How to use Codex Mcp Server?
Install and add via claude mcp add codex-cli -- npx -y @trishchuk/codex-mcp-tool or configure in claude_desktop_config.json. Prerequisites: Node.js 18+ and a working Codex CLI installation (authenticated). Invoke tools like ask-codex, brainstorm, list-sessions, or health.
Key features of Codex Mcp Server
- File analysis with
@file references - Multi-turn conversations with workspace isolation
- Native resume using
codex resume(CLI v0.36.0+) - Local OSS model support via Ollama or LM Studio
- Sandboxed code execution with
--full-auto - Structured brainstorming with SCAMPER framework
Use cases of Codex Mcp Server
- Analyze code architecture by referencing files via
@src/ - Conduct multi-turn code review sessions using session IDs
- Run untrusted code safely in sandbox mode
- Generate refactoring ideas with structured brainstorming
- Use local models for code analysis without sending data to OpenAI
Frequently asked questions
1 What are the runtime dependencies?
Node.js 18+ and a locally installed and authenticated Codex CLI are required.
2 How do I configure multi-turn conversations?
Pass a sessionId parameter in your prompt. Sessions persist for 24 hours by default (configurable via CODEX_SESSION_TTL_MS), with a maximum of 50 sessions.
3 What models are supported?
By default the CLI’s configured model is used. You can override with model names like gpt-5.5, gpt-5.4, gpt-5.4-mini, or use local OSS models via localProvider: "ollama" or "lmstudio".
4 Where does session data live?
Session data is stored locally on your machine under the Codex CLI workspace; no data is sent to external servers except through your chosen model provider.
5 What CLI versions are compatible?
Features work best with Codex CLI v0.36.0+ (sessions), v0.52.0+ (search), and v0.59.0+ (add-dirs, token limits).
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In