The practitioner's guide to building and running Model Context Protocol servers in production. Twelve chapters drawn from shipping fourteen @yawlabs/* servers. PDF + EPUB + free updates. $39.
Fourteen MCP servers in production at Yaw Labs. tailscale-mcp taught us that the LLM-vs-human identity question has no good default. aws-mcp taught us that a tool list can grow to 40,000 tokens before anyone notices. npmjs-mcp taught us that "auth" is four different problems wearing the same coat. lemonsqueezy-mcp taught us that errors a model can act on are a different art form from errors a human reads.
This book is what we wrote down between server #2 and server #14, when the same surprises kept landing in different forms and we got tired of solving them from scratch.
Twelve chapters on what the spec doesn't tell you. The protocol is the easy part; the hard part is the one you only learn by running these things in production for six months and watching what breaks.
PDF + EPUB. Free updates as the spec evolves. Read Chapter 1 free. Secure checkout.
Each of these is a thing one of the @yawlabs/* servers has actually hit -- not a hypothetical. The book gives you the schema change, throw discipline, or hosting decision that catches the next one before it reaches a customer.
aws-mcp ships 200 tools; the model degrades on selection; the trace shows it grabbing the wrong one. Chapter 5 is the longest chapter for a reason. Chapter 5.npm init through npm publish. Every chapter from here refers back.tailscale-mcp (the first one), npmjs-mcp (auth-shaped), aws-mcp (schema-shaped), lemonsqueezy-mcp (errors and money). Architecture, surprises, what a v2 would look like.You ship code for a living. You have read the MCP spec and shipped at least one server. You know what tools/list and notifications/initialized are without looking them up. You want to know why your aws-mcp tool list is 40,000 tokens and what to do about it.
You're somewhere between mid and senior on the IC ladder, or a tech lead deciding how to invest your team's MCP work.
Not for: spec walkthroughs (modelcontextprotocol.io does that better), "what is MCP" introductions, or vendor-neutral tool surveys.
MCP in Production is Volume I of the Yaw Labs Production Series - the builder's view of Model Context Protocol. Volume II, Claude Code in Production, is the operator's view: running the agent that calls these servers. Volume III, Semantic Search in Production, is the retrieval substrate the agent reaches into. Volume IV, A2A in Production, is what happens when one agent becomes a fleet.
@yawlabs/* server repositories the book references.The spec. MCP is a multi-client protocol and the book treats it that way -- the server you ship runs against Claude, Cursor, Cline, and anything else that speaks the protocol. Client-specific quirks (Claude's tool-list size sensitivity, Cursor's transport preferences) are noted at the point where they constrain a server-side decision.
Each chapter pins the spec version it was written against, and updates ship as the spec moves. The protocol has been moving steadily; the disciplines (schema design, throw discipline, the four auth patterns, the testing harness) survive minor-version churn. When a load-bearing change lands, the affected chapter gets a revision and you get the update.
No. This book is the server-side view -- you're shipping the tools, not operating the agent that calls them. Volume II, Claude Code in Production, covers the operator's perspective if you want both halves.
No. Local and internal MCP servers are the larger use case -- the LLM-vs-human auth question, schema design, throw discipline, and testing patterns apply identically whether the server runs on your laptop, in your VPC, or as a published @yawlabs/* package. The hosting chapter covers all three deployment shapes.
You enter your GitHub username at checkout. The order webhook fires an invite to that user, adding you as a collaborator to the private companion repo. You should see an email from GitHub with the accept-invitation link within a few minutes. If you don't get the invite within an hour, email contact@yaw.sh with the order ID and the GitHub username you want invited.
Buy MCP in Production
Twelve chapters. PDF + EPUB. Free updates. $39 one-time, secure checkout.
Companion volumes: Claude Code in Production, Semantic Search in Production, and A2A in Production.
Built on the same patterns as the mcp.hosting platform and the @yawlabs/mcph CLI.