Best for
- Developers already using the OpenAI Codex CLI who want to reuse its quota
- Teams that want cross-model second opinions inside Claude Code, Cursor, or similar assistants
- Reasoning-heavy code reviews and architecture critique on specific files
A narrowly scoped MCP server exposing one tool, ask-codex, over stdio that connects a host AI assistant to the OpenAI Codex CLI for code review, plan debate, and second opinions, defaulting to gpt-6-astra with a gpt-5.6-terra quota fallback. Installation is a single npx command and sessions can be resumed. Note that it is unofficial, reviewed code leaves your machine to reach Codex, and usage stats are in-memory only; for offline or very large-context work, choose the sibling Ollama, Gemini, or Antigravity servers instead.
Strongest · Documentation 12/20 Weakest · Reliability 8/20
Static review · not runReviewed 2026-09-25
Read the FMRS scoring method →Runtime:Node.js 20+
GMCPT_TIMEOUT_MS
Timeout for Codex CLI execution in milliseconds; default is 300000 (5 minutes).
GMCPT_LOG_LEVEL
Log verbosity: debug, info, warn, or error; default is warn.
{
"mcpServers": {
"codex": {
"command": "npx",
"args": ["-y", "@ask-llm/codex-mcp"]
}
}
}
Shown for Claude Code. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.
{
"servers": {
"codex": {
"command": "npx",
"args": [
"-y",
"@ask-llm/codex-mcp"
]
}
}
}
Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).
claude mcp add codex -- npx -y @ask-llm/codex-mcp
Run it in a terminal; replace any <…> placeholders with your own values first.
The ask-codex tool should appear in your MCP client's tool list; sending "ask codex to review my last commit" and getting a Codex review back confirms the connection works.
Once connected, you can ask your AI assistant things like:
No matching tools
Listed from the project's documentation, not tested by this site.
Ask Codex is the Codex-only MCP server from the Ask LLM project (npm package @ask-llm/codex-mcp, version 0.2.0). It exposes a single tool, ask-codex, over stdio and bridges host AI assistants (Claude Code, Cursor, Claude Desktop, Codex CLI, and other of the 40+ MCP clients) to the OpenAI Codex CLI for AI-to-AI collaboration: reviewing diffs, critiquing plans, and getting an independent second opinion before committing. The default model is gpt-6-astra with a gpt-5.6-terra fallback when quota runs out. The tool optionally accepts a sessionId and returns a structured AskResponse (provider, response, model, sessionId, usage); Codex requires sessionId: "" on the first call to start a resumable thread, and omitting sessionId gives one-shot behavior. It is community-maintained and not officially affiliated with Anthropic, OpenAI, or any other vendor.
Upstash's official server providing up-to-date third-party library docs for AI coding assistants
AI-powered NPM package analysis MCP server
An independent control layer that gives AI coding agents budgets, brakes, and receipts
GitHub's official MCP server for managing repos, issues, PRs, and workflows via natural language
Data synced 2026-09-25 Read the FMRS scoring method