java-sdk

java-sdk

Official Java SDK for Model Context Protocol, supporting both synchronous and asynchronous communication.

MCPDevOpen sourceJavaMCPSpring AI
Type
MCP
Transport
http
Open source
Yes
GitHub Stars
★ 3.5k
Source
mcp-github

Overview

The MCP Java SDK is a set of projects that provide Java integration for the Model Context Protocol. This SDK enables Java applications to interact with AI models and tools through standardized interfaces, supporting both synchronous and asynchronous communication patterns. It also offers Spring Boot integration, simplifying the implementation of MCP clients and servers. Ideal for developers looking to integrate AI capabilities into Java applications.

Capabilities

  • Supports synchronous and asynchronous communication
  • Provides Spring Boot integration
  • Supports OAuth 2.0 and API Key authentication
  • Offers annotation-based method handling

Use cases

AI model integration in Java applicationsBuilding MCP clients and serversExtending AI functionality in Spring Boot projects

Setup

Requires: Java 17+Dockernpx
Install using Maven: `mvn clean install -DskipTests`

This information was compiled by AI from public sources and may contain inaccuracies — please refer to the source.

FAQ

How to run tests?

Ensure Docker and npx are installed, then run `./mvnw test`.

How to run consistency tests?

Please refer to the detailed instructions in the README.

Related skills