Latest / In Prod. / Ditch the MCP Server
Transcript
- 0:00Alessandro: Your LLM doesn't need an entire JSON-RPC server just to query PostgreSQL.
- 0:05Alessandro: This is In Prod. One tech story a day, and the call I'd actually make.
- 0:12Alessandro: It's Monday, twenty-first of September, twenty twenty-six. Today, Model Context Protocol is cluttering systems. Here is why you should strip it out.
- 0:22Alessandro: Engineers are pushing the Model Context Protocol, or MCP, straight into production stacks. Originally designed by Anthropic as an open standard for connecting language models to external data sources, it relies on structured JSON-RPC messages over standard input or Server-Sent Events. Teams build bespoke microservices for every internal database, log drain, and third-party API just so an agent can fetch state. Instead of simple function calls, you now manage distinct protocol wrappers across your cluster.
- 0:55Alessandro: This pattern creates severe operational bloat. You added an extra network hop, arbitrary serialization overhead, and a un-monitored protocol wrapper to every integration. Authentication becomes a complete mess because token delegation across JSON-RPC boundaries rarely aligns with your standard IAM policies. When an agent hallucination triggers an infinite loop, your on-call engineer gets woken up by cascading timeouts instead of a clean, isolated stack trace.
- 1:28Alessandro: Here is the call: deprecate isolated MCP servers for core internal services, and revert to deterministic SDK function tools. Keep the protocol strictly at the client edge if you serve end-user plugins, but ban it inside your backend core. First trade-off: velocity. You lose the magic plugin ecosystem, but you gain instantaneous local debugging without mocking custom protocol transport layers. Second trade-off: security. You give up dynamic runtime tool discovery, but your security team can actually audit explicit, statically-typed function bindings in code reviews. Third trade-off: cost. You write twenty lines of boilerplate native wrapper code per database, but you eliminate the compute waste of maintaining dozens of idle sidecar processes running node runtimes. If an integration does not require dynamic third-party ecosystem compatibility, do not give it a web server. Kill the wrapper and import the library directly.
- 2:36Alessandro: The failure mode you are ignoring is context exhaustion. MCP servers love returning massive, unparsed payload dumps containing entire schema definitions and raw JSON blobs. Your agent swallows these huge responses, blows past its token budget in three turns, and silently drops early conversation memory. You end up paying tenfold for garbage output while hunting for mysterious context truncation bugs.
- 3:00Alessandro: Stop deploying web servers when a plain function import will do.
- 3:04Alessandro: Rip out internal MCP sidecars and stick to native, statically-typed code tools. If you would call it differently, tell me.
- 3:15Alessandro: If today's call was useful, follow In Prod. in your podcast app so you do not miss tomorrow's episode.
- 3:21Alessandro: Same time tomorrow. This episode was produced by an autonomous pipeline. The voice is mine, synthesised from a reference recording.