MCP Directory
Back

java-sdk

by modelcontextprotocol · Java · ★ 3,388

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

Install

git clone https://github.com/modelcontextprotocol/java-sdk.git

Claude Desktop config

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "java-sdk": {
      "command": "npx",
      "args": [
        "-y",
        "github:modelcontextprotocol/java-sdk"
      ]
    }
  }
}

From the README

[](https://opensource.org/license/MIT) [](https://github.com/modelcontextprotocol/java-sdk/actions/workflows/publish-snapshot.yml) [](https://central.sonatype.com/artifact/io.modelcontextprotocol.sdk/mcp) [](https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html) A set of projects that provide Java SDK integration for the [Model Context Protocol](https://modelcontextprotocol.io/docs/concepts/architecture). This SDK enables Java applications to interact with AI models and tools through a standardized interface, supporting both synchronous and asynchronous communication p…
Read full README on GitHub →

💡 Need a managed MCP host?

Try Claude Pro for the smoothest MCP experience, or browse our cloud-hosted servers.

Related developer tools servers