Get ahead
VMware offers training and certification to turbo-charge your progress.
Learn moreWe're excited to introduce Spring AI MCP, a robust Java SDK implementation of the Model Context Protocol (MCP). This new addition to the Spring AI ecosystem brings standardized AI model integration capabilities to the Java platform.
The Model Context Protocol (MCP) is an open protocol that standardizes how applications provide context to Large Language Models (LLMs). MCP provides a standardized way to connect AI models to different data sources and tools, making integration seamless and consistent. It helps you build agents and complex workflows on top of LLMs. LLMs frequently need to integrate with data and tools, and MCP provides:
At its core, MCP follows a client-server architecture where a host application can connect to multiple servers.
The Spring AI MCP implements a modular architecture with the following components:
The architecture supports a wide range of use cases, from simple file system access to complex multi-model AI interactions with database and internet connectivity.
Spring AI MCP GitHub: https://github.com/spring-projects-experimental/spring-ai-mcp
Add one of the following dependecies to your Maven project:
<dependency>
<groupId>org.springframework.experimental</groupId>
<artifactId>spring-ai-mcp-core</artifactId>
<version>0.1.0</version>
</dependency>
or
<dependency>
<groupId>org.springframework.experimental</groupId>
<artifactId>spring-ai-mcp-spring</artifactId>
<version>0.1.0</version>
</dependency>
Latter extends the spring-ai-mcp-core
with additional Spring AI abstractions, such as McpFunctionCallback
.
Add the Spring Milestones repository:
<repositories>
<repository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/libs-milestone-local</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
Explore these MCP examples in the spring-ai-examples/model-context-protocol repository:
Spring AI MCP represents a significant step forward in standardizing AI integration for Java applications. As the MCP ecosystem grows, this SDK will enable Java developers to easily connect with an expanding array of AI models and tools while maintaining consistent, reliable integration patterns.
The Spring AI MCP SDK is available now as an experimental module, licensed under Apache License 2.0. We invite the community to explore, contribute, and help shape the future of AI integration in the Java ecosystem.