# OpenAI Docs MCP (MCP Server)

> Search and read OpenAI's developer documentation from Codex or any MCP client

- Type: MCP server
- Publisher: OpenAI (official)
- Categories: Development, AI & ML
- Website: https://developers.openai.com/learn/docs-mcp
- Transport: streamable-http
- Server URL: https://developers.openai.com/mcp
- Sign-in: none
- Listed: 2025-10-06

## About

OpenAI hosts a public, read-only MCP server that lets agents search the OpenAI developer docs and pull full page content. It runs remotely over Streamable HTTP with no sign-in required. OpenAI suggests adding it to Codex and pointing to it from AGENTS.md so questions about the OpenAI API, SDKs and Codex are answered from current docs.

## Install

1. **Connect it in ChatGPT** Turn on Developer mode in ChatGPT (Settings → Security and login), open Plugins, select + and paste https://developers.openai.com/mcp as the MCP server URL. Add it to a chat from the composer's tools menu.

2. **Or add it to Codex or the API**

   Codex CLI:

   ```bash
   codex mcp add openai-docs --url https://developers.openai.com/mcp
   ```

   config.toml:

   ```toml
   [mcp_servers.openai-docs]
   url = "https://developers.openai.com/mcp"
   ```

   Responses API:

   ```python
   from openai import OpenAI
   
   client = OpenAI()
   
   response = client.responses.create(
       model="gpt-6-astra",
       tools=[{
           "type": "mcp",
           "server_label": "openai_docs",
           "server_url": "https://developers.openai.com/mcp",
           "require_approval": "never",
       }],
       input="How do I stream tool calls with the Responses API? Check the OpenAI docs",
   )
   print(response.output_text)
   ```

## Example prompts

- "How do I stream tool calls with the Responses API? Check the OpenAI docs"
- "Find the docs page on structured outputs and summarize the JSON schema limits"
- "What config.toml options does Codex support for MCP servers?"
- "Look up the current Agents SDK guide for handoffs"

## Also available as

- plugin: [Codex Security](https://chatgptplugins.directory/plugins/codex-security.md)
- app: [MCP App Basics (Apps SDK example)](https://chatgptplugins.directory/apps/apps-sdk-mcp-app-basics.md)

## Related

- [Chrome DevTools MCP](https://chatgptplugins.directory/mcp/chrome-devtools.md): Let coding agents control and debug a live Chrome browser
- [Playwright MCP](https://chatgptplugins.directory/mcp/playwright.md): Browser automation for agents via Playwright accessibility snapshots
- [GitHub](https://chatgptplugins.directory/mcp/github.md): Manage repos, issues, pull requests and Actions from your AI agent
- [Context7](https://chatgptplugins.directory/mcp/context7.md): Pull up-to-date, version-specific library docs into your coding agent
- [Supabase](https://chatgptplugins.directory/mcp/supabase.md): Manage Supabase databases, migrations, edge functions and logs
- [Stripe](https://chatgptplugins.directory/mcp/stripe.md): Query and act on your Stripe account and search Stripe docs from any agent

---
Source: https://chatgptplugins.directory/mcp/openai-docs · Index: https://chatgptplugins.directory/llms.txt · Independent and community-run. Not affiliated with or endorsed by OpenAI. ChatGPT is a trademark of OpenAI.
