java-sdk MCP工具 是 AI Skill Hub 本期精选MCP工具之一。已获得 3.4k 颗 GitHub Star,综合评分 8.5 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。
Model Context Protocol的官方Java实现SDK,用于构建MCP服务器和客户端。支持Java开发者快速集成MCP协议,适合构建AI应用、LLM集成系统的Java后端开发者使用。
java-sdk MCP工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
Model Context Protocol的官方Java实现SDK,用于构建MCP服务器和客户端。支持Java开发者快速集成MCP协议,适合构建AI应用、LLM集成系统的Java后端开发者使用。
java-sdk MCP工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/modelcontextprotocol/java-sdk
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"java-sdk-mcp--": {
"command": "npx",
"args": ["-y", "java-sdk"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 java-sdk MCP工具 执行以下任务... Claude: [自动调用 java-sdk MCP工具 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"java-sdk_mcp__": {
"command": "npx",
"args": ["-y", "java-sdk"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
Building a general-purpose MCP Java SDK requires making technology decisions in areas where the JDK provides limited or no support. The Java ecosystem is powerful but fragmented: multiple valid approaches exist, each with strong communities. Our goal is not to prescribe "the one true way," but to provide a reference implementation of the MCP specification that is:
./mvnw clean install -DskipTests
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.
#### 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. The MCP Annotations - provides annotation-based method handling for MCP servers and clients in Java. The MCP Security - provides comprehensive OAuth 2.0 and API key-based security support for Model Context Protocol implementations in Spring AI. Bootstrap your AI applications with MCP support using Spring Initializer.
The SDK is organized into modules to separate concerns and allow adopters to bring in only what they need: mcp-bom – Dependency versions mcp-core – Reference implementation (STDIO, JDK HttpClient, Servlet), JSON binding interface definitions mcp-json-jackson2 – Jackson 2 implementation of JSON binding mcp-json-jackson3 – Jackson 3 implementation of JSON binding mcp – Convenience bundle (core + Jackson 3) mcp-test – Shared testing utilities
Spring integrations (WebClient, WebFlux, WebMVC) are now part of Spring AI 2.0+ (group org.springframework.ai).
For example, a minimal adopter may depend only on mcp (core + Jackson), while a Spring-based application can use the Spring AI mcp-spring-webflux or mcp-spring-webmvc artifacts for deeper framework integration.
Additionally, mcp-test contains integration tests for mcp-core. mcp-core needs a JSON implementation to run full integration tests. Implementations such as mcp-json-jackson3, depend on mcp-core, and therefore cannot be imported in mcp-core for tests. Instead, all integration tests that need a JSON implementation are now in mcp-test, and use jackson3 by default. A jackson2 maven profile allows to run integration tests with Jackson 2, like so:
./mvnw -pl mcp-test -am -Pjackson2 test
官方维护的成熟SDK,3.4k星标认可度高。作为MCP生态核心组件,Java开发者必备工具,可靠性强。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
经综合评估,java-sdk MCP工具 在MCP工具赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | java-sdk |
| 原始描述 | 开源MCP工具:The official Java SDK for Model Context Protocol servers and clients. Maintained。⭐3.4k · Java |
| Topics | MCP协议Java SDK模型上下文AI集成官方维护 |
| GitHub | https://github.com/modelcontextprotocol/java-sdk |
| License | MIT |
| 语言 | Java |
收录时间:2026-05-14 · 更新时间:2026-05-16 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端