Best MCP Server Hosting for Solo Developers
The MCP server works on localhost and nowhere else, and every hosting quote is either free-with-caveats or a monthly bill for capacity you will never use.
📜 Table of Contents
- The three bills, side by side
- What a solo MCP server actually costs
- Why Workers fits MCP better than it fits most apps
- When the $2.19 machine is the right answer
- Railway, or the $5 floor you pay for convenience
- What to measure before you pick
- Frequently asked
- Can a remote MCP server run for free?
- Is 256 MB enough for an MCP server?
- Does Workers support streaming responses that MCP uses?
- Do I need a database?
📖 Keep reading
The MCP server runs on localhost, the tools work, and then you try to connect a hosted client to it and remember that a laptop is not an address. The next question is where to put it, and for one person the honest answer is usually one of three bills: zero, five dollars, or about two dollars and change. The gap between them is not quality, it is what each platform refuses to do.
Prices below were read from each provider's own pricing page on 2026-11-25. They change; re-check before you commit. What does not change quickly is the shape of the trade-offs.
The three bills, side by side
| Cloudflare Workers | Railway | Fly.io | |
|---|---|---|---|
| Free tier | 100,000 requests/day, 10 ms CPU per invocation, 128 MB | $0 plan, $1 of monthly usage credits, services sleep when idle | No per-request free tier; cheapest started machine is billed monthly |
| Cheapest paid | $5/month minimum, includes 10M requests and 30M CPU-ms | Hobby, $5 minimum usage including $5 of credits | shared-cpu-1x 256 MB at $2.19/month |
| Overflow pricing | $0.30 per extra million requests, $0.02 per extra million CPU-ms | Usage-based on vCPU, RAM, egress | Larger machines $3.69 (512 MB), $6.70 (1 GB); volumes $0.15/GB-month |
| Process model | Isolate per request; no long-lived process | Container, sleeps on the free plan | Firecracker machine, bills per second while running |
| Local disk | None; KV, D1, R2, Durable Objects instead | 0.5 GB volume on free, 5 GB on Hobby | Volume, $0.15/GB-month |
| Public IPv4 | Via Cloudflare's edge | Included | Shared IPv4 free, dedicated IPv4 $2/month |
Read the CPU column twice. Workers' free tier allows 100,000 requests a day but only 10 ms of CPU per invocation. A tool handler that parses a PDF, verifies a JWT chain with several round trips, or does anything with a real dependency budget will blow past 10 ms and fail on the free plan long before it hits the request ceiling. The paid plan's 5-minute CPU ceiling is a different world.
What a solo MCP server actually costs
Requests are the wrong unit to plan with. An MCP server that answers a handful of calls per session, twenty times a day, uses almost no requests and a very ordinary amount of CPU. Three scenarios, arithmetic spelled out:
| Scenario | Workers | Railway | Fly.io |
|---|---|---|---|
| 2,000 requests/day (60k/month) at 20 ms CPU each | Free if each call stays under 10 ms; otherwise $5 (CPU used: 60k x 20 ms = 1.2M of 30M included) | $0 on the free plan with sleeping, $5 on Hobby | $2.19 always-on 256 MB + $0.15 for a 1 GB volume = about $2.34 |
| 10,000 requests/day (300k/month) at 20 ms | $5 (6M CPU-ms of 30M, 300k of 10M requests) | $5 minimum plus any usage beyond the credits | Same $2.34 for one small machine |
| One launch day at 120k requests | Free plan stops at 100k/day and returns an error; paid plan absorbs it inside the base charge | Needs a bigger service or replicas; cost follows vCPU and RAM, not requests | Needs more machines or concurrency headroom; billed per second while running |
The pattern: at this scale the bill is set by uptime and per-call CPU, not traffic. Workers charge a flat $5 and then ignore you until 10 million requests. Fly bills a small machine by the second. Railway's floor is $5 either way, and its real advantage is that a Postgres or Redis instance sits next to the app.
Why Workers fits MCP better than it fits most apps
MCP's authorization model pushes state to the client. The spec requires the bearer token on every HTTP request, even inside one logical session, and forbids putting it in the URL. A server written to that contract is stateless by design: each request arrives with what it needs, and nothing has to survive between calls except cached data. That is the workload an isolate handles well, and it is why a remote MCP server on Workers is not the square-peg situation a session-heavy web app would be.
What Workers will not give you is a filesystem. Tools that write to disk, hold a SQLite file, or shell out to a binary do not fit. On Workers you replace those with KV, D1 or Durable Objects, and you accept that the tool is now a different implementation, not a moved process.
When the $2.19 machine is the right answer
Fly's smallest started machine is a shared-CPU 1x with 256 MB of RAM for $2.19 a month, assuming 30 continuous days. That is cheaper than both other floors and it is a real Linux process: you keep stdio-to-HTTP wrappers, local caches, a SQLite file on a volume, and any binary your tool wraps. The trade is that you now own the OS image, the health checks, and the concurrency settings, and that 256 MB is genuinely small. A Python MCP server with the usual dependency stack, or a Node server with a heavy SDK, will want the 512 MB machine at $3.69 or the 1 GB at $6.70 after you measure resident memory.
Fly also bills per second while a machine is running, which makes auto-stop interesting for a personal server used a few hours a day. The catch is cold start: a stopped machine has to boot and load your process before the first MCP request can be answered, and MCP clients are not always patient. Measure that time yourself rather than trusting a vibe; it is the difference between a pleasant personal setup and a connector that times out at breakfast.
Railway, or the $5 floor you pay for convenience
Railway's free plan gives $1 of monthly usage credits and lets services sleep; Hobby is $5 minimum usage with $5 of credits. You are paying for the deployment ergonomics: connect a repo, get a URL, add a managed Postgres in the same project, read logs in one place. For an MCP server that needs a database for user-scoped data, that combination is often cheaper in hours than the few dollars you might save elsewhere. If your tools are stateless, you are paying $5 for convenience you may not need.
What to measure before you pick
- CPU per request. Time your tool handler locally. If the median is above 10 ms, Workers' free plan is off the table and the decision is $5 versus $2.19.
- Resident memory. Run the server, hit each tool once, read RSS. If it exceeds 256 MB, Fly's cheapest machine is not an option.
- Cold start tolerance. Stop the process and time the first request. If your client gives up after a few seconds, auto-stop and sleeping plans will hurt.
- Filesystem needs. Any tool that writes files or wraps a binary eliminates Workers.
- Whether OAuth state must persist. Client tokens live on the client side, but rate limits, audit logs and cached JWKS keys need a store. KV or D1 on Workers, a volume or Postgres elsewhere.
If you have not built the authorization layer yet, the 401 and metadata requirements decide more about your hosting than the price table does: the handshake walkthrough covers the headers and audience checks, and the measured tools-list cost shows why exposing twenty tools is not free. For the data side, the read-only Postgres server comparison is the relevant read.
Frequently asked
Can a remote MCP server run for free?
Yes, on Cloudflare Workers' free plan, if every tool call stays under 10 ms of CPU and you stay under 100,000 requests a day. Railway's free plan also runs at zero but sleeps when idle, so the first request after a pause pays a cold start. Fly has no free per-request tier; its cheapest option is the $2.19 machine.
Is 256 MB enough for an MCP server?
For a thin server that exposes a few API wrappers, often yes. For Python with a data stack or Node with a large SDK, usually no. Measure RSS after calling every tool once; the first request often allocates more than steady state.
Does Workers support streaming responses that MCP uses?
Yes. Streaming HTTP responses work on Workers, which matters because MCP clients expect streamed tool output. The constraint is CPU time per invocation, not streaming itself.
Do I need a database?
Not for authorization, since the token arrives on every request. You do need one for anything user-scoped, rate limiting, or audit trails. That requirement, more than price, is what pushes people from Workers to Fly or Railway.
Written by our editorial team; tools listed here are tested or verified against public sources. Links point to official sites or GitHub repos for reference only — no paid placements.