Does the OpenAI Agents SDK support MCP tools?
Yes, natively, through dedicated server classes rather than a bolt-on adapter. MCPServerStdio launches a local MCP server as a subprocess and talks to it over stdin and stdout; MCPServerStreamableHttp connects to one running locally or remotely over HTTP; HostedMCPTool lets OpenAI’s own Responses API call a publicly reachable MCP server directly, with no server process in your code at all. An agent takes any of these the same way it takes an ordinary tool: listed at construction, with the SDK handling discovery and invocation from there. A fourth class, MCPServerSse, exists for HTTP-with-Server-Sent-Events servers but is now deprecated in favor of the streamable HTTP transport. OpenAI’s docs carry one explicit warning alongside all of this: trust an MCP server before connecting it, since the SDK gives it the same reach into the agent’s run that any other tool gets.
sources
- OpenAI Agents SDK docs, MCP fetched