// devtools · modelcontextprotocol/java-sdk

java-sdk

java-sdk ist ein Open-Source-Projekt aus der Kategorie Entwickler-Tools von modelcontextprotocol (modelcontextprotocol/java-sdk auf GitHub). Es hat 3.723 Sterne auf GitHub und 1.155 Forks, wird unter der Lizenz MIT veröffentlicht und wurde zuletzt am 8. Oktober 2026 auf GitHub aktualisiert.

The official Java SDK for building Model Context Protocol servers and clients.

★ 3,7 Tsd. Sterne⑂ 1,2 Tsd. ForksMITaktualisiert Okt 2026
▦ Visual — das README dieses Projekts enthält keinen einbettbaren Screenshot,
darum hier ein Platzhalter. Die Anleitung unten ist trotzdem vollständig.
// projektdaten

Projektdaten

GitHub-Sterne
3.723
Forks
1.155
Lizenz
MIT
Zuletzt auf GitHub aktualisiert
8. Oktober 2026
Eintragstyp
Vollständige Installationsanleitung
Offizielle Website
Official site
// so funktioniert es

So funktioniert es

  1. Clarify your goal

    Decide the first concrete outcome you want from it, so you can pick the right example, template or mode instead of exploring everything at once.

  2. Get the project

    Clone the repository (or install the published package) and skim its README quick start for the requirements for your platform.

  3. Install and configure

    Run the documented install step and set any required configuration — such as provider keys, data sources or local services — before the first run.

  4. Run your first task

    Execute the smallest documented example end to end, confirm the output is what you expected, then adapt it to your real data or workflow.

// funktionen

Warum es so beliebt ist

Official MCP implementation

Servers and clients implementing the Model Context Protocol specification for the JVM.

Transport-agnostic design

JDK HttpClient client transport and Jakarta Servlet server transport in core; Spring transports available through Spring AI.

Reactive with a sync facade

Reactive Streams APIs powered by Reactor, plus a synchronous facade for blocking use cases.

Pluggable JSON

A JSON abstraction with Jackson shipped as the default implementation.

Pluggable authorisation

Hooks let servers plug in Spring Security, MicroProfile JWT or custom auth instead of a built-in system.

Conformance tested

Dedicated server, client and auth conformance test suites are part of the build.

Advertisement
// selbst ausführen

Führe es selbst aus

  1. Clone the repository

    Get the source so you can inspect, configure and run it locally.

    git clone https://github.com/modelcontextprotocol/java-sdk.git
    cd java-sdk
  2. Add the SDK to your project

    Follow the reference documentation for the Maven artifacts for MCP core/client/server, then build from source if contributing.

    git clone https://github.com/modelcontextprotocol/java-sdk.git
    cd java-sdk
    ./mvnw clean install -DskipTests
  3. Run the tests

    Verify a source build with the SDK's test suite.

    ./mvnw test
// anwendungsfälle

Was du damit bauen kannst

Advertisement
// häufige fragen

Häufige Fragen

Who maintains java-sdk?

It is maintained by modelcontextprotocol on GitHub (modelcontextprotocol/java-sdk), where the source, issues and releases live.

Is it free to use?

Yes — it is free and open source under the MIT licence, which permits use, modification and redistribution, including commercially, with attribution.

Does it need a paid API key?

No API key is needed for the SDK itself — it is a protocol library; any LLM costs depend on the client application you connect.

How does it compare to the TypeScript or Python MCP SDKs?

Compared with the TypeScript or Python MCP SDKs, java-sdk's distinguishing focus is: the official Java SDK for building Model Context Protocol servers and clients. Pick it when that focus matches your need; the alternative may suit you better if its broader or different scope is the priority.

How do I get started?

Clone https://github.com/modelcontextprotocol/java-sdk (or install its published package), follow the README quick start to install and configure it, then run the smallest documented example — the Run section on this page mirrors those steps.

// weiter entdecken

Ähnliche Tools

Entwickler-Tools

csharp-sdk

The official C# SDK for the Model Context Protocol — build MCP servers and clients in .NET

★ 4,6 Tsd. SterneApache-2.0
Anleitung ansehen →
Entwickler-Tools

rust-sdk

rmcp: the official Rust SDK for the Model Context Protocol — tokio-based servers and clients

★ 4,0 Tsd. SterneNOASSERTION
Anleitung ansehen →
Entwickler-Tools

ai

Vercel's AI SDK: the TypeScript toolkit for building AI apps and agents with any model provider

★ 27,2 Tsd. SterneNOASSERTION
Anleitung ansehen →
Entwickler-Tools

fastapi_mcp

Expose your FastAPI endpoints as Model Context Protocol tools - with authentication - in a few lines of code.

★ 12,0 Tsd. SterneMIT
Anleitung ansehen →
Entwickler-Tools

inspector

MCPJam Inspector: chat with, inspect, debug, and evaluate MCP servers across clients and models.

★ 2,2 Tsd. SterneApache-2.0
Anleitung ansehen →
Entwickler-Tools

unitree_sdk2

Unitree's official C++ SDK v2 for programming its robots, with CMake examples and installable library.

★ 1,4 Tsd. SterneBSD-3-Clause
Anleitung ansehen →
// alternativen

Alternativen im Bereich Entwickler-Tools

Die anderen Projekte der Kategorie Entwickler-Tools mit den meisten Sternen im LibreAI-Katalog — die realistische Auswahl, falls java-sdk nicht das Richtige ist.

// mehr in devtools

Mehr in Entwickler-Tools

Verwandte Projekte der Kategorie Entwickler-Tools im Katalog, die java-sdk bei den Sternen am nächsten stehen — zum Weiterstöbern auf beiden Seiten.

Hol dir java-sdk

Kostenlos und offen — hol dir den Quellcode, gib dem Repository einen Stern und leg los.