How do I make an MCP server from a cURL command, an OpenAPI spec or a Postman collection?
You don't have to capture traffic. If you already have a cURL command, an OpenAPI spec or a Postman collection, Web2MCP can build a profile straight from it. Reads are exposed read-only-safe by default; writes stay hidden until you review them.
From one cURL command
The lowest-friction way to wire up a single endpoint. Paste a DevTools "Copy as cURL" (bash) command from stdin:
pbpaste | web2mcp add-curl work/site-profile # macOS; use your clipboard tool of choice
Repeated add-curl calls accumulate into the same profile. The real response shape is filled in later by a trial-read.
From an OpenAPI 3.x document
web2mcp import-openapi api-spec.json --out work/api-profile # add --writes to expose writes too
Here Web2MCP's job is to add a reviewed write-safety layer on top of an API you already have. The spec carries no credentials, so add them to the profile's private credentials.json — the reported security schemes say what's needed — then trial-read tightens the placeholder response shapes.
From a Postman collection (v2.x)
web2mcp import-postman collection.json --out work/api-profile --var baseUrl=https://api.example.com
Saved example responses in the collection are used as real response shapes where present.
Limits
A cURL or spec import carries no login unless you add it. Credentials stay on your machine. Only integrate APIs and accounts you are authorized to automate. As everywhere in Web2MCP, writes are off until a reviewed contract is installed.