Zero Labs
Industry News / AI

LangChain Was My First Love. MCP Is Who I Actually Married.

Source · Towards AI By Swarna Rao

From the publisher’s feed, collected in the ZeroLabs newsroom.

MCP is the new trend nowStandard API integrations are breaking under the weight of autonomous agents. One open protocol just changed the entire game — and most developers are still catching up.Let me say something that will make some developers uncomfortable.If you are still building AI applications the LangChain way — chaining prompts, wiring custom adapters, managing your own tool schemas for every model — you are not building for 2026. You are maintaining 2023’s solution to a problem that has already been solved better.The world moved. The infrastructure moved. And the developers who understand why are quietly building things that are a full generation ahead of everyone else.This is the article that explains exactly what changed, why it matters, and what you need to do about it.First, Let’s Talk About Why LangChain ExistedTo understand what is replacing LangChain, you need to understand what it was solving in the first place.When LangChain launched in January 2023, building with large language models was genuinely painful. There was no standard way to connect a model to your documents. There was no reliable method for chaining multiple LLM calls together. Memory management was something every team solved from scratch. Giving a model access to external tools required writing custom code for every single integration.LangChain launched with an answer: a framework that gave developers reusable abstractions for composing LLM applications. And for that moment in time, it worked. It filled a real and painful gap.The problem is that moment passed. LangChain and LlamaIndex were built for a specific moment: when LLMs were less capable and building with them required extensive scaffolding. That moment has largely passed. Better models with native tool calling, expanded context windows, and improved instruction following have made many framework abstractions unnecessary — or actively harmful to debuggability.In 2022, you needed LangChain because building a chain of prompts, tool calls, and memory management was genuinely complex without abstractions. OpenAI had no function calling. Anthropic had no tool use. Memory was handled entirely by the developer. LangChain filled a real gap. In 2026, that gap is substantially closed.And then something else happened. Something that made LangChain’s core value proposition not just weaker, but structurally obsolete for a whole category of AI applications.MCP arrived.The Real Problem LangChain Could Never Fully SolveBefore we talk about what MCP is, let’s talk about the problem it was built to fix. Because it is a problem that every team building production AI applications has run into, even if they did not know how to name it.Picture a company with an AI agent that needs to do real work. Not chat. Real work. It needs to read from a database. Write to a CRM. Check a code repository. Trigger a deployment. Pull from a knowledge base.Before MCP, here is what building that agent looked like. You wrote a custom tool definition for your database connector in OpenAI’s function calling format. Then you rewrote it in LangChain’s tool schema. Then again for Claude’s format. Then again for your internal LLM. Then you maintained all four of them in sync every time the underlying API changed.Before MCP, exposing your SaaS product to an AI model meant building custom, point-to-point API connectors for OpenAI, Anthropic, Google, and every custom LangChain wrapper your customers used.Every team was solving the same plumbing problem from scratch. Every integration was fragile. Every model upgrade risked breaking something. And as the number of tools an agent needed grew, the complexity grew exponentially — not linearly.This is the integration hell that was quietly killing production AI deployments. Not the model quality. Not the prompts. The plumbing.Enter MCP: The USB-C Moment for AILaunched by Anthropic in November 2024 and now stewarded under the Linux Foundation’s Agentic AI Foundation, the Model Context Protocol is the infrastructure making production-grade agentic AI possible.The Model Context Protocol is an open specification that standardizes how AI applications discover and interact with external data sources and tools. Think of it as USB-C for AI — one universal connector that eliminates the need for bespoke integrations between every model and every API.Stop and sit with that analogy for a second. Before USB-C, every device had its own connector. Manufacturers built cables specific to their hardware. Compatibility was a constant problem. Then one standard emerged and the entire problem evaporated. You plug anything into anything.MCP does that for AI agents and the tools they need to use.Here is the technical reality in plain language. An MCP server is a process that exposes a set of callable functions over a standardized interface. Your database becomes an MCP server. Your code repository becomes an MCP server. Your CRM, your internal knowledge base, your deployment pipeline — all MCP servers. And any AI agent that speaks MCP can now talk to all of them, using exactly the same protocol, without a single custom adapter.Any MCP-compatible agent — Claude Code, Codex, Open Code — can use any MCP server without per-agent integration code. Build once. Works everywhere.The Numbers Tell the StoryThis is not a theoretical standard that academics are debating. This is infrastructure that is already running in production at massive scale.By December 2025, Anthropic reported over 97 million monthly SDK downloads for MCP across all languages. There were over 10,000 active MCP servers in production use and hundreds of distinct AI clients integrated with MCP. Virtually every major AI platform or developer tool had some level of MCP support — from IDEs like VS Code and Cursor, to cloud services and databases, to popular LLMs like ChatGPT and Claude.To ensure long-term sustainability and neutrality, in December 2025 Anthropic donated MCP to the newly formed Agentic AI Foundation under the Linux Foundation. This move, backed by founding members like Block, OpenAI, AWS, Google, Microsoft, and more, signaled that MCP was no longer just one company’s project — it had become community-driven infrastructure for the AI age.When OpenAI, Google, Microsoft, and Anthropic all back the same open standard, that is not a trend. That is the new foundation layer. The debate about whether MCP wins is already over. The debate now is about how to build on top of it well.What MCP Actually Looks Like in PracticeEnough architecture. Let us talk about what this means when you are actually building something.Imagine you are building an AI agent for a software company. The agent’s job is to triage incoming GitHub issues — read the issue, check relevant code, look at similar past issues, propose a fix, and create a draft PR if the fix is straightforward.Without MCP, here is what the integration layer looks like. You write a GitHub tool definition. A code search tool definition. A knowledge base search tool definition. A PR creation tool definition. You wire all of these into your chosen framework. You handle authentication for each one separately. You write error handling specific to each connector. You test all of it manually. And when GitHub updates their API, you fix your custom connector.With MCP, each of those systems exposes an MCP server. Your agent connects to them through a single standardized interface. Authentication is handled at the MCP layer. Tool discovery is automatic — the agent asks the server what it can do and the server tells it. When GitHub updates their API, the MCP server maintainer updates it once and every agent using that server gets the fix automatically.In 2026, the ecosystem is large enough that production-ready MCP servers exist for most common developer tooling categories. The bottleneck is no longer the protocol itself — it is discovery, and knowing when to build versus when to find.That last sentence is significant. For most tools you need, an MCP server already exists. You do not build the plumbing anymore. You connect to it.The Architecture You Need to UnderstandThere are three components in any MCP setup and you need to understand all three clearly.The MCP Host is your AI application — the thing that has a model in it and needs to do work. Claude Code is a host. Cursor is a host. Your custom agent is a host.The MCP Server is the thing that exposes tools and data. Your database is exposed through an MCP server. Your file system, your APIs, your internal knowledge base — all MCP servers. Each one is a small, focused process that does one thing: tell the agent what tools it has available and execute those tools when called.The MCP Client is the connection layer inside the host that speaks the protocol — discovers servers, lists their capabilities, and handles the back-and-forth when the agent calls a tool.The communication between all of these happens over JSON-RPC 2.0 — a clean, well-understood messaging standard. When an agent wants to use a tool, it sends a structured call. The server executes it and sends a structured response. Everything is inspectable. Everything is debuggable. Nothing is hidden inside a framework abstraction that you have to reverse-engineer when something breaks.Before MCP, integrating an LLM with external tools meant writing custom function schemas for OpenAI’s functions parameter, re-implementing the same adapters for Claude, Gemini, and local models, and maintaining fragile prompt-engineering hacks to coerce tool usage. MCP replaces all of that with a protocol every model understands natively.The Security Problem Nobody Is Talking About Loudly EnoughHere is where this gets serious and where most tutorials stop too early.An AI agent with access to your production tools is not just powerful. It is a significant security surface. And the decisions you make at the MCP layer directly determine how exposed your systems are.The honest reality: most teams building with MCP right now are not thinking carefully enough about what they are exposing. They connect a database MCP server and give the agent read and write access to everything. They wire up a file system server with no path restrictions. They expose internal APIs without scoping what the agent is actually allowed to do.This is how you build a system that works brilliantly in a demo and causes a serious incident in production.The right approach starts with a principle called least privilege. Your agent should be able to access exactly what it needs to complete its task and nothing else. A customer support agent does not need write access to your user database. A code review agent does not need access to your billing system. Every permission you grant is a permission that can be misused — by the agent making a mistake, by a malicious input trying to manipulate the agent’s behavior, or by an attacker who finds a way to influence what the agent does.With the addition of OAuth 2.1, MCP Gateways, and formal audit support in the 2026 roadmap, MCP is crossing the enterprise threshold. Early adopters include Stripe, Vercel, and several Fortune 500 data platforms. These security primitives exist because production deployments exposed exactly these risks early.The practical checklist: every MCP server should expose only what the agent actually needs. Authentication should happen at the server level, not at the agent level. Tool calls should be logged. High-stakes actions — deleting records, sending external messages, triggering deployments — should have a human approval step built in until you have deep confidence in the agent’s reliability.Where LangChain Still Has a PlaceThis is the part where I am going to be fair, because intellectual honesty matters more than a clean narrative.LangChain is not dead. It is not useless. The abstraction layer that LangChain provides is useful for prototyping and genuinely helps with certain integration patterns.LangGraph — LangChain’s graph-based agent orchestration layer — is genuinely useful for complex multi-step workflows where you need fine-grained control over how an agent moves between states. If you need to build an agent with very specific conditional logic, human-in-the-loop approval flows, or complex branching behavior, LangGraph gives you tools to express that clearly.The problem is when teams reach for LangChain as their default starting point for everything, including the cases where it adds complexity without adding value. A 50-line script on the OpenAI SDK with two MCP servers would have done the same thing as 14 nodes in a state graph with a custom checkpointer writing to Redis. The framework should match the complexity of the problem. Most teams are using a sledgehammer on problems that need a scalpel.Agent SDKs represent the new philosophy: narrow, composable, transparent tools focused on agent-specific problems rather than abstracting everything. Start with the raw SDK and MCP. Reach for a framework only when you have a specific problem the framework solves better.The Shift That Is Already Happening in Engineering TeamsIn 2024, we were all prompt engineers. In 2025, we became RAG architects. In 2026 the engineers who matter are the ones who understand protocol-level AI integration — how agents discover tools, how they call them safely, how you build systems that are observable, auditable, and reliable at scale.The conversation a year ago was “can agents work?” The conversation now is “how do we operate reliable, observable, governable agent systems at scale?” Companies like Lyft, Cisco, Toyota, and LATAM are already running large-scale production deployments.The teams moving fastest are not the ones who found the best framework. They are the ones who understood the protocol layer first, kept their stack as simple as possible, and built observability into everything from day one.The developers who left LangChain for raw Claude SDK calls are not coming back. Not because LangChain is terrible. Because they found that understanding the protocol directly made their systems simpler, faster to debug, and easier to extend. The abstraction layer was solving a problem that no longer existed.How to Start Building With MCP TodayIf you want to go from reading this to actually building, here is the fastest path.Install the MCP SDK for your language. Python and TypeScript both have first-class support. The official repository at github.com/modelcontextprotocol has everything you need including reference implementations and working examples.Start by connecting to an existing MCP server before you build your own. GitHub, Postgres, file systems, and web search all have community-maintained MCP servers. Wire one of these up to a Claude or OpenAI API call and watch the agent use it. That first working interaction where your agent calls a real tool through the protocol will make everything click.Then build a simple MCP server yourself. Pick one internal system your team uses — a database, an API, a knowledge base — and expose three or four of its most useful operations as MCP tools. Keep it small. Make it work reliably. Add logging so you can see every tool call and its result.From that foundation, everything else follows. More tools. More servers. More complex agents. But all built on a protocol foundation that is clean, standard, and not going anywhere.The Honest SummaryThe infrastructure layer for AI agents has standardized. The plumbing problem that consumed enormous engineering time in 2023 and 2024 is solved. The question now is not what protocol to use — that debate is over. The question is how quickly you build the skills to work at this layer fluently.MCP is not a framework you adopt. It is a protocol you understand. Once you understand it, the way you think about AI system design changes permanently. You stop thinking about which framework wraps which model. You start thinking about which tools your agent needs, how those tools are exposed, how calls are secured, and how failures are handled.That is what serious AI engineering looks like in 2026. The developers who get there first are going to build things that everyone else will spend the next two years trying to catch up to.The protocol is open. The documentation is public. The only thing between you and that understanding is whether you decide to go get it.If this connected with something you have been trying to figure out in your own stack, share it with your team. The conversation in the comments is usually where the most useful specifics come out — what are you building, and what integration problems are you running into?LangChain Was My First Love. MCP Is Who I Actually Married. was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.