Spring Boot
FreeNot checkedSpring Boot MCP server — connects existing Java services to AI agents (Claude, Copilot, Cursor) via SSE and stdio. Production-ready with database, REST API, and
About
Spring Boot MCP server — connects existing Java services to AI agents (Claude, Copilot, Cursor) via SSE and stdio. Production-ready with database, REST API, and file system tools.
README
Connects your existing Java services to AI agents — Claude, GitHub Copilot, Cursor — via SSE (IDE clients) and stdio (CLI clients). Drop in your own
@Toolmethods and your Java backend becomes AI-callable.
What it does
Exposes ready-to-use MCP tools that any MCP-compatible AI agent can call:
| Tool | What it does | Try asking Claude |
|---|---|---|
queryDatabase |
Read-only SQL with SELECT guard | "Show me the 5 most recent orders" |
listFiles |
Browse sandboxed workspace files | "What files are in the reports folder?" |
readFile |
Read file contents from workspace | "Read the contents of config.json" |
getCustomer |
Fetch customer from CRM REST API | "Get details for customer ID abc-123" |
searchOrders |
Filter orders by status | "Show me all PENDING orders" |
Quick start
git clone https://github.com/anirbandashfx-commits/spring-boot-mcp-server.git
cd spring-boot-mcp-server
cp application.yml.example src/main/resources/application.yml
# Edit application.yml with your DB credentials
mvn spring-boot:run
Or with Docker:
docker compose up
Connect to Claude Desktop (stdio)
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"spring-boot-mcp": {
"command": "java",
"args": ["-jar", "/absolute/path/to/target/spring-boot-mcp-server.jar"]
}
}
}
Restart Claude Desktop. Look for the 🔨 hammer icon in the chat input — your tools will be listed there.
Connect to VS Code / Cursor (SSE)
Start the app first, then add to .vscode/mcp.json:
{
"servers": {
"spring-boot-mcp": {
"type": "sse",
"url": "http://localhost:8080/sse"
}
}
}
The transport rule (saves you hours of debugging)
| Client | Transport | Use this |
|---|---|---|
| Claude Desktop, Claude Code CLI | stdio | command: java -jar ... |
| VS Code, Cursor, Windsurf | SSE | url: http://localhost:8080/sse |
Using the wrong transport causes silent connection failures with no useful error message.
Add your own tools
@Service
public class MyCustomTools {
@Tool(description = "Describe what this tool does in plain English")
public String myTool(
@ToolParam(description = "What this parameter expects") String input
) {
return result;
}
}
Spring AI auto-registers any @Service with @Tool methods. No extra config needed.
Built with
- Java 21 + Spring Boot 3.4
- Spring AI 1.0 MCP Server
- Tested: Claude Desktop (stdio), VS Code Agent mode (SSE)
Need a custom MCP server for your Java team?
I build these for teams integrating AI agents into existing Spring Boot applications. → Connect on LinkedIn
from github.com/anirbandashfx-commits/spring-boot-mcp-server
Installing Spring Boot
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/anirbandashfx-commits/spring-boot-mcp-serverFAQ
Is Spring Boot MCP free?
Yes, Spring Boot MCP is free — one-click install via Unyly at no cost.
Does Spring Boot need an API key?
No, Spring Boot runs without API keys or environment variables.
Is Spring Boot hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Spring Boot in Claude Desktop, Claude Code or Cursor?
Open Spring Boot on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
wenb1n-dev/SmartDB_MCP
A universal database MCP server supporting simultaneous connections to multiple databases. It provides tools for database operations, health analysis, SQL optim
by wenb1n-devPostgres Server
This server enables interaction with PostgreSQL databases through the Model Context Protocol, optimized for the AWS Bedrock AgentCore Runtime. It provides tools
by madhurprashPostgres
Query your database in natural language
by AnthropicPostgreSQL
Read-only database access with schema inspection.
by modelcontextprotocolRedis
Interact with Redis key-value stores.
by modelcontextprotocolSQLite
Database interaction and business intelligence capabilities.
by modelcontextprotocolmxcp
Open-source framework for building enterprise-grade MCP servers using just YAML, SQL, and Python, with built-in auth, monitoring, ETL and policy enforcement.
by raw-labstadas-github/a2asearch-mcp
MCP server to search 4,800+ MCP servers, AI agents, CLI tools and agent skills. Install: npx -y a2asearch-mcp. Ask Claude: "Find MCP servers for database access
by tadas-githubjulien040/anyquery
Query more than 40 apps with one binary using SQL. It can also connect to your PostgreSQL, MySQL, or SQLite compatible database. Local-first and private by desi
by julien040drakonkat/wizzy-mcp-tmdb
A MCP server for The Movie Database API that enables AI assistants to search and retrieve movie, TV show, and person information.
by drakonkatCompare Spring Boot with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All data MCPs
