SpecToMCP

Remote MCP setup

Connect an OpenAPI MCP Server to ChatGPT

ChatGPT connects to a remotely reachable MCP endpoint rather than starting the local stdio process used by desktop coding clients. The generated project includes a minimal Streamable HTTP entry point at /mcp.

Generate your MCP server

Deploy the HTTP entry point

Build the project on a Node.js host, configure API_BASE_URL and the upstream credential, and expose the application through HTTPS. Confirm that POST requests reach /mcp.

npm install
npm run build
npm run start:http

Use the HTTPS MCP URL

In ChatGPT Developer Mode, create an MCP connection using a URL such as https://mcp.example.com/mcp. The local Cursor or Claude JSON file is not a ChatGPT configuration format.

Harden before production use

The generated HTTP server is deliberately minimal. Add client authentication, per-user authorization, origin validation, rate limits, request logging, and confirmation policies before exposing private or write-capable APIs.

Frequently asked questions

Can ChatGPT connect to localhost?

Not directly from the hosted product. Use a secure development tunnel for testing or deploy the server to an HTTPS host.

Is the generated HTTP server production-ready?

No. It is a functional starting point and needs application-specific security controls.

Related guides