MCP ExplorerExplorer

Java SDK

1848 MIT
FreeCommunity
AI Systems
The official Java SDK for Model Context Protocol servers and clients. Maintained in collaboration with Spring AI

Overview

What is Java SDK

The MCP Java SDK is a set of Java projects designed to facilitate integration with the Model Context Protocol, enabling standardized interaction with AI models and tools. It supports both synchronous and asynchronous communication, making it suitable for various application requirements.

Use cases

Use cases for the MCP Java SDK include building applications that require seamless interaction with AI models, integrating AI tools within Java-based systems, and creating both client and server applications that adhere to the Model Context Protocol principles.

How to use

To use the MCP Java SDK, developers can include the SDK as a dependency in their Java projects and utilize the provided functionalities to interact with MCP servers. The SDK offers comprehensive documentation, including guides on setting up a client or server implementation.

Key features

Key features of the MCP Java SDK include support for both synchronous and asynchronous communication patterns, a modular architecture for easy integration, and robust documentation that aids developers in understanding and utilizing the SDK effectively.

Where to use

The MCP Java SDK can be used in various applications including enterprise systems requiring AI functionalities, microservices architectures needing standardized AI tool interactions, and any Java application that aims to leverage AI models efficiently.

Content

MCP Java SDK

Build Status

A set of projects that provide Java SDK integration for the Model Context Protocol.
This SDK enables Java applications to interact with AI models and tools through a standardized interface, supporting both synchronous and asynchronous communication patterns.

📚 Reference Documentation

MCP Java SDK documentation

For comprehensive guides and SDK API documentation

Spring AI MCP documentation

Spring AI MCP extends the MCP Java SDK with Spring Boot integration, providing both client and server starters. Bootstrap your AI applications with MCP support using Spring Initializer.

Development

Building from Source

./mvnw clean install -DskipTests

Running Tests

To run the tests you have to pre-install Docker and npx.

./mvnw test

Contributing

Contributions are welcome!
Please follow the Contributing Guidelines.

Team

  • Christian Tzolov
  • Dariusz Jędrzejczyk

Links

License

This project is licensed under the MIT License.

Tools

No tools

Comments