The official Java SDK for Model Context Protocol servers and clients. Maintained in collaboration with Spring AI
Quick Install
Copy the config for your editor. Some servers may need additional setup — check the README.
Add to claude_desktop_config.json:
{
"mcpServers": {
"java-sdk": {
"command": "npx",
"args": [
"-y",
"modelcontextprotocol/java-sdk"
]
}
}
}
Run in terminal:
claude mcp add java-sdk npx -y modelcontextprotocol/java-sdk
Add to .cursor/mcp.json:
{
"mcpServers": {
"java-sdk": {
"command": "npx",
"args": [
"-y",
"modelcontextprotocol/java-sdk"
]
}
}
}