MCP server
Codex MCP Tool
MCP server bridging AI assistants to OpenAI Codex CLI for code analysis and review
Runs locallyStatus and history
- Pricing
- Open source
- Runs
- Locally
- Version
- 2.7.0
- Listing updated
- 5 days ago
About Codex MCP Tool
Codex MCP Tool is an open-source MCP server. It runs locally on your machine and is started by your AI client.
Install
Run in a terminal
claude mcp add codex-mcp-tool -- npx -y @trishchuk/codex-mcp-toolAdd to claude_desktop_config.json
{
"mcpServers": {
"codex-mcp-tool": {
"command": "npx",
"args": [
"-y",
"@trishchuk/codex-mcp-tool"
]
}
}
}Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"codex-mcp-tool": {
"command": "npx",
"args": [
"-y",
"@trishchuk/codex-mcp-tool"
]
}
}
}Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:
Add to .vscode/mcp.json
{
"servers": {
"codex-mcp-tool": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@trishchuk/codex-mcp-tool"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"codex-mcp-tool": {
"command": "npx",
"args": [
"-y",
"@trishchuk/codex-mcp-tool"
]
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"codex-mcp-tool": {
"command": "npx",
"args": [
"-y",
"@trishchuk/codex-mcp-tool"
]
}
}
}Using several servers? Build one config file with the MCP config generator.
Configuration
CODEX_MCP_CWDOverride working directory for all tool callsCODEX_SESSION_TTL_MSSession time-to-live in milliseconds (default: 86400000 = 24h)CODEX_MAX_SESSIONSMaximum concurrent sessions (default: 50)
Pricing
Open source
Codex MCP Tool FAQ
Is Codex MCP Tool free?
Yes. Codex MCP Tool is open source, so you can use and self-host it for free.
How do I add Codex MCP Tool to Claude Code?
Run this command in your terminal: claude mcp add codex-mcp-tool -- npx -y @trishchuk/codex-mcp-tool
Where this comes from
- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.