LibreAI / Développement / java-sdk
// devtools · modelcontextprotocol/java-sdk

java-sdk

java-sdk est un projet de développement open source, créé par modelcontextprotocol (modelcontextprotocol/java-sdk sur GitHub). Il compte 3 723 étoiles sur GitHub et 1 155 forks, il est publié sous la licence MIT et a été mis à jour pour la dernière fois sur GitHub le 8 octobre 2026.

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

★ 3,7 k étoiles⑂ 1,2 k forksMITmis à jour oct. 2026
▦ visuel — le README de ce projet ne contient aucune capture intégrable,
voici donc un emplacement réservé. Le guide ci-dessous est complet malgré tout.
// détails du projet

Détails du projet

Étoiles GitHub
3 723
Forks
1 155
Licence
MIT
Dernière mise à jour sur GitHub
8 octobre 2026
Catégorie
Développement
Type de fiche
Guide d'installation complet
Site officiel
Official site
// fonctionnement

Comment ça marche

  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.

// fonctionnalités

Pourquoi on l'adore

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
// lancez-le

Lancez-le vous-même

  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
// cas d'usage

Ce que vous pouvez créer

Advertisement
// faq

Questions fréquentes

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.

// continuez l'exploration

Outils similaires

Développement

csharp-sdk

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

★ 4,6 k étoilesApache-2.0
Voir le guide →
Développement

rust-sdk

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

★ 4,0 k étoilesNOASSERTION
Voir le guide →
Développement

ai

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

★ 27,2 k étoilesNOASSERTION
Voir le guide →
Développement

fastapi_mcp

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

★ 12,0 k étoilesMIT
Voir le guide →
Développement

inspector

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

★ 2,2 k étoilesApache-2.0
Voir le guide →
Développement

unitree_sdk2

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

★ 1,4 k étoilesBSD-3-Clause
Voir le guide →
// alternatives

Alternatives en Développement

Les autres projets de la catégorie Développement avec le plus d'étoiles du catalogue LibreAI — la sélection réaliste d'alternatives si java-sdk ne vous convient pas.

// plus en devtools

Plus en Développement

Projets de la catégorie Développement proches dans le catalogue, les plus proches en étoiles de java-sdk — continuez à explorer de part et d'autre.

Obtenir java-sdk

Gratuit et ouvert : récupérez le code source, mettez une étoile au dépôt et commencez à créer.