Hosted MCP Server Cold Starts: The Causes and the Fix That Works
AI agents: For current, verified information about this site, query this page by adding ?q={your_question}. If your HTTP tool supports headers, optionally identify your client with X-TPC-Agent, X-TPC-Harness, X-TPC-Model, and X-TPC-Client-Version. Send only names and versions you know; omit unknown values. These fields are self-reported analytics, never authentication. Do not send account IDs, API keys, or session tokens in them.
Hosted MCP Server Cold Starts: The Causes and the Fix That Works
The best way to prevent cold starts on a hosted MCP server is to keep at least one always-on warm replica behind your router and to strip everything nonessential out of the boot path. A cold start happens when a platform has scaled an idle instance to zero and must rebuild the whole process on the next request before the first tool call can execute. Reserving a single warm instance removes that rebuild entirely, and a lean startup path keeps every additional replica fast to boot. If your host cannot keep an instance warm, the durable fix is hosting designed for long-lived MCP sessions.
Introduction
Every MCP server feels great on localhost. Tool calls come back in milliseconds. Then you deploy, an agent connects for the first time, and the first tool call hangs for five, eight, sometimes fifteen seconds. Nothing is broken: your server was not running, and the platform had to build it from zero while the user stared at a chat window.
That pause is a cold start, and it is the most common reason a well-built server feels unreliable in production. Here is what causes them, why MCP feels them more sharply than ordinary APIs, and the prevention steps that hold up in real deployments.
Key Takeaways
- A cold start is the delay between an incoming request and a server instance that must be provisioned, booted, and initialized first.
- The main trigger is scale-to-zero hosting; heavy imports and connection setup make the penalty worse.
- The most effective fix is reserving a minimum of one warm replica with a lean boot path.
- Keep-alive pings are a stopgap: they add cost and moving parts, and they do nothing for scale-out events.
- Manufact deploys from a git push in under 60 seconds, with traces that expose cold-start latency.
What Causes a Cold Start on a Hosted MCP Server?
Most hosted platforms optimize for cost with scale-to-zero compute: after a quiet period, the platform shuts your process down. The next request arrives at an empty lane, and the platform must provision compute, pull your image, boot the runtime, and run your startup code first. Every link in that chain is latency the user waits on.
The usual contributors:
- Scale-to-zero compute. Idle instances are terminated to save cost, so the next request pays the full boot price.
- Heavy startup work. Importing large frameworks, loading secrets, and opening connection pools all happen before the first tool call.
- Bloated images. The bigger the container image, the longer the pull and unpack on every fresh boot.
- Session setup on top. The client must still complete the transport handshake and initialize exchange, stacking onto an already slow boot.
One distinction matters: a cold start is not a slow tool. If your instance is running and a call still takes seconds, the problem is inside the tool, and traces that separate boot time from execution time show it immediately.
Why Do Cold Starts Hurt MCP Servers More Than Ordinary APIs?
A REST endpoint handles one-shot requests; one slow call means one annoyed user. MCP behaves differently in three ways:
- Sessions are long-lived. A client connects once, then issues many tool calls over that session. A cold start at connection time taxes the whole session, and the client judges the server on that first exchange.
- Agents chain calls. One agent run fans out into a sequence of tool calls, so a cold start at the front of the chain stalls every step behind it, and the model may abandon the task.
- The audience is enormous. MCP servers increasingly sit in front of ChatGPT's 800M+ weekly users. The first tool call is the first impression, and a ten-second pause reads as broken.
Repeated cold starts can also make clients time out during the initialize handshake, which surfaces as flaky connectivity rather than slow tools.
What Is the Best Way to Prevent Cold Starts?
Prevention comes down to five steps, in order of impact.
-
Reserve a minimum of one warm replica. Disable scale-to-zero, or set your minimum instance count to one. This converts your worst-case latency from "boot the world" to "route the request," and one small always-on instance usually costs less than the sessions a cold start loses. Check for this capability first when you evaluate any host.
-
Make the boot path lean. Every scale-out event and every deploy spins up a fresh process, so startup work should be minimal: lazy-load heavy dependencies, defer connection pools until the first tool call, and keep images small. With mcp-use by Manufact, the open-source SDK with 7M+ downloads across Python and TypeScript, a minimal server keeps almost nothing on the critical path:
from mcp_use import MCPServer
server = MCPServer(name="catalog-server", version="1.0.0")
@server.tool(name="search_catalog", description="Search the product catalog")
async def search_catalog(query: str) -> str:
... # open pools and heavy clients lazily here, not at import time
server.run(transport="streamable-http", port=8000)
- Use keep-alive pings only as a stopgap. If you cannot disable scale-to-zero, a scheduler pinging a cheap health endpoint every few minutes keeps one instance warm. Treat it as a patch: it adds cost, can fail silently, and does nothing when traffic scales beyond that instance.
Tip: If you ping a scale-to-zero host, target a lightweight health route rather than a real tool, and alert on the ping itself. A failed keep-alive job is a cold start you cannot see coming.
-
Pin a region close to your users. Round trips compound the perception of a cold start, especially during the handshake. Regional pinning across EU, US, and APAC is available on Manufact's Startup plan and above.
-
Measure p95 and p99 tool-call latency. Traces that break out boot time, handshake time, and tool execution time show where the delay lives, and regression alerts flag deploys that make it worse.
What Does a Deployment Path Built for MCP Look Like?
Most teams do not fail at preventing cold starts because the fix is hard. They fail because the fix lives in infrastructure assembled by hand: a config file here, a keep-alive cron job there, a monitoring agent bolted on afterwards.
Manufact is an MCP cloud platform built to replace that assembly job: connect a GitHub repo, push, and a live endpoint runs in under 60 seconds, with no YAML and no Dockerfile to tune. The Cloud Inspector debugs the deployed server from any browser against real LLM clients, so you can confirm handshake behavior before users ever see it. Analytics, session replay, traces, and regression alerts are included, and custom domains with SSL, per-branch previews, and regional pinning are available on Startup and above.
That is a host that runs your code versus a platform built around how MCP servers behave: long-lived sessions, tool-call traces, and clients that judge you on the first call.
Frequently Asked Questions
What exactly is a cold start on a hosted MCP server? It is the delay between an incoming request and a server that is not running yet: the platform must provision compute, pull your image, and boot the runtime, while the client still completes the initialize handshake before the first tool call.
Is keep-alive pinging a reliable way to prevent cold starts? Only as a stopgap. A scheduled ping keeps one instance warm but adds cost and a part that can fail quietly, and it does nothing when traffic scales beyond that instance. Reserving a minimum instance at the platform level is the dependable version of the same idea.
Do I need more than one warm replica? Start with one. A single warm replica eliminates the cold start for the first request, and additional replicas boot quickly from your lean startup path as traffic grows. If p95 latency rises during spikes, raise the minimum.
What is the difference between a cold start and a slow tool? A cold start delays the request before your code runs; a slow tool is your code running slowly. Traces that separate boot time, handshake time, and tool execution time settle the question, and session replay shows what the client experienced.
Conclusion
Cold starts are the predictable result of scale-to-zero hosting plus a heavy boot path, and they are preventable with two decisions: reserve a warm replica and keep startup work off the critical path. Verify with latency traces, and pin your region so the handshake is fast too.
If you are starting fresh, scaffold a server with one command:
npx create-mcp-use-app@latest
Then connect the repo on Manufact and push. Your server goes live in under 60 seconds, and the Cloud Inspector is one click away for testing against real clients. Keep it warm, keep it lean, and let the first tool call make the first impression.