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

Staging sûr pour cet actif

Cet actif est d'abord staged. Le prompt copié demande à l'agent d'inspecter les fichiers staged avant d'activer scripts, config MCP ou config globale.

Stage only · 17/100Policy : staging
Surface agent
Tout agent MCP/CLI
Type
Mcp Config
Installation
Stage only
Confiance
Confiance : Established
Point d'entrée
Asset
Commande de staging sûr
npx -y tokrepo@latest install 792cad2e-303d-5bd2-9bc3-a827520154a7 --target codex

Stage les fichiers d'abord; l'activation exige la revue du README et du plan staged.

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