Hosting MCP Servers: Local, VPS, Serverless, and Remote HTTP Compared
10 November 2026 · Updated 28 November 2026 · 12 min read · by Yang Kai
Where an MCP server should live depends on who uses it and when. A criteria-based comparison of local, VPS, container, and serverless hosting, with the gotchas of each.
Table inside: MCP Hosting Comparison Table
Contents
- The short version
- The transport decides half the question first
- Option 1: Local over stdio
- Option 2: A VPS or small always-on machine
- Option 3: Containers on a managed platform
- Option 4: Serverless and edge functions
- Option 5: Managed MCP hosts
- The hosting comparison table
- One server, walked through the decision
- Decide by asking three questions
- How we researched this
- The verdict
Every MCP server starts life the same way: on your laptop, launched by your client, dead when you close the lid. The trouble starts when a server needs to be reachable while your machine sleeps, usable by someone besides you, or connected to systems that live in a data centre — because now you are not picking a tool, you are picking an operational burden.
This guide compares the realistic homes for an MCP server on criteria — cost shape, ops burden, latency, session behaviour, trust — rather than declaring a universal winner. Prices are read from each vendor’s own pricing page, checked November 2026, and the protocol facts come from the current MCP specification; the research note at the end lists the sources.
For the day-one local pattern, building your first MCP server already covers it. This piece is about what comes after, and it stops short of full production operations — that deeper territory is MCP in production.
The short version
| Option | Best for | Cost shape (checked Nov 2026) |
|---|---|---|
| Local (stdio) | Personal servers that touch local files and tools | $0 — your hardware |
| VPS | One remote server, always on, fully yours | Flat from about €3.79/month (Hetzner CX22) or $6/month (DigitalOcean Basic) |
| Managed containers | Team servers; processes that must stay alive | From about $2.19/month always-on (Fly.io smallest machine); Railway Hobby from $5/month |
| Serverless / edge | Stateless, short, independent tool calls | Cloudflare Workers free plan, or Paid from $5/month |
| Managed MCP hosts | Python or TypeScript servers you do not want to operate | Free personal tiers exist; paid tiers vary by vendor |
The transport decides half the question first
Before comparing hosts, check which transport your server speaks, because the transport rules whole options in or out.
stdio servers are launched as child processes and talk over standard streams. They can only ever live where the client lives — your machine — unless you wrap them in something that exposes them over HTTP, at which point you have taken on the auth and exposure questions of a remote server anyway.
Streamable HTTP servers expose a network endpoint and can live anywhere that serves HTTPS. This is the only transport a VPS, container platform or edge host can serve directly.
There is a second, quieter split inside the HTTP option. Servers built on the 2025-11-25 spec revision hold protocol-level sessions, which ties a client to one server instance. The 2026-07-28 revision removed sessions, so any instance can answer any request. When a hosting option below talks about session behaviour, this split is what it is talking about — and it is worth knowing which side of it your server and your main client are on before you pay for anything.
Option 1: Local over stdio
The default. Your client spawns the server as a child process; they talk over standard input and output; nothing is exposed to any network.
The strengths are real: no hosting bill, no network attack surface, credentials never leave the machine, and debugging is just reading stderr. The limits are equally real: one user, one machine, and availability tied to your laptop’s mood.
Stay local while the server serves only you and touches mostly local things — files, local tools, your own accounts via your own tokens. Most personal servers should stay local forever, and there is no prize for moving them.
Option 2: A VPS or small always-on machine
A cheap virtual private server — or a spare mini-PC at home — is the natural next step. You run the server as a long-lived process behind a reverse proxy that terminates TLS, and point your client at the URL.
You gain always-on availability and access from multiple devices. You take on patching, process supervision, log rotation, config backups, and being your own incident response.
Pricing: a Hetzner CX22 (2 vCPU, 4 GB RAM, 40 GB NVMe) is €3.79/month; a DigitalOcean Basic Droplet (1 vCPU, 1 GB RAM) is $6/month. Either runs several small MCP servers without breathing hard. Prices checked November 2026 on each vendor’s pricing page.
If the VPS route is the one you are pricing, the Oracle Cloud Always Free entry is the standing free option worth checking first — a real always-on machine with no trial clock, subject to the capacity and idle rules documented there.
This is also where authentication stops being optional: a server reachable over a network needs a real auth story, not just an unguessable URL. And your vetting habits invert — instead of auditing other people’s servers with the security checklist, you are now the operator whose setup deserves that audit.
Option 3: Containers on a managed platform
Packaging the server as a container and running it on a managed platform trades some control for less babysitting: the platform handles restarts, TLS termination and scaling basics. This suits team servers — one shared deployment everyone connects to — and servers whose load varies.
Pricing: Fly.io bills per machine; its smallest shared-cpu machine (256 MB) runs about $2.19/month always-on, with 512 MB at about $3.69. Railway offers a free plan with $1 of monthly usage credit (services sleep when idle) and a Hobby plan from $5/month. Google Cloud Run container hosting carries a monthly free tier before per-request billing starts. Prices checked November 2026.
The MCP-specific gotcha used to be sessions. Under the 2025-11-25 spec revision, Streamable HTTP runs with protocol-level sessions, so a platform that aggressively recycles instances can produce confusing disconnects. The 2026-07-28 revision removed sessions from the protocol — requests are stateless and self-contained — which makes container platforms a much safer default for current-revision servers. Either way, test reconnect behaviour deliberately, the way the testing checklist insists on testing error paths, not just the happy one.
Option 4: Serverless and edge functions
Serverless fits a narrow but genuine profile: stateless servers whose tools are short, independent calls — look something up, transform something, call an API and return.
The most developed MCP story here is Cloudflare Workers. Cloudflare’s own guide deploys a remote MCP server to a workers.dev URL using createMcpHandler from its Agents SDK, and the same SDK family provides OAuth provider building blocks for the sign-in flow. The older McpAgent class API is deprecated, so new builds should start from the handler.
Pricing: the Workers free plan includes 100,000 requests/day with a 10 ms CPU limit per invocation — fine for a lookup tool, too tight for a handler that parses files or chains several upstream calls. Workers Paid starts at $5/month and includes 10 million requests and 30 million CPU milliseconds, then $0.30 per extra million requests. Checked November 2026 on Cloudflare’s pricing page.
The constraints are architectural, not financial:
- No local filesystem or long-lived process. State that must persist goes in KV, D1 or Durable Objects — which means the tool is a reimplementation, not a moved process.
- Execution ceilings. Cold starts add latency to the first call, and long-running tool calls fight platform time limits on every serverless host, not just this one.
- Language shape. Workers runs JavaScript and TypeScript natively; a Python server belongs on a container host instead.
The attraction is operational: near-zero idle cost, no server to patch, scaling handled for you. The stateless design of the current spec revision is exactly what makes this option viable; a server designed around a permanent stdio-style session will not transplant.
Option 5: Managed MCP hosts
A newer category skips the general-purpose platform entirely: hosts built only for MCP servers, which take your server code and give you an endpoint, auth handling and a dashboard. FastMCP’s hosting offers a free tier for personal servers, and Alpic runs MCP apps on paid plans (Pro at $50/month, checked October–November 2026 on vendor pages).
The trade is the mirror image of the VPS: the least operational work of any remote option, in exchange for the least control and a younger vendor whose limits and pricing will move. For a personal server you want reachable this afternoon, that trade can be right. For a server a team depends on, read the exit story — how you take your endpoint and configuration elsewhere — before you build on it.
The hosting comparison table
| Criterion | Local (stdio) | VPS / own machine | Managed containers | Serverless / edge |
|---|---|---|---|---|
| Who can use it | Just you, on that machine | You, from anywhere | A team, centrally | Anyone you authorise, per request |
| Availability | When your machine is on | Always-on, your responsibility | Always-on, platform-assisted | Always-on, platform-run |
| Cost shape | None beyond your hardware | Flat monthly, even when idle | Per-machine or per-request, small baseline | Near-zero idle; per-request |
| Ops burden | Lowest | Highest — patching is yours | Middle | Lowest after setup |
| Session behaviour | Natural fit | Natural fit | Safe for stateless (2026-07-28) servers; test recycling on session-based ones | Needs stateless design |
| Latency | None (same machine) | Network round trip | Network round trip | Cold starts on idle tools |
| Credential handling | Stays on your machine | On your server — secure it | Platform secrets store | Platform secrets store |
| Best for | Personal file/tool servers | Personal remote access, learning ops | Shared team servers | Stateless lookup/transform tools |
One server, walked through the decision
Take a typical second server: a TypeScript tool that reads a hosted Postgres database and returns formatted reports, used by you daily and by one collaborator twice a week.
- Local? No — the collaborator is the second user, and the database already lives in a data centre. Two of the three triggers fire at once.
- Serverless? The calls are short lookups, which fits — but the report formatting parses and reshapes rows, and a 10 ms free-plan CPU ceiling is the wrong risk to take on the main path. It would work on the $5 Paid tier.
- Containers? Workable, and the platform would handle restarts — but the load is two people’s worth of calls, so the platform’s scaling story buys nothing.
- VPS? A €3.79 CX22 runs it next to the database’s region, stays on for the collaborator, and the ops burden is one small process on one small machine.
The VPS wins this round — not because it is the best technology, but because the answers to the three questions below point at it. Change one answer (no collaborator, say) and the same server stays local, correctly.
Decide by asking three questions
Who is the second user? If there is none, local or a personal VPS covers you. Multi-user needs are what justify containers, OAuth, and the rest of the production apparatus.
What breaks if it is down for an hour? A server your morning routine depends on deserves supervision and restart automation. A server you use twice a week can be restarted by hand without shame.
Where does the data live? A server whose job is reading files on your laptop gains nothing from a data centre. A server whose job is calling cloud APIs loses nothing by living near them. Let the data’s gravity decide, and check the server’s data handling against how you vetted it in the first place before giving it a network address.
How we researched this
Desk research from primary sources, checked November 2026: the MCP specification’s transport documentation (stdio and Streamable HTTP, 2025-11-25 and 2026-07-28 revisions), Cloudflare’s remote MCP server guide and Workers pricing page, and the published pricing pages for Hetzner, DigitalOcean, Fly.io and Railway. Prices are list prices at the check date and vendors change them; the per-option verdicts follow from documented limits — CPU ceilings, session behaviour, free-tier rules — not from benchmark runs of our own.
The verdict
Stay local until a named need moves you — most personal servers never need to move, and an unneeded move only adds cost, exposure and maintenance. Name the need first; the right host usually names itself right after. For one always-on personal server, a €3.79–$6 VPS is the honest default; for a stateless server with short calls, Cloudflare Workers’ free plan or $5 Paid tier is the cheapest operational life available; for a team server, managed containers earn their small premium. Move exactly one server, live with it for a week, and run the production patterns before a second user arrives — sharing changes your auth, logging and update obligations all at once.
FAQ
When should an MCP server stop running on my laptop? When it must be reachable while your laptop is closed: a collaborator uses it, a scheduled agent run needs it, or it serves another machine. Until one of those is true, local hosting is simpler, cheaper, and safer.
What does hosting an MCP server cost? At solo scale, between nothing and about $6/month: Cloudflare Workers’ free plan covers a stateless server with short calls, a Fly.io machine starts around $2.19/month, and a small VPS runs €3.79 (Hetzner CX22) to $6 (DigitalOcean Basic) — prices checked November 2026. The real cost is operational: updates, uptime, and auth become your job the moment the server has a network address.
Can I host a stateful MCP server remotely? Carefully, and it depends on the spec revision. Servers built on the 2025-11-25 revision hold protocol sessions, which complicate scaling and restarts; the 2026-07-28 revision removed sessions, so current-revision servers can move, restart and scale without session surprises.
What changes when a second person uses my hosted server? Everything operational: they need their own credential, their calls belong in your logs, and your update schedule becomes a promise. Set those up before the second user arrives, not after the first incident.
Can a Python MCP server run on Cloudflare Workers? Not natively — Workers runs JavaScript and TypeScript. A Python server belongs on a VPS, a container platform such as Fly.io or Cloud Run, or a managed MCP host. Hosting choices differ slightly by language, and the Python path is laid out in building an MCP server in Python.
Category: MCP Servers & Security · Tags: #mcp #hosting #deployment #comparison
Next step: this article is part of MCP guides, which covers the full topic from first setup to advanced use.