Introduction to the Model Context Protocol (MCP) Java SDK
mcp
module, no external web frameworks required):
io.modelcontextprotocol.sdk:mcp
module provides default STDIO and SSE client and server transport implementations without requiring external web frameworks.Spring-specific transports are available as optional dependencies for convenience when using the Spring Framework.mcp
module already includes default STDIO and SSE transport implementations and doesn’t require external web frameworks.If you’re using the Spring Framework and want to use Spring-specific transport implementations, add one of the following optional dependencies:io.modelcontextprotocol.sdk:mcp
- Core MCP library providing the base functionality and APIs for Model Context Protocol implementation, including default STDIO and SSE client and server transport implementations. No external web frameworks required.io.modelcontextprotocol.sdk:mcp-spring-webflux
- WebFlux-based Server-Sent Events (SSE) transport implementation for reactive applications.io.modelcontextprotocol.sdk:mcp-spring-webmvc
- WebMVC-based Server-Sent Events (SSE) transport implementation for servlet-based applications.io.modelcontextprotocol.sdk:mcp-test
- Testing utilities and support for MCP-based applications.