Code librariesReviewed · modelcontextprotocol

MCP Java SDK

MCP Java SDK is a library for Java developers connecting AI applications to tools, but server access control needs a separate implementation. It provides client and server support, synchronous and asynchronous programming, and transport options for local processes and HTTP connections.

Researched 14 Nov 2026

In short.

MCP Java SDK is a client and server library for Java developers adding connections between AI applications and tools, but applications must provide server authorization. The README specifies Java 17+, a Reactor-based core with a synchronous facade, pluggable JSON serialization, and JDK HttpClient and Servlet transports. Its reported conformance results include a fully passing server suite (40/40) and incomplete client and Spring authorization results. No code or commands were executed, and operational performance and security have not been independently assessed.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage is limited to the supplied README.md from [https://github.com/modelcontextprotocol/java-sdk/blob/main/README.md], fixed at commit 79c74be6cd72cc68bca777b57678f40efc828111, and the accompanying LICENSE notice at the same revision. LICENSE is related notice material outside the single selected README file. Linked documentation, implementation code, Maven artifacts, dependency metadata and detailed validation results are excluded. No commands or code were executed. Runtime behavior, security, performance, complete interoperability and operating costs remain unverified.

The overview

Identity

MCP Java SDK provides Java implementations of the Model Context Protocol, a standardized way for applications to communicate with MCP servers that expose tools. It supports both applications consuming servers and applications exposing MCP endpoints. The repository is [https://github.com/modelcontextprotocol/java-sdk].

The README presents it as a reference implementation organized into modules. An exact SDK release number is not established by the supplied text.

Assessment

The documented design is a useful fit for teams adding MCP support to an existing Java application. Developers can choose blocking calls or asynchronous processing, while keeping transport and JSON choices separate from the client and server APIs.

Adoption still requires application engineering. The core provides authorization hooks without an authorization implementation, and it supplies neither a logging backend nor metrics or tracing implementations. Reported conformance gaps also need examination against the intended integration.

Users

The primary users are Java developers building AI applications that consume MCP servers, or exposing existing Java functionality through an MCP server. The synchronous facade offers a familiar blocking programming model; asynchronous integrations use the reactive core.

Spring Boot teams have a separate integration path through Spring AI starters and transports. Beginners will still need Java dependency management and a basic understanding of client/server communication; the supplied README is an architectural overview rather than a complete introductory application tutorial.

Capabilities

The README describes STDIO for communication with local processes, a JDK HttpClient transport for remote clients, and Jakarta Servlet support for servers. It discusses concurrent requests, notifications and streaming as protocol requirements supported by the asynchronous design.

JSON bindings are replaceable. The mcp convenience bundle combines core functionality with Jackson 3, while separate modules provide Jackson 2 and Jackson 3 bindings. Spring AI supplies WebClient, WebFlux and WebMVC integration outside the core SDK.

Using it

Requirements

The README specifies Java 17 or newer. Its source-build instructions use the Maven wrapper. It says Docker and npx must be installed before running the regular tests, and npx is required for the documented conformance commands. These testing prerequisites are separate from application runtime requirements.

Applications need an appropriate JSON binding. Server deployments must integrate their chosen authorization system, and applications wanting log output, metrics or traces must supply the corresponding implementations. Exact dependency versions, resource requirements and supported deployment environments are not established here.

Mechanism

MCP uses bidirectional JSON-RPC communication. The SDK handles asynchronous interactions through Project Reactor, with a synchronous facade that lets callers wait for results. JSON serialization sits behind the io.modelcontextprotocol.json abstraction, allowing different binding implementations.

Logging uses SLF4J, while Reactor Context carries information such as correlation identifiers across asynchronous operations. The README describes Reactive Streams as the public API direction, but also calls exposing only those interfaces a planned change; exact current API signatures require the implementation or API documentation.

Setup

For a minimal dependency choice, the README suggests mcp, which bundles core functionality and Jackson 3. More selective integrations can choose mcp-core and a JSON binding, with mcp-bom managing dependency versions. The linked dependency guide is [https://java.sdk.modelcontextprotocol.io/latest/quickstart/#dependencies]; its contents are not supplied.

The documented source-build command is ./mvnw clean install -DskipTests, which explicitly skips tests. The regular test command is ./mvnw test. A separate ./mvnw -pl mcp-test -am -Pjackson2 test command selects Jackson 2 for integration tests. These are documentation examples; none was executed.

Example

An illustrative use is an existing Java AI application connecting to a remote MCP tool server through the JDK HttpClient transport. A blocking application could use the synchronous facade, while an asynchronous application could integrate with the reactive API.

A Java service exposing its own MCP endpoint could instead use the Servlet server transport and connect its authorization system through the available hooks. These are conceptual applications of the documented components. The supplied README contains no complete application example or verified API calls.

Assessment & evidence

Limitations

For conformance suite version 0.1.15, the README reports 40/40 server results passing (the README does not say whether these are scenarios or checks), 3/4 client scenarios with 9/10 checks passing, and 12/14 Spring authorization scenarios fully passing with 98.9% of checks passing. These are project-reported results, not independently reproduced results. The detailed failures and their application impact are not included.

Server authorization requires an external implementation. Throughput, latency, memory consumption, deployment reliability and implementation security are not assessed by the supplied documentation. The passing server count does not establish compatibility for every application or transport.

Design reasoning

The project's stated approach favors familiar defaults with replaceable components: Jackson for JSON, Reactor for asynchronous processing, SLF4J for logging, JDK HttpClient for clients and Servlet for servers. Transport-independent APIs are intended to accommodate other stacks.

For adopters, the practical tradeoff is a ready-made protocol implementation with integration responsibilities around it. Blocking application code can use the synchronous facade while the underlying design remains reactive. Claims about productivity or performance are design rationale rather than measured outcomes in the supplied evidence.

Alternatives

Within this SDK family, the main choices are the mcp convenience bundle, a selective core-plus-JSON-binding setup, or Spring AI integration. The README points Spring teams toward starters, annotation handling, additional transports and separately documented OAuth 2.0 and API key support.

Netty, Vert.x and Helidon are mentioned as possible transport implementations, without establishing that those implementations are supplied. No competing SDK documentation or comparative measurements are included, so a broader product ranking is unsupported.

Evidence

The supporting sources are README.md and its accompanying LICENSE at repository commit 79c74be6cd72cc68bca777b57678f40efc828111. The original README address is [https://github.com/modelcontextprotocol/java-sdk/blob/main/README.md], and the fixed source snapshot is [https://raw.githubusercontent.com/modelcontextprotocol/java-sdk/79c74be6cd72cc68bca777b57678f40efc828111/README.md].

The license source is [https://raw.githubusercontent.com/modelcontextprotocol/java-sdk/79c74be6cd72cc68bca777b57678f40efc828111/LICENSE]. Implementation files, dependency declarations, linked guides and conformance validation details are not included. Architecture and test-result statements therefore remain documentation claims.

Access & freshness

Costs

No purchase price, subscription, usage tariff or paid support terms are stated. The MIT license grants permission to use, modify and distribute the software, including commercially, subject to its notice requirements.

Hosting, external model or service charges, integration effort and ongoing operating costs depend on the application and are unknown. The supplied evidence contains no measurements from which to estimate infrastructure costs.

Rights

The accompanying MIT license permits use, copying, modification, publication, distribution, sublicensing and sale of the software and associated documentation. Copies or substantial portions must retain the copyright and permission notice.

The license disclaims warranties and limits the authors' liability. Its copyright notice names the original author or authors and gives 2025 as the year. License obligations for dependencies and external integrations are not established by these two files.

Freshness

The supplied snapshot was captured on 14 November 2026 at 09:35:45.051 UTC. That timestamp establishes the capture time, not an SDK release date. The latest published SDK version is unknown from the supplied text.

The README describes Spring integrations as belonging to Spring AI 2.0+, while its Spring documentation links target 2.0-SNAPSHOT. The conformance suite version 0.1.15 and the authorization command's protocol specification date 2025-11-25 are separate identifiers, not SDK release numbers.

Adoption actions

Before adopting, confirm compatible artifact versions and choose the standalone SDK or Spring AI integration path. Check the API documentation for the intended synchronous or asynchronous approach and the exact transport required.

Inspect the detailed conformance failures against the intended client and authorization behavior. Implement server access control and required observability components, then validate the actual application journey. The documented build and conformance commands provide starting points; their successful execution and application compatibility remain unverified.

Evidence for this report

LICENSEnotice · checked 2026-11-14
README.mdselected · checked 2026-11-14