Spring AI 2.0.0-M3: Native MCP Integration & Interoperability
Unifying the AI agent ecosystem through the Model Context Protocol.
The Java ecosystem continues its rapid ascent into the AI stratosphere with the release of Spring AI 2.0.0-M3. While previous milestones focused on foundational abstractions for LLMs and Vector Stores, this third milestone introduces a game-changer: native support for the Model Context Protocol (MCP). By adopting this open standard, Spring AI is positioning itself as the premier framework for building interoperable, enterprise-grade AI agents in Java.
What is the Model Context Protocol (MCP)?
MCP is an open standard, originally proposed by Anthropic and quickly adopted by the broader industry, designed to solve the "tooling silo" problem in AI development. Traditionally, if you wanted an AI agent to access a specific data source (like a SQL database, a Slack channel, or a Jira board), you had to write a custom "tool" or "plugin" specifically for that framework. MCP replaces this fragmented approach with a universal interface.
An MCP Server exposes resources and tools in a standardized format, while an MCP Client (like a Spring AI application) can consume those tools regardless of the underlying model being used. This decoupling allows developers to build a library of tools once and use them across any MCP-compliant AI system.
Native Integration in Spring AI
In 2.0.0-M3, MCP is a first-class citizen. Spring AI now provides an McpClient abstraction that can automatically discover and bind tools from an MCP Server to a ChatModel. This means you can now integrate sophisticated data sources into your AI workflows with just a few lines of configuration.
For example, instead of manually writing Java code to query a legacy ERP system, you can connect to an MCP Server that already exposes that ERP's data. Spring AI will handle the protocol handshake, tool discovery, and the conversion of ERP data into a format the LLM understands.
True Model Interoperability
One of the biggest advantages of the MCP integration is true model interoperability. Because the tools are defined at the protocol level, you can switch your underlying LLM from GPT-4o to Claude 4.6 or an open-source Llama 4 model without changing a single line of your tool-access logic. The McpClient ensures that the "context" and "tools" are presented to the new model in a way it can immediately utilize.
Building Sophisticated Agentic Workflows
Spring AI 2.0.0-M3 also enhances its Advisor API to be MCP-aware. Advisors can now dynamically inject MCP resources into the conversation based on the user's intent. If a user asks a question about recent sales figures, an MCP-aware Advisor can automatically pull the relevant report from an MCP-connected CRM, providing the model with fresh, grounded data before it even attempts to answer.
The Future of AI in the Enterprise
For enterprise developers, the combination of Spring's robust ecosystem and MCP's interoperability is a winning formula. It allows companies to build AI agents that are not locked into a single provider and can easily integrate with their existing, complex data landscapes. Spring AI 2.0.0-M3 isn't just a version update; it's a statement that the future of enterprise AI is open, standardized, and built on JVM.
Get Started with M3
Add the milestone repository and the new MCP dependency to your Maven/Gradle project:
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-mcp-spring-boot-starter</artifactId>
</dependency>
