Six realistic ways to ship a server. An honest comparison of cost, latency, and operational burden.
Where an MCP server runs determines who can use it, what it costs, what auth shape you need, and how often you get paged at 3am. The defaults differ wildly: a stdio server that ships as npx your-package has zero ops surface; an HTTP server on a managed platform has billing and SLO surface from day one.
This guide covers the six realistic shapes, what each one trades, and the decision tree that picks one for a given server. Chapter 9 of MCP in Production goes deeper, including a comparison of the managed MCP platforms in the field and the hidden-cost line items most users miss.
The server runs as a subprocess of the client. The user installs your package; their client config spawns it. No network, no hosting, no auth surface.
Same as Option 1 but shipped as a Go/Rust/whatever binary, not via npm. Useful when the runtime overhead of Node startup matters or you don't want to require Node.
Costs and burden mirror Option 1, plus the build-and-distribute pipeline for the binary. Use only when Option 1 doesn't fit the install story.
The server runs as a long-lived HTTP service in your infra. You handle auth, deployment, scaling, monitoring.
HTTP server in functions-as-a-service. Cold starts, no persistent state, but no ops burden either.
A platform that hosts MCP servers for you. mcp.hosting (the Yaw Labs platform) is one option; others have entered the field. You upload a container or wire to a GitHub repo, the platform handles transport, scaling, auth bridging.
Your MCP server is a feature of a product you're already shipping -- a SaaS that adds an MCP endpoint to its existing service. No standalone hosting question; the server is just another endpoint in your app.
This is the right answer for vendors who already host an API: the MCP surface is one more route, served from the same infra, on the same auth.
Whichever shape you pick, the build should be reproducible off your laptop. Pinned base image, recorded image digest, no implicit deps on what your build host has installed. The version your users run today should be reproducible by anyone next year, including you.
MCP in Production Chapter 9 covers all six options with cost arithmetic at three traffic tiers, an honest comparison of the managed MCP platforms in the field, container packaging patterns, the reproducible-build discipline, and the migration story when traffic outgrows your initial pick.
MCP in Production
The MCP server book. Twelve chapters from shipping fourteen @yawlabs/* servers. PDF + EPUB. Free updates as the spec moves. $39 one-time, secure checkout.
Read more & buy $39 →Published by Yaw Labs.