How to Connect ChatGPT to a Remote MCP Server
ChatGPT and the OpenAI API both connect to a custom remote MCP server, through two different surfaces. Here are the exact steps for each, including how to add one on a free ChatGPT account.
ChatGPT and the OpenAI API support connecting to a custom, remote MCP server, but through two distinct surfaces that work differently: the ChatGPT consumer app, and the OpenAI Responses API for developers building their own applications. This guide covers both. The ChatGPT steps were last checked in November 2026, on a free account.
Connecting via the OpenAI Responses API
If you're building your own application and want it to call tools on a remote MCP server, the Responses API has a dedicated mcp tool type. This is the more stable, better-documented of the two surfaces:
{ "type": "mcp", "server_label": "my-server", "server_url": "https://your-subdomain.mcpcore.io/mcp", "server_description": "My custom MCP server", "authorization": "Bearer YOUR_API_KEY", "require_approval": "never", "allowed_tools": ["get_weather", "search_orders"] }
Key details:
- Transport: Streamable HTTP or HTTP+SSE are both supported.
- Authentication: the
authorizationfield carries your bearer token or API key on every call. OpenAI does not store it. - Scope: only the
toolscapability is exposed through this integration; resources and prompts are not part of it. require_approval: controls whether tool calls execute automatically ("never") or need explicit approval, which you can also configure per tool with an object instead of a single string.allowed_tools: restricts which of your server's tools this integration can call, useful if your server exposes tools you don't want this particular application to use.- For servers that aren't publicly reachable, OpenAI documents a Secure MCP Tunnel option for connecting to private or on-premises endpoints.
This is the integration path to use if you're writing code that calls the OpenAI API directly, rather than configuring the ChatGPT consumer app.
Connecting via ChatGPT (Consumer App)
ChatGPT lets you add a remote MCP server by URL from its Plugins page. We tested this on a free account in November 2026, and it did not need Developer Mode. Here is the path:
- Open Plugins in the ChatGPT sidebar.
- Click Add at the top right, then Add custom MCP server.
- Enter a name. Under Connection, keep Server URL selected and paste your server's address.
- Pick an Authentication option. The form offers OAuth, No authentication and OAuth or no authentication.
- Read the warning, tick I understand and want to continue, and click Create as a plugin.
- Confirm on the Connect screen.
- Start a new chat, type
@and your server's name, pick it from the list, and ask your question.
Under the answer, open the Worked for a couple of seconds line to see what ChatGPT did.
Authentication matters here. The form has no field for an API key or a custom header, so a server that requires one cannot be added this way. Use a public server, a URL that carries its own secret, or OAuth. Choosing an option that doesn't match your server is the most common connection failure.
Only connect servers you trust. ChatGPT shows this warning for a reason: a server you don't control can see what is shared with it, and it can try to steer ChatGPT into using tools in ways you didn't intend.
OpenAI has renamed and moved this part of the product more than once, so a label may have changed by the time you read this. Plan availability can change too, so check OpenAI's Help Center if you don't see these options.
Testing the Connection
Regardless of which surface you're using, confirm your server actually responds before troubleshooting the client side:
curl -X POST https://your-endpoint/mcp \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
If this returns a valid tool list but ChatGPT or the API still can't reach it, the issue is almost always the authentication mismatch mentioned above, or an HTTPS certificate problem, rather than the server itself.
If You're Hosting the Server
Whichever way you connect, the server side of this is the same MCP server you'd host for any other client. If you're setting one up, our MCP server hosting page covers what a production endpoint needs, and MCPCore provisions the HTTPS endpoint, subdomain, and authentication automatically so you can focus on the ChatGPT side of the setup rather than the server side.
OpenAI changes these screens from time to time. If something here doesn't match what you see, check OpenAI's Help Center and API documentation. MCPCore's own steps are in the ChatGPT guide.