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.
Docs MCP vs Codex Skills
The Codex Skills gives your AI agent preloaded knowledge of the API so it can interface with the API directly. The Docs MCP lets it search the documentation, which can allow it to write GraphQL queries.| Docs MCP | Codex Skills | |
|---|---|---|
| How it works | Searches docs on demand via MCP protocol | Preloaded API knowledge — operations, auth, templates |
| Best for | Looking up specific fields, types, or guides | Interacting with the Codex API directly |
| Needs network? | Yes — queries the MCP server | Works offline to write queries (still needs a connection to call the API) |
Setup
- Cursor
- VS Code
- Windsurf
- Claude Desktop
- Claude Code
Open MCP settings with
Cmd+Shift+P (Mac) or Ctrl+Shift+P (Windows/Linux) and select Cursor Settings: Open MCP Settings. Add the following:Example prompts
Once the MCP is connected, you can ask your AI assistant to build features using the Codex API. Here are some examples to get started.Get a token price
“Use the Codex API to fetch the current USD price of WETH on Ethereum.”Your assistant will look up the
getTokenPrices query and write something like:
Build a trending tokens feed
“Show me how to get the top 10 trending tokens on Base sorted by 24h volume.”
Render a price chart
“Fetch 1-hour OHLCV candles for the last 24 hours for this token on Solana: So11111111111111111111111111111111111111112.”
Stream live trades
“Set up a WebSocket subscription to stream real-time swap events for a token on Ethereum.”
Track wallet holdings
“Get all token balances for a wallet on Base.”
Discover new launches
“Find tokens launched in the last hour on Solana with at least $10k liquidity.”