Lightweight Java MCP SDK: AJ-MCP
@lightweight-component
Simple MCP SDK in Java
概览
What is Lightweight Java MCP SDK: AJ-MCP?
AJ-MCP is a lightweight MCP (Model Context Protocol) SDK for Java that enables developers to build MCP clients and servers. It supports Java 8 and above, including Spring Boot 2.x, and requires only Jackson JSON and OKHttp as dependencies. Aimed at Java developers, it provides a simple, extensible way to bridge AI applications with any data source or system.
How to use Lightweight Java MCP SDK: AJ-MCP?
The SDK is available as three Maven modules: aj-mcp-common, aj-mcp-client, and aj-mcp-server. Developers reference these dependencies, along with the provided sample code, to build custom MCP clients or servers. Full examples and a user manual (https://mcp.ajaxjs.com/) guide implementation.
Key features of Lightweight Java MCP SDK: AJ-MCP
- Lightweight with zero dependencies beyond Jackson JSON and OKHttp.
- Supports Java 8 and above, and Spring Boot 2.x.
- Includes a common library, client SDK, and server SDK.
- Fully documented with working sample projects.
- Easy to extend for custom integrations.
Use cases of Lightweight Java MCP SDK: AJ-MCP
- Connecting AI models to a database for context-aware queries.
- Integrating with internal enterprise systems via an MCP server.
- Building a custom AI assistant that accesses company data.
- Prototyping new MCP-based applications quickly with Java.
FAQ from Lightweight Java MCP SDK: AJ-MCP
What Java version does Lightweight Java MCP SDK: AJ-MCP require?
It supports Java 8 and above, including Java 11, 17, and later versions. Spring Boot 2.x is also supported.
What external dependencies does AJ-MCP need?
The SDK has minimal dependencies: only Jackson JSON for serialization and OKHttp for HTTP communication. No other libraries are required.
Which components are included in the SDK?
The SDK consists of three modules: aj-mcp-common (protocol implementation and common classes), aj-mcp-client (client SDK), and aj-mcp-server (server SDK). Sample projects are also provided.
Where can I find documentation and examples?
The official user manual is at https://mcp.ajaxjs.com/. The GitHub repository includes sample code in the samples directory.
Is the SDK open-source? What license does it use?
Yes, AJ-MCP is open-source under the GNU General Public License v3 (GPLv3).