OpenAI Codex docs MCP
- MCP server
- 5 callable tools
- Read only
- 5 capabilities
Overview
Hosted by OpenAI, this server gives AI agents access to OpenAI developer documentation from platform.openai.com, developers.openai.com and learn.chatgpt.com, plus OpenAPI specs for OpenAI API endpoints.
Capabilities:
- Search OpenAI documentation pages
- Browse the list of crawled OpenAI doc pages
- Fetch full markdown of a specific OpenAI doc page
- List OpenAI API endpoint URLs
- Retrieve the OpenAPI spec for an API endpoint
Works with
The products your agent can work with through this server.
Tools
The callable functions your agent uses to work with this server.
| Tool | What it does |
|---|---|
search_ | Search across `platform.openai.com`, `developers.openai.com`, and `learn.chatgpt.com` docs. |
list_ | List or browse pages from `platform.openai.com`, `developers.openai.com`, and `learn.chatgpt.com` that this server crawls (useful when you don’t know the right query yet or you’re paging through results). |
fetch_ | Fetch the markdown for a specific doc page from `developers.openai.com`, `platform.openai.com`, or `learn.chatgpt.com` so you can quote or summarize exact, up-to-date guidance (schemas, examples, limits, and edge cases). |
list_ | List all OpenAI API endpoint URLs available in the OpenAPI spec. |
get_ | Return the OpenAPI spec for a specific API endpoint URL. |
Installation
Follow the installation guide for supported clients, authentication and required permissions.
Add OpenAI Codex docs MCP to Claude Code
Run this in your terminal:
If the server asks you to sign in, run /mcp in Claude Code and follow the browser prompt.
Add OpenAI Codex docs MCP to Cursor
Add it with the Add to Cursor button below, or add it to .cursor/mcp.json in your project (~/.cursor/mcp.json for every project):
Add OpenAI Codex docs MCP to VS Code
Add it to .vscode/mcp.json in your workspace. VS Code uses servers rather than mcpServers. Or run MCP: Add Server from the Command Palette and choose HTTP.
Add OpenAI Codex docs MCP to Codex
Run this in your terminal:
Or add it to ~/.codex/config.toml:
If the server uses OAuth, sign in with codex mcp login openai-codex-docs.
Add OpenAI Codex docs MCP to Claude
Add it as a custom connector with this URL:
- Open Customize, then Connectors.
- Click + Add, then Add custom connector.
- Name it, paste the URL and click Continue.
- Choose how to sign in, then click Add.
On Team and Enterprise plans, an Owner adds it in Organization settings first, then members connect it.
Add OpenAI Codex docs MCP to other clients
For any other client that connects to remote MCP servers over HTTP, use this URL: