Skip to main content
The Codex documentation is available as a Model Context Protocol (MCP) server. Adding it to your AI coding tool lets it search and reference the Codex API docs directly, so you can get accurate answers without leaving your editor.
https://docs.codex.io/mcp

What it does

Once connected, your AI tool can search the full Codex API documentation — including queries, subscriptions, types, and guides. It will automatically reference the docs when you ask questions about the Codex API or need help writing queries.
This MCP server is for searching the documentation and helping your AI write queries. It does not interface with the Codex API directly — you’ll still need to execute queries using your API key via the GraphQL endpoint or the SDK.

Setup

Open MCP settings with Cmd+Shift+P (Mac) or Ctrl+Shift+P (Windows/Linux) and select Cursor Settings: Open MCP Settings. Add the following:
{
  "mcpServers": {
    "codex-docs": {
      "url": "https://docs.codex.io/mcp"
    }
  }
}