Esta página se muestra en inglés. Una traducción al español está en curso.
MCP ConfigsMay 14, 2026·2 min de lectura

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.

Listo para agents

Este activo puede ser leído e instalado directamente por agents

TokRepo expone un comando CLI universal, contrato de instalación, metadata JSON, plan según adaptador y contenido raw para que los agents evalúen compatibilidad, riesgo y próximos pasos.

Native · 94/100Política: permitir
Superficie agent
Cualquier agent MCP/CLI
Tipo
Mcp
Instalación
Bundle
Confianza
Confianza: Established
Entrada
git clone https://github.com/modelcontextprotocol/java-sdk.git
Comando CLI universal
npx tokrepo install 792cad2e-303d-5bd2-9bc3-a827520154a7
Introducción

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.
🙏

Fuente y agradecimientos

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

Discusión

Inicia sesión para unirte a la discusión.
Aún no hay comentarios. Sé el primero en compartir tus ideas.

Activos relacionados