modelcontextprotocol/java-sdk

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

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 34 minutes ago
Added to GitGenius on September 18th, 2026
Created on January 20th, 2025
Open Issues & Pull Requests: 270 (+0)
GitHub issues: Enabled
Number of forks: 1,140
Total Stargazers: 3,703 (+0)
Total Subscribers: 81 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 5.9 days
Mean response time: 55.0 days
90th percentile: 224.7 days
Tracked items: 437

Most active contributors

Sign in to see contributor activity.

How this project is maintained

About 11% of issues opened in the past year have never received a reply. 100% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. 38% of tracked open issues have had no activity in three months. 60% of issues opened in the past year have been closed, leaving a working backlog. Three people close 84% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 113
New in 7 days: 2
Closed in 7 days: 3
Avg open age: 241 days
Stale 30+ days: 88
Stale 90+ days: 50

Recent activity

Opened in 7 days: 1
Closed in 7 days: 3
Comments in 7 days: 0
Events in 7 days: 6

Top labels

  • enhancement (128)
  • bug (66)
  • P2 (57)
  • waiting for user (50)
  • P1 (41)
  • P3 (41)
  • wontfix (33)
  • question (32)

Detailed Description

The MCP Java SDK is an official Java SDK for implementing Model Context Protocol servers and clients. It enables Java applications to interact with AI models and tools through a standardized interface, supporting both synchronous and asynchronous communication patterns. The SDK provides core abstractions for building MCP-compliant servers and clients that can communicate with each other following the Model Context Protocol specification.

The tool solves the problem of integrating Java applications into the Model Context Protocol ecosystem. It abstracts away the complexity of implementing the protocol by providing ready-made components for both client and server roles. Developers can use the SDK to either build MCP servers that expose tools and resources to AI models, or build MCP clients that consume services from other MCP servers, without needing to implement the protocol details themselves.

Java developers building AI-integrated applications should choose this SDK if they need native Java support for the Model Context Protocol. It suits projects that require both client and server capabilities within the same codebase, or teams already invested in the Java ecosystem. Spring Boot developers have an additional advantage through Spring AI integration, which provides boot starters and annotation-based method handling that reduce boilerplate configuration. The tool requires Java 17 or later.

The project maintains active conformance validation against the official MCP test suite, with server implementations passing all tests and client implementations passing the majority of checks. Development includes comprehensive documentation covering architecture, client usage, and server implementation. The codebase is validated through automated testing that requires Docker and Node.js tooling, indicating a mature testing infrastructure. Collaboration with Spring AI brings additional ecosystem integration and security features including OAuth 2.0 and API key support.