Skip to content

emeraldhieu/mcp-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MCP Server

A Spring Boot library for exposing Java methods as Model Context Protocol (MCP) tools over HTTP. Annotate any Spring bean method with @AiTool and it becomes callable by an LLM — no manual registration or schema authoring required.

Modules

Module Description
mcp-server-core A library for importing into any Spring Boot service to embed an MCP endpoint.
mcp-server-sample Reference implementation and integration test.

Quickstart

Requirements: Java 21, Maven

git clone https://github.com/emeraldhieu/mcp-server.git
cd mcp-server
mvn spring-boot:run -pl mcp-server-sample

See mcp-server-sample for curl examples and Claude Code wiring.

Running all tests

mvn test

About

A Spring Boot library for exposing bean methods as Model Context Protocol (MCP) tools over HTTP. Annotate any Spring bean method with `@AiTool` and it becomes callable by an LLM automatically via the `/mcp` endpoint.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages