Where to host an MCP server in 2026, and when not to host one at all


Cloudflare Workers, Vercel, Cloud Run or your own cluster all run remote MCP servers well now that the spec went stateless. Here is how to pick, what changed for SSE, and when hosting nothing is smarter.
"My MCP server keeps dropping SSE connections" was the most 2025 sentence ever. The spec moved on. Your hosting choice can too.
Short answer: for a custom MCP server, use a serverless platform that supports Streamable HTTP (Cloudflare Workers, Vercel Functions or Google Cloud Run) unless your data has to stay inside your network, in which case run it as a container on your own Kubernetes or VMs. You don't need to keep long SSE connections warm anymore for normal tool calls, because the 2026-07-28 spec made MCP stateless. And for common apps like Gmail or Slack, the best place to host the server is usually nowhere: use a managed one.
Quick history, because it explains a lot of bad old advice.
Mcp-Session-Id header, which meant sticky routing and state.What that means for hosting: each tool call is an independent HTTP request. Serverless fits naturally, horizontal scaling is easy, and "keep it warm so clients don't drop" mostly stops being your problem. Long-lived streams only exist when a client asks to listen for change notifications, and the spec suggests sending an SSE comment line now and then as a keep-alive for those.
One gotcha if you sit behind nginx or a similar proxy: the spec says servers should send X-Accel-Buffering: no when they open an SSE stream, so the proxy doesn't hold messages in a buffer.
| Where | Good for | How it deploys | Watch out for |
|---|---|---|---|
| Cloudflare Workers | Small, fast, global servers | Agents SDK createMcpHandler (stateless). npx wrangler@latest deploy puts it at /mcp on your workers.dev subdomain | Keep state in KV, D1 or a Durable Object. Add auth with Workers OAuth Provider |
| Vercel Functions | Teams already on Next.js | mcp-handler in a route like app/api/mcp/route.ts | Max duration per call: 300s by default, up to 800s on Pro and Enterprise. Long jobs go to a workflow plus a status tool |
| Google Cloud Run | Containers, any language | or from an image |
All of these handle bursty MCP traffic fine imo. Vercel's docs literally describe MCP traffic as long idle periods with quick bursts, which is the whole pitch for Fluid compute.
Whatever platform you pick, the steps are basically the same:
claude mcp add --transport http for Claude Code.If the server wraps internal systems, put it next to them. A container on your cluster, behind your ingress, authenticated against your identity provider. Two things people forget:
hot take: most teams host servers they shouldn't.
If the server wraps a common SaaS app, someone already runs it. Some apps host their own remote MCP server (GitHub does). A managed gateway runs many of them behind one endpoint. With MewCP, for example, you connect apps once and your agent reaches them all at one address, with credentials kept in an encrypted vault and injected per call, so there's no OAuth app or token refresh for you to run. MewCP doesn't host your custom servers today, so for internal tools you'd still use one of the options above.
Self-host what's unique to you. Skip hosting what isn't. For the full tradeoff, see managed vs self-hosted MCP.
For a custom server, a serverless platform with Streamable HTTP support, such as Cloudflare Workers, Vercel or Cloud Run. If data must stay in your network, run it as a container in your own infrastructure.
Under the 2026-07-28 spec you mostly don't need to. MCP is stateless and each request stands alone. For long-lived notification streams, send periodic SSE comment lines as keep-alives and disable proxy buffering.
Deploy to a serverless platform, or skip hosting by using the app's own remote MCP server or a managed gateway that runs common app servers for you.
gcloud run deploy --source .Supports Streamable HTTP, not stdio. Requires IAM auth (roles/run.invoker) by default |
| Your own Kubernetes or VMs | Data that can't leave your network | A container behind your ingress | You own TLS, scaling, OAuth, logs and upgrades |