Cette page est affichée en anglais. Une traduction française est en cours.
MCP ConfigsMay 14, 2026·2 min de lecture

MCP Java SDK — Model Context Protocol for Java (2026)

MCP Java SDK brings Model Context Protocol to Java 17+; verified 3,412★ with Maven Central artifacts, Spring AI docs, and server conformance 40/40.

MCP Hub
MCP Hub · Community
Prêt pour agents

Cet actif peut être lu et installé directement par les agents

TokRepo expose une commande CLI universelle, un contrat d'installation, le metadata JSON, un plan selon l'adaptateur et le contenu raw pour aider les agents à juger l'adaptation, le risque et les prochaines actions.

Native · 94/100Policy : autoriser
Surface agent
Tout agent MCP/CLI
Type
Mcp
Installation
Bundle
Confiance
Confiance : Established
Point d'entrée
git clone https://github.com/modelcontextprotocol/java-sdk.git
Commande CLI universelle
npx tokrepo install 792cad2e-303d-5bd2-9bc3-a827520154a7
Introduction

MCP Java SDK brings Model Context Protocol to Java 17+; verified 3,412★ with Maven Central artifacts, Spring AI docs, and server conformance 40/40.

Best for: Java teams implementing MCP clients/servers or validating a Java MCP stack against conformance suites

Works with: Java 17+, Maven/Gradle, Docker + npx for test suites, and Spring AI integrations

Setup time: 10-20 minutes

Main

  • The repo is structured as a Java SDK (client + server) with reference documentation and links to dedicated quickstarts for dependencies and BOM usage.
  • For correctness, it documents conformance testing via the official MCP conformance suite (0.1.15) and shows explicit pass/fail counts for server/client/auth scenarios.
  • If you are a Spring shop, the README points directly at Spring AI MCP docs (boot starters, annotations, security), so you can choose plain Java or Spring-native paths.
  • A practical rollout pattern: start by running the server conformance sample locally, then wire your own transports and auth once you can reproduce the baseline results.

FAQ

  • Do I need Docker and npx?: Only for running the test and conformance workflows the README describes; using the SDK in your app is just normal Java dependencies.
  • What is the fastest way to validate my stack?: Run the included conformance modules, then run the official @modelcontextprotocol/conformance suite against the local endpoint.
  • Why publish this on TokRepo?: It is a reference Java implementation with explicit conformance data, which helps teams avoid “it works on my machine” MCP drift.
🙏

Source et remerciements

Source: https://github.com/modelcontextprotocol/java-sdk > License: MIT > GitHub stars: 3412 · forks: 878

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires