modelcontextprotocol/java-sdk

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

About the project

The MCP Java SDK is a set of Java libraries for building applications that communicate with AI models, tools, and Model Context Protocol servers through a standard interface. Java developers use it to create MCP clients and servers, with synchronous or asynchronous communication.

Latest release v2.1.0 · 16 Oct 2026

1 file for Codex and OpenCode: java-sdk AGENTS.md — 839 tokens loaded in every session.

3,759Stars on the repository
1Files it configures its agents with
839Tokens loaded in every session
2Agents configured

Instructions

These files are modelcontextprotocol/java-sdk's own configuration — they tell Codex and OpenCode how to work on this repository, so they are not mods to install elsewhere. Copy one as a starting point and replace the parts that are about this project.