A java package to automatically setup your spring boot REST controllers as an MCP server
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"server-name": {
"url": "http://localhost:8080/sse"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
A zero-configuration tool for automatically exposing Spring Boot endpoints as Model Context Protocol (MCP) tools.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in developer-tools
Manage Supabase projects — databases, auth, storage, and edge functions
XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.
A Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
Asynchronous coordination layer for AI coding agents: identities, inboxes, searchable threads, and advisory file leases over FastMCP + Git + SQLite
MCP Security Weekly
Get CVE alerts and security updates for Rest Mcp Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
A zero-configuration tool for automatically exposing Spring Boot endpoints as Model Context Protocol (MCP) tools.
Add the dependency to your Maven pom.xml:
<dependency>
<groupId>com.github.imthath-m</groupId>
<artifactId>rest-mcp-server</artifactId>
<version>0.2.1</version>
</dependency>
Currently, SpringBoot-MCP is not available on Maven central repository. So you have to add the following respoistory in pom.xml, to ensure JitPack serves it directly from GitHub.
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
After adding the dependency, you need to remove the following starter web dependency from your pom.xml file.
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
This step is required because, this package depends on spring-ai-starter-mcp-server-webflux which already does the basic setup with a Netty server.
That's it! Your auto-generated MCP server is now available at https://localhost:8080/sse. You can configure this and other features of the MCP server by using variables specified here.
Once you run the app, you should see the following line your console.
o.s.a.m.s.a.McpServerAutoConfiguration : Registered tools: <number of endpoints>, notification: true
FYI, The REST endpoints in your service will continue to be available in the respective paths.
SpringBoot-MCP uses the method names from your REST Controllers as the MCP tool names.
Once your Spring Boot app with MCP integration is running, you can connect to it with any MCP client supporting SSE or stdio protocols.
http://localhost:8080/sse as SSE endpointExample cursor config file named mcp.json.
{
"mcpServers": {
"server-name": {
"url": "http://localhost:8080/sse"
}
}
}
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License. Copyright (c) 2025. Mohammed Imthathullah.