Primary navigation

Docs MCP

Search and read OpenAI developer docs from your editor using MCP.

OpenAI hosts a public Model Context Protocol (MCP) server for developer documentation on developers.openai.com and platform.openai.com.

Server URL (streamable HTTP): https://developers.openai.com/mcp

What it provides

  • Read-only access to OpenAI developer documentation (search + page content).
  • A way to pull documentation into your agent’s context while you work.

This MCP server is documentation-only. It does not call the OpenAI API on your behalf.

Quickstart

Choose a tab

You can connect Codex to MCP servers in the CLI or IDE extension. The configuration is shared between both so you only have to set it up once.

Add the server using the Codex CLI:

codex mcp add openaiDeveloperDocs --url https://developers.openai.com/mcp

Verify it’s configured:

codex mcp list

Alternatively, you can add it in ~/.codex/config.toml directly:

[mcp_servers.openaiDeveloperDocs]
url = "https://developers.openai.com/mcp"

To have Codex reliably use the MCP server, add this snippet to your AGENTS.md:

Always use the OpenAI developer documentation MCP server if you need to work with the OpenAI API, ChatGPT Apps SDK, Codex,… without me having to explicitly ask.

Tips

  • If you don’t have the snippet in the AGENTS.md file, you need to explicitly tell your agent to consult the Docs MCP server for the answer.
  • If you have more than one MCP server, keep server names short and descriptive to aid the agent in selecting the server.