OpenAI Docs MCP gives the assistant search and reading tools for official OpenAI documentation. Use it when connecting MCP, configuring Codex or building an API application so the answer draws on a retrieved page rather than model memory alone.
For example, before connecting a server, ask for the instructions for your exact client and an explanation of its settings. For third-party library documentation, consider Context7. Docs MCP reads documents; it does not make API calls, issue keys or change your account.
Test search and reading
- The assistant checks your client and existing connections. The official guide covers Codex CLI and the IDE extension. For another client, check support for remote HTTP MCP first.
- Before changing configuration, the assistant backs it up and asks approval. The CLI commands are below; do not add the server again if it is already available.
- Ask it to find the chosen feature's document, open the page and provide a link with an explanation for your client. Compare its answer with the document.
- If the server is unavailable, open the same official page directly. The server list confirms configuration; successful search and reading confirm operation.
codex mcp add openaiDeveloperDocs --url https://developers.openai.com/mcp
codex mcp list
Server address: https://developers.openai.com/mcp. It is a hosted documentation server: this task does not require downloading source code or providing your API key. For the first test, the assistant searches, then opens the selected page. Save the source link and compare the required command with the document.
If the server is configured but its tools are missing from the chat, check how the current client loads the connection. If search returns no result, narrow the function and product name. A search snippet alone is not a substitute for reading the page.
What you will have
You will have a checked documentation source in chat. Add a short rule to consult it for OpenAI questions in the existing project instructions without replacing them entirely. To disconnect, remove only its MCP entry and check the list again.
The general tool connection plan, verifying a real call suits this test. For other servers, follow How to connect MCP to Codex.
Paste into Codex:
Find my current project, client, task and available connections. Read the official OpenAI Docs MCP guide at https://developers.openai.com/learn/docs-mcp. Reuse an available server without duplicates. If configuration is needed, get approval and back up existing settings first, then use the appropriate connection method for my client.
Search for official documentation on the required OpenAI function, open the selected page and explain applicable actions with a source link. Check commands and conditions against the full document, not just the search snippet. If MCP is unavailable, read the same official page directly and separately identify the connection error.
Save the source and disconnection method without secrets. Do not call the API or change my account as part of this documentation check.