codex mcp bridge for Cursor
io.github.hampsterx/codex-mcp-bridge
Wraps Codex CLI as MCP tools: codex, review, query, search, structured, ping, listSessions.
client:Cursor
transport:stdio
runtime:npm
Install codex mcp bridge in Cursor
~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json
{
"mcpServers": {
"codex-mcp-bridge": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"codex-mcp-bridge"
],
"env": {
"CODEX_CLI_PATH": "<CODEX_CLI_PATH>",
"CODEX_DEFAULT_MODEL": "<CODEX_DEFAULT_MODEL>",
"CODEX_FALLBACK_MODEL": "<CODEX_FALLBACK_MODEL>",
"CODEX_MAX_CONCURRENT": "<CODEX_MAX_CONCURRENT>",
"CODEX_MCP_SERVERS": "<CODEX_MCP_SERVERS>"
}
}
}
}
Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs