This section takes a server from your machine to somewhere clients can reach it. frontmcp build turns one @FrontMcp entry file into what a platform runs: a Node process, on a machine or in Docker; a function for Vercel or AWS Lambda; or a Cloudflare Worker. @frontmcp/edge runs a server on Workers without that build step. The rest of the section covers where the server keeps its state between requests, running several instances behind a load balancer, the health checks and metrics an orchestrator reads, what FrontMCP does at the HTTP layer, and how MCP clients connect. It's for whoever ships and runs a server. Start with Production build; Deploying Your Server takes one server from frontmcp build to a connected client, step by step.
frontmcp build and its targets: what each one writes, what it bundles and what it leaves in node_modules, how the result runs, which endpoint path it serves, and when it's in production mode
The node build on a machine, in a Docker image, with Redis in Docker Compose, behind nginx, or on a Unix socket: what it needs, the environment it reads, and how it stops
The vercel target: the files it writes, the vercel.json it makes, what the function serves, when it runs in production, and sessions in Vercel KV or Upstash
The cloudflare target: the entry and wrangler.toml it writes, secrets and bindings, when the Worker is in production, and the storage it takes and refuses
createEdgeMcp(): a server on Cloudflare Workers from a plain configuration, bundled by wrangler with no frontmcp build, with sessions in a Durable Object and a managed mode
A server inside a web page or a Web Worker: the SDK's browser build, the entry points that never listen, what needs Node, keys in IndexedDB or localStorage, and calling a model from the page
The redis option: what FrontMCP keeps in Redis and under which keys, how long sessions last, what doesn't use it, and what happens when Redis can't be reached
Several instances behind a load balancer: what they must share, how an older client's session moves between them through Redis, machine ids, and distributed mode
What /healthz, /readyz and /metrics answer on each runtime, and how to point container health checks, Kubernetes probes, load balancers and Prometheus at them
The security headers FrontMCP sends and how to turn on HSTS and a CSP, bind address and host checks, body size limits, the endpoints the Node server exposes, and the startup audit
Clients that connect by URL over Streamable HTTP, start the server over stdio, or use a Unix socket; one local server shared between a client's sessions; which entries push events into a Claude Code session; client snippets from the CLI; and MCP Bundles
The reporting download includes a pinned manifest/lockfile, complete server registration, tests and Node/Vercel build commands. It uses synthetic records and credentials. Configure real identity, secrets and persistence before exposing data.
Target
Artifact/runtime
Persistence/background decision
Endpoint verification
Node or Docker
Long-running Node server
Durable application store; worker lifecycle
Health plus permitted/refused MCP calls
Vercel
Node function in .vercel/output
Shared state where needed; no assumption work continues after response
Inspect function output, then preview deploy-and-call
AWS Lambda
Lambda handler
Duration, external state and durable jobs
SAM/local checks, then actual invocation
Cloudflare
Worker bundle and bindings
Edge-compatible dependencies and storage bindings
Wrangler/local checks, then actual Worker requests
This starter is locally checked; it does not claim dated deployments to providers. Record target, configuration, date and sanitized results when you deploy. Keep the target references above as the source for exact options.