modelcontextprotocol

    modelcontextprotocol/java-sdk

    The official Java SDK for Model Context Protocol servers and clients. Maintained in collaboration with Spring AI

    backend
    java
    mcp
    mcp-client
    mcp-server
    Java
    MIT
    3.8K stars
    1.1K forks
    3.8K GitHub watchers
    Updated Oct 31, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    5 releases in the last 90 days, the latest 15 days ago, with 87 contributors on GitHub.

    Gained 45% fewer stars in the last 90 days than in the 90 days before.

    Use Cases & Benefits

    • Provides a Java SDK to interact with Model Context Protocol servers and clients using standardized AI model communication.
    • Offers a pragmatic, interoperable, and pluggable SDK with reactive and synchronous programming models for flexible AI integration.
    • Use for building Java applications that consume or expose AI model services with asynchronous and streaming capabilities.
    • Use for integrating MCP support into Spring Boot applications via provided Spring WebClient and server starters.
    • Use for implementing secure MCP servers with customizable authorization hooks in diverse Java server environments.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    MIT

    Permissive: commercial use, modification and redistribution are allowed with attribution.

    Community files

    • README: present
    • Contributing guide: present
    • Code of conduct: present

    Watch-outs

    No watch-outs from GStars' checks.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    A set of projects that provide Java SDK integration for the Model Context Protocol. This SDK enables Java applications to interact with AI models and tools through a standardized interface, supporting both synchronous and asynchronous communication patterns.

    For comprehensive guides and SDK API documentation

    Excerpt from the modelcontextprotocol/java-sdk README on GitHub (MIT license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Forks

    1.1K+56

    Open issues

    292+2

    Compared with peers in Backend

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 1, by 7-day star growth

    modelcontextprotocol/java-sdk compared with Backend repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    anthropics/skills187.8K+2.9K15—
    DuarteSantos8/openGym19.7K+2.4K602 days ago
    shiyu-coder/Kronos47.0K+2.3K16—
    NationalSecurityAgency/ghidra98.2K+2.3K6414 days ago
    microsoft/VibeVoice56.0K+1.1K29—
    modelcontextprotocol/java-sdk3.8K—6415 days ago
    Category median56.0K+2.3K29—

    Also by modelcontextprotocol

    Other repositories from this maintainer that GStars tracks

    Discover Repositories

    Search across tracked repositories by name or description