What is Streamable HTTP in MCP? URL-based connections
By Flavio
Streamable HTTP connects MCP clients to a server endpoint using HTTP requests. Learn how coding tools use it, when it helps, and how it differs from stdio.
Streamable HTTP is an MCP transport that sends protocol messages to an HTTP endpoint. Replies arrive as JSON or as a Server-Sent Events stream scoped to the request.
Read What is MCP? for real requests to Astro’s documentation server. Build an MCP server compares the two transports using the same blog-search tools.
How Streamable HTTP works
The server runs independently, and the client connects to its URL. It can run on the same machine or on a remote service. The transport specification defines the HTTP request and response behavior.
The transport carries the same MCP operations as stdio. It changes how messages travel between the client and server.
In coding tools
Claude Code adds URL-based servers with claude mcp add --transport http. Codex documents Streamable HTTP servers with a url setting.
Cursor supports Streamable HTTP for local and remote servers. Grok Build documents remote HTTP servers through grok mcp add --transport http.
Details checked against each vendor’s documentation in November 2026.
A concrete example
Astro publishes an MCP documentation endpoint. This Codex configuration connects to it:
[mcp_servers.astro_docs]
url = "https://mcp.docs.astro.build/mcp"
Then ask the agent:
Use astro_docs to find how Astro content collections load Markdown files.
This is an example request. The MCP walkthrough includes actual HTTP exchanges with that endpoint, including a rejected protocol version and a successful compatible request.
When to use Streamable HTTP
Use it when the server already has a URL, or several clients need a shared service. For a server you want the client to start as a child process, use stdio.
The Cloudflare Domains Toolkit approval tutorial shows the checks a billable tool needs. Keep those checks when you expose a tool through a network endpoint.
Pitfalls
An HTTP URL must speak MCP. An ordinary REST endpoint needs an MCP server around it before a coding client can discover its tools.
Streamable HTTP can return SSE, but it is separate from the older HTTP+SSE transport. Match the client’s configuration to the server’s documented endpoint.
Authentication and supported protocol versions still need to agree. A reachable URL can return an authorization error or reject a request’s protocol version. Start with the server’s connection instructions and inspect the client’s MCP status.
Related glossary entries
- stdio (MCP transport): Stdio connects an MCP client to a server process through standard input and output. Learn when to use it, how coding tools configure it, and common mistakes.
- MCP tasks: MCP tasks give long-running server operations an ID. Learn how clients follow progress, retrieve results, and handle cancellation in coding workflows.
- Tool calling: Tool calling is when a model names a function and its arguments, and the app runs it. How Claude Code, Codex, Cursor and Grok Build take that step.
Want me to talk about your product? You can sponsor this site.