Direct answer
OpenAI supports MCP in four places: the Responses API mcp tool calls remote MCP servers, the Agents SDK connects to hosted, Streamable HTTP, SSE and stdio servers, Codex reads servers from config.toml, and ChatGPT adds custom MCP servers as plugins. Remote servers are reached by URL, and private or local servers can be connected through Secure MCP Tunnel in supported products.

Use MCP in OpenAI's products
Each command below comes from the official docs, read on November 12, 2026. The comment above each line says what it does.
# Adds a remote MCP server as a tool in a Responses API request.
{"type": "mcp", "server_label": "openai_docs", "server_url": "https://developers.openai.com/mcp", "require_approval": "never"}
# Imports only the listed tools from the server, which cuts cost and latency.
"allowed_tools": ["search_openai_docs"]
# Agents SDK (Python): lets the Responses API call a public MCP server for the agent.
HostedMCPTool(tool_config={"type": "mcp", "server_label": "deepwiki", "server_url": "https://mcp.deepwiki.com/mcp", "require_approval": "never"})
# Agents SDK (Python): launches a local stdio MCP server as a subprocess.
MCPServerStdio(params={"command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", str(samples_dir)]})
# Codex: adds a stdio MCP server to config.toml.
codex mcp add context7 -- npx -y @upstash/context7-mcp
# Codex: shows configured servers.
codex mcp list
# ChatGPT: connects a remote server as a plugin.
ChatGPT Plugins > plus button > Add custom MCP serverThe steps for openai mcp
Four steps take you from the problem to a working MCP server.

- Step 1: Pick the OpenAI product you build with
- Step 2: Find its MCP setting or tool
- Step 3: Point it at the MCP server
- Step 4: Approve or scope the tools it may call
Where OpenAI supports MCP
| Product | How it uses MCP | Transports / connection |
|---|---|---|
Responses API | How it uses MCP The mcp tool type lists tools from a remote server and lets the model call them; approval is required by default | Transports / connection Streamable HTTP or HTTP/SSE via server_url; tunnel_id for Secure MCP Tunnel |
Agents SDK (Python) | How it uses MCP HostedMCPTool, MCPServerStreamableHttp, MCPServerSse and MCPServerStdio | Transports / connection Hosted (Responses API), Streamable HTTP, HTTP with SSE, stdio |
Codex (desktop app, CLI, IDE extension) | How it uses MCP Servers configured in ~/.codex/config.toml or a trusted project's .codex/config.toml, shared by all three clients | Transports / connection STDIO and Streamable HTTP (bearer token, OAuth) |
ChatGPT | How it uses MCP Custom MCP servers added as plugins from the Plugins page; full MCP on Business and Enterprise/Edu | Transports / connection SSE and streaming HTTP over a public HTTPS URL, or Secure MCP Tunnel |
API Playground | How it uses MCP Tools > Add > MCP Server, to inspect raw requests and responses | Transports / connection HTTPS endpoint |
Caveats the docs call out
- connector_id is deprecated for models released after September 1, 2026; use server_url or tunnel_id instead.
- Only use remote MCP servers you trust: a malicious server can exfiltrate sensitive data from anything that enters the model's context.
- By default the Responses API asks for approval before data is shared with a remote MCP server; set require_approval to "never" or a per-tool object only for trusted servers.
- Codex's default startup_timeout_sec for an MCP server is 10 seconds.
Steal this workflow
Run this guide in your own assistant. The prompt carries the guide link and the workflow summary, so the assistant can adapt it to your project.
Read the guide "OpenAI and MCP: the Responses API, Agents SDK, Codex and ChatGPT" at https://better-design.com/blog/openai-mcp and help me apply it to my project.
OpenAI supports MCP in four places: the Responses API mcp tool calls remote MCP servers, the Agents SDK connects to hosted, Streamable HTTP, SSE and stdio servers, Codex reads servers from config.toml, and ChatGPT adds custom MCP servers as plugins. Remote servers are reached by URL, and private or local servers can be connected through Secure MCP Tunnel in supported products.
Start by asking what I am building and which tools I use. Then walk me through the workflow step by step, adapted to my answers.Claude and ChatGPT open with the prompt filled in. Gemini copies the prompt to your clipboard first, so paste it when the app opens.
Questions
Which transports does the Responses API MCP tool support?
Remote MCP servers that support either the Streamable HTTP or the HTTP/SSE transport protocols.
Can OpenAI products reach an MCP server that is not on the public internet?
Yes, through Secure MCP Tunnel, which connects a local or private MCP server without exposing it to the public internet.
Do the ChatGPT desktop app, Codex CLI and IDE extension need separate MCP setup?
No. They share the config.toml MCP configuration, so you can switch among those clients without redoing setup.
Where these commands and paths come from
Each command, path and caveat comes from the official docs, read on November 12, 2026. Commands change between releases, so check the docs for your version.
- OpenAI (API docs: MCP servers): developers.openai.com/api/docs/guides/tools-connectors-mcp
- OpenAI (Agents SDK Python docs): openai.github.io/openai-agents-python/mcp/
- OpenAI (Codex docs: Model Context Protocol): developers.openai.com/codex/mcp
- OpenAI Help Center: help.openai.com/en/articles/12584461-developer-mode-apps-and-full-mcp-
- OpenAI (API docs: Add custom MCP server): developers.openai.com/api/docs/guides/custom-mcp-server
- OpenAI (Plugins docs): developers.openai.com/plugins/deploy/connect-chatgpt
Related
Add design guidance to the same setup
MCP servers give your coding agent tools and data. Better Design is an MCP server too: it gives the agent a design system, interface principles and review rules, so the screens it builds look designed.