MCP Directory
Back

java-sdk

by modelcontextprotocol · Java · ★ 3,497

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

Auto-generated from the repo's primary language — check the repo's own README for its exact install instructions.

Claude Desktop config

A starting point for your claude_desktop_config.json (auto-generated — the repo's README may specify a published package name or required env vars):

{
  "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 →

Related other servers