LangChain / LlamaIndex / Mosaic AI vs MCP — Framework vs Protocol
As of 2026-11-14
LangChain / LlamaIndex / Mosaic AI vs MCP: what is the difference?
Confusing an agent framework (LangChain, LlamaIndex, Mosaic AI) with a protocol (MCP) is a common agent-architecture mistake: the framework is how you build the agent and can be swapped project by project, while the tool contract, exposed over MCP, is shared by every agent that calls it and is far more expensive to change.
What this comparison actually is
LangChain (first released in Python in October 2022, version 0.0.1 on PyPI on 25 October 2022, with a JavaScript library following in early 2023 — PyPI), LlamaIndex (launched as GPT Index in November 2022, first PyPI release on 22 November 2022, and published as llama-index from February 2023 — PyPI, GitHub) and Databricks' Mosaic AI agent tooling (built on MosaicML, whose acquisition Databricks completed on 19 July 2023 — Databricks; Databricks now documents its agent developer platform as Agent Bricks — Databricks docs) are agent application frameworks: opinionated development kits that bundle tool calling, prompt orchestration, memory, retrieval, evaluation and tracing in one developer surface. The Model Context Protocol (MCP), published by Anthropic on 25 November 2024 (Anthropic), is something else: a communication protocol, a contract between an agent and a catalogue of tools, with no opinion about how the agent itself is built. Treating them as competing options is a common architecture mistake. They sit at different layers, and most production estates need both.
How the two layers fit together
The framework is where you build the agent: the prompt graph that decides the next step, the memory of earlier turns, the retrieval pipeline and the evaluation harness. MCP is how the agent reaches tools: a Datasphere query tool, a document search tool, a workflow trigger, callable whichever framework assembled the reasoning loop.
Why it matters
- Porting one agent from LangChain to LlamaIndex touches one team's code; changing the calling convention of a tool catalogue touches every consuming agent at once, and each must be re-tested.
- A LangChain agent can be an MCP client (MultiServerMCPClient), and a LangChain tool can be exposed as an MCP server tool (to_fastmcp), so non-LangChain agents can call it.
- A Datasphere tool written against LangChain's BaseTool stays tied to that framework; built as an MCP server, it is called identically by Joule agent extensions, Copilot Studio or Claude Code.
Key points
- Categories — LangChain, LlamaIndex and Mosaic AI are agent frameworks (how you build the agent); MCP is a communication protocol (how the agent reaches tools).
- Complementary, not competing — a LangChain agent can be an MCP client; a LangChain tool can be exposed as an MCP server tool, callable from Joule or any other MCP host.
- Adoption signals — langchain-mcp-adapters (maintained by LangChain, first release 18 Feb 2025); llama-index-tools-mcp (14 Feb 2025); Databricks Unity Gateway governs MCP services (API out of preview since 16 Sep 2026).
- Asymmetric change cost — porting one agent between frameworks touches one team's code; changing a tool catalogue's calling convention touches every consuming agent at once.
- SAP analytics rule — build the tool catalogue as MCP first; pick the framework second on developer ergonomics, evaluation tooling and team skills.
- Lock-in asymmetry — a BaseTool-native tool can be wrapped (to_fastmcp) but stays tied to the framework's dependencies and releases; an MCP server is consumed by Joule, Copilot Studio, Claude Code and LangChain agents without modification.
- Governance belongs outside the framework — access control, versioning, cost metering and audit sit in the MCP server and the governance layer above it (SAP AI Agent Hub for inventory, SAP Enterprise AI Gateway for MCP runtime policy, planned Q1 2027).
- Evaluation tooling is a framework differentiator — LangSmith (LangChain), LLM-judged evaluators (LlamaIndex), MLflow tracing and LLM judges (Databricks); pick the harness that matches the team's debugging workflow.
- Multi-framework estates are common — Joule, a LangChain custom agent and Copilot Studio in one SAP landscape; MCP is the tool layer all three can share (Copilot Studio MCP GA since 29 May 2025).
- Rule of thumb, not a benchmark — once a framework-locked catalogue serves several tools and more than one agent host, move it to MCP before adding more; integration work grows with tools × hosts.
Terms used on this page
- Agent framework
- Opinionated SDK bundling tool calling, prompt orchestration, memory, retrieval, evaluation and tracing for agent application development; LangChain, LlamaIndex and Databricks' Mosaic AI tooling are examples.
- Communication protocol
- Contract between two software components specifying message format, discovery and exchange rules; MCP is the agent-to-tool protocol, A2A (Agent2Agent) the agent-to-agent one.
- MCP (Model Context Protocol)
- Open protocol published by Anthropic on 25 November 2024 that standardises how agents discover and invoke tools; framework-agnostic — an agent built in any framework can call any MCP server.
- Unity Gateway (Databricks)
- Databricks governance layer for model services and MCP services; its API and developer tools became generally available on 16 September 2026, and it fronts Databricks-provided MCP services such as Genie One (GA 25 September 2026).
- BaseTool lock-in
- Anti-pattern of implementing a tool directly against a framework's class hierarchy (e.g. LangChain BaseTool) rather than as an MCP server; an adapter can wrap it, but contract, dependencies and releases stay tied to the framework, and integration work grows with tools × hosts.
- Server-prefixed tool naming (MCP)
- Practice in which a client or proxy aggregating tools from several MCP servers prefixes each tool name with a server identifier (e.g. datasphere_query vs crm_query) to avoid collisions; a disambiguation convention, not a governance capability.
- LangSmith
- LangChain's platform for tracing, monitoring and evaluating LLM applications; prompt regression tests and trace replay are its main draw for teams choosing LangChain.
- A2A (Agent2Agent protocol)
- Protocol for calls between agents, complementing MCP's agent-to-tool calls; SAP's agent gateway lets third-party agents invoke Joule Agents over A2A (inbound, generally available in phases; bidirectional not yet).
Sources
- Databricks — Databricks completes acquisition of MosaicML (19 Jul 2023)
- PyPI — langchain release history (0.0.1, 25 Oct 2022)
- PyPI — gpt-index release history (first release 22 Nov 2022)
- LangChain — langchain-mcp-adapters (MultiServerMCPClient, to_fastmcp)
- LlamaIndex Docs — MCP tools API reference (BasicMCPClient, McpToolSpec, workflow_as_mcp)
- LlamaIndex Docs — Evaluating (faithfulness, context and answer relevancy)
- Databricks Docs — Databricks managed MCP servers (Unity Gateway MCP services)
- Databricks — September 2026 platform release notes (Unity Gateway API GA 16 Sep, Genie One MCP GA 25 Sep, Agent Bricks CLI Beta 29 Sep)
- Databricks Docs — Agent Bricks: build generative AI apps and agents
- Microsoft Copilot Blog — MCP is now generally available in Microsoft Copilot Studio (29 May 2025)
- Microsoft Learn — Extend your agent with Model Context Protocol (Copilot Studio)
- Snowflake Docs — Snowflake-managed MCP server
- Anthropic — Introducing the Model Context Protocol (25 Nov 2024)
- Model Context Protocol — Key changes, revision 2025-06-18 (elicitation)
- Model Context Protocol — Key changes, revision 2026-07-28 (stateless, MRTR, Tasks extension)
- Model Context Protocol — Tasks extension overview
- Model Context Protocol — Skills extension overview
- Model Context Protocol — Python SDK
- NVIDIA Technical Blog — Add Runtime Controls to AI Agents with NVIDIA OpenShell (28 Sep 2026)
- Google Cloud Blog — Google Cloud CLI remote MCP server in preview (1 Oct 2026)
- SAP Business AI — official product page
Full card with the Consultant plan — €19.90/month. What the full card adds: the full decision framework · the SAP vs Snowflake / Databricks / Fabric comparison · the common pitfalls and their fix · the cheat sheet · the architecture schemas · the code blocks · the facts worth quoting.
Open missions
56 live roles and contracts in SAP AI & Joule right now — see the SAP AI & Joule missions · freelance SAP contracts.