How to Host an MCP Server: 5 Platforms Compared [Dec 2026]
Where to host and deploy a remote MCP server over Streamable HTTP: Cloudflare Workers, Fly.io, Railway, Render and Vercel compared on price, cold starts and session state, read 2 December 2026.
Hosting an MCP server means putting a Streamable HTTP endpoint at a public HTTPS URL so clients like Claude, ChatGPT, Cursor and VS Code can connect without running npx on the user's machine. Any platform that serves HTTPS POST requests can run one, but two things separate a good MCP host from a frustrating one: whether it sleeps between calls and whether it can keep session state if your server uses Mcp-Session-Id.
Every price and limit below was read from each provider's own pricing page on 2 December 2026 [1][2][3][4][5].
TL;DR:
- Cheapest always-on stateless endpoint: Cloudflare Workers. Free tier gives 100,000 requests a day with 10 ms CPU time per call, and the paid Standard plan starts at $5 a month [1].
- Cheapest always-on container or stateful server: Fly.io. A
shared-cpu-1xMachine with 256 MB RAM runs at $2.19 a month billed by the second [2]. - Easiest Git push with sleep-to-zero: Railway ($0 Free tier with $1 monthly credit; $5 minimum on Hobby) [3] or Render ($0 Free web service with spin-down; $7 a month Starter for always-on) [4].
- Already on Next.js: Vercel Hobby ($0) or Pro ($20 a month) with Fluid Compute, best for stateless HTTP handlers [5].
- Before you share the URL: run it through the MCP connection test to confirm
initializeandtools/listanswer from outside your machine.
The five hosting options side by side
| Platform | Entry price | Always-on paid tier | Cold starts / sleep | Best fit for MCP |
|---|---|---|---|---|
| Cloudflare Workers [1] | $0 (100,000 req/day, 10 ms CPU) | $5/mo Standard (10M req, 30M CPU ms) | None on Workers isolates | TypeScript/JS stateless servers, or stateful with Durable Objects |
| Fly.io [2] | Pay-as-you-go by the second | $2.19/mo (256 MB), $3.69/mo (512 MB) | Optional auto-stop; can stay on 24/7 | Python, Go or Node containers; servers that keep in-memory sessions |
| Railway [3] | $0 ($1/mo credit, $5 30-day trial) | $5/mo Hobby ($5 credit included) | Free tier wakes on request | Fast Git or Dockerfile deploys for Node and Python servers |
| Render [4] | $0 (512 MB RAM, limitations apply) | $7/mo Starter (512 MB, 0.5 CPU) | Free web services spin down when idle | Simple Node, Python, Go or Docker web services |
| Vercel [5] | $0 Hobby (Fluid Compute) | $20/mo Pro ($20 credit, cold-start prevention) | Serverless function cold starts on Hobby | Stateless MCP endpoints living inside an existing Next.js app |
What makes MCP hosting different from a normal API
Three protocol details catch teams out when they deploy an MCP server for the first time:
- Cold starts break
initialize. Many MCP clients wait only a few seconds on the first handshake. A free container that takes 20 to 40 seconds to wake from sleep often triggers a client timeout beforetools/listever runs. See MCP server errors for the failure modes clients hit. - Stateless is much easier to host than stateful. A server that requires
Mcp-Session-Idin memory breaks across serverless instances or multiple replicas unless you add sticky sessions or external session storage (Redis, SQLite or Cloudflare Durable Objects). If your tools do not need per-session memory, run stateless MCP. - Clients expect HTTPS and clean headers. Every major remote client (Claude Desktop, ChatGPT, Cursor, VS Code) requires a public
https://URL,Content-Type: application/json, and support forAccept: application/json, text/event-stream. If your server requires sign-in, return401with aWWW-Authenticateheader pointing at your protected resource metadata; MCP OAuth covers the full handshake.
Cloudflare Workers
Cloudflare Workers is the lowest-friction place to deploy a TypeScript MCP server. The Free plan includes 100,000 requests per day with 10 milliseconds of CPU time per invocation and no charge for request duration [1]. When a server needs more CPU time or higher volume, the Paid Standard plan starts at $5 per month and includes 10 million requests and 30 million CPU milliseconds, with up to 5 minutes of CPU time per invocation (default 30 seconds) [1].
Workers gives you a *.workers.dev HTTPS URL with automatic TLS out of the box. For stateless servers that proxy an external API, 10 ms of CPU time is usually enough because waiting on an upstream fetch does not count as CPU time. If your server keeps session state, Cloudflare pairs Workers with Durable Objects on the Paid plan.
Fly.io
Fly.io runs standard Docker containers on micro-VMs billed by the second while running [2]. On 2 December 2026, a shared-cpu-1x Machine with 256 MB RAM was listed at $2.19 per month, 512 MB RAM at $3.69 per month, and 1 GB RAM at $6.70 per month [2]. Inbound data is free, outbound data is $0.02/GB in North America and Europe, and the first 10 single-hostname SSL certificates are free [2].
Pick Fly.io when your server is written in Python (FastMCP), Go or Rust, or when you want a long-running process that holds database pools or session state in memory without refactoring for serverless.
Railway
Railway deploys straight from a GitHub repo or Dockerfile. The Free plan is $0 per month with $1 of monthly usage credits (plus a $5 credit trial for the first 30 days), up to 1 vCPU and 0.5 GB RAM per service, and no credit card required [3]. Services on the Free plan wake on request, which means the first call after an idle stretch pays a cold start.
The Hobby plan starts at a $5 monthly minimum with $5 of usage credits included, billed per second after credits [3]. For a lightweight MCP server that stays awake, Hobby is usually enough to keep a single container running without sleep delays.
Render
Render's Hobby workspace is $0 per month plus compute [4]. Its Free web service tier gives 512 MB RAM and less than 1 CPU for $0 per month, with platform limitations including spinning down after inactivity [4]. The Starter web service tier is $7 per month for 512 MB RAM and 0.5 CPU, running always-on with automatic TLS and Git deploys [4].
Use Render Free to smoke-test a prototype, and move to Starter ($7/mo) before publishing the URL to a directory or submitting it to a client marketplace.
Vercel
Vercel's Hobby plan is $0 per month with Fluid Compute, global CDN and automatic CI/CD; Pro is $20 per month with $20 of included usage credit and cold-start prevention [5].
Vercel fits best when your MCP server is a /mcp route inside an existing Next.js app and shares your existing auth and database code. Keep it stateless: do not store Mcp-Session-Id state in process memory across requests.
Deployment checklist before you launch
Once your server has a public https:// URL, check four things before you tell anyone about it:
- Test from outside your network. Paste the URL into the MCP connection test or run the three requests in test an MCP server with curl. Confirm
initializeanswers200(or401withresource_metadataif gated) andtools/listreturns your tools. - Check cold-start latency. Wait 20 minutes with no traffic and run the connection test again. If it times out, either move off a sleep-to-zero tier or keep one instance warm.
- Verify tool descriptions and schemas. Clients read every tool name, description and
inputSchemaon connect. See how to write MCP tool descriptions and how many tools an MCP server should have. - Publish and launch. Once the URL answers cleanly, follow how to publish an MCP server to add it to the official registry and submit your MCP server to an open launch week on MCP Hunter.
Sources
All read on 2 December 2026.
- Cloudflare Workers Pricing (last updated 18 November 2026)
- Fly.io Resource Pricing
- Railway Pricing
- Render Pricing
- Vercel Pricing