Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Spring Boot

FreeNot checked

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

GitHubEmbed

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 @Tool methods 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-server

FAQ

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

Compare 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