The MCP Java SDK provides tools for Java applications to interact with AI models using the Model Context Protocol, offering standardized communication and Spring Boot integration for client and server applications.

1,245
116

MCP Java SDK

Build Status

The MCP Java SDK provides Java integration for the Model Context Protocol, enabling Java applications to interact with AI models and tools through a standardized interface, supporting synchronous and asynchronous communication.

📚 Reference Documentation

MCP Java SDK documentation

Comprehensive guides and SDK API documentation are available at the MCP Java SDK Reference Documentation.

Spring AI MCP documentation

Spring AI MCP extends the MCP Java SDK with Spring Boot integration, offering client and server starters. Use Spring Initializer to bootstrap AI applications with MCP support.

Development

Building from Source

./mvnw clean install -DskipTests

Running Tests

Docker and npx are required to run the tests.

./mvnw test

Contributing

Contributions are welcome through forking, creating a feature branch, and submitting a Pull Request.

Team

  • Christian Tzolov
  • Dariusz Jędrzejczyk

Links

License

This project is licensed under the MIT License.

Repository

MO
modelcontextprotocol

modelcontextprotocol/java-sdk

Created

January 20, 2025

Updated

March 28, 2025

Language

Java

Category

AI