java-sdk
Official Java SDK for Model Context Protocol, supporting both synchronous and asynchronous communication.
- Type
- MCP
- Transport
- http
- Open source
- Yes
- GitHub Stars
- ★ 3.5k
- Source
- mcp-github
- Repository
- github.com/modelcontextprotocol/java-sdk
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
Setup
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
gemini-cli
Gemini CLI is an open-source AI agent that brings Gemini's powerful capabilities directly into the terminal.
private-gpt
Provides a complete API layer for local models, supporting RAG, skills, tools, and more.
planning-with-files
File-based persistent planning skill, ideal for AI coding agents and long-running tasks.
scientific-agent-skills
Transform any AI agent into a scientific assistant with 147 ready-to-use research skills.
susi_alexa_skill
A skill that enables question-and-answer interactions between Alexa and Susi AI.
claude-context
Provides code search capabilities for Claude Code, turning the entire codebase into context.