Spring Boot sample MCP server

Spring Boot sample MCP server

sprint-boot-sample-mcp-server•bytobiassteidle

A sample Spring Boot application that implements a Model Context Protocol server for testing and debugging with MCP Inspector and for use with MCP-capable AI assistants.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Implements an MCP server as a Spring Boot application.
  • •Provides a simple REST API for interacting with the server.
  • •Designed for testing and debugging with the Model Context Protocol Inspector.
  • •Can be configured to work with Claude Desktop through an mcpServers configuration.

BEST FOR

  • •Developers learning how to build MCP servers with Spring Boot.
  • •Testing and debugging MCP server behavior using MCP Inspector.
  • •Trying MCP tools with Claude Desktop or similar MCP-capable assistants.

ABOUT SPRINT-BOOT-SAMPLE-MCP-SERVER

Spring Boot sample MCP server is cataloged as an MCP server attributed to tobiassteidle. A sample Spring Boot application that implements a Model Context Protocol server for testing and debugging with MCP Inspector and for use with MCP-capable AI assistants. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Spring Boot sample MCP server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What do I need to run this server?

It requires Java 17 and Maven, with MCP Inspector optional for testing.

How can I test the server?

You can build it with Maven and run it through the MCP Inspector, which provides a browser interface to send requests and view responses.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 7eb370e1a41e · 采集于 2026-11-13 11:27:08 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

This is a sample implementation of a Model Context Protocol (MCP) server using Spring Boot. The server is designed to be used with the Model Context Protocol Inspector for testing and debugging. It provides a simple REST API to interact with the server and demonstrates how to set up a basic Spring Boot application. Unit tests are included to verify the functionality of the server.

📋 Table of Contents

🧠 What is MCP?

Model Context Protocol (MCP) is an open standard that defines how AI models communicate with external tools and data sources. It creates a standardized way for AI assistants like Claude to access:

  • 🌐 Real-time information
  • 📊 Custom databases
  • 🔄 APIs and services
  • 📁 File systems

Think of MCP as the "USB standard for AI" - it provides a common interface that allows any AI model to interact with various tools through a consistent protocol. Benefits of using MCP with Spring Boot:

  • 🔄 Seamless Integration: Easily expose your application's functionality to AI assistants
  • 🛠️ Tool Definition: Define custom tools using simple annotations
  • 🚀 Spring Boot Simplicity: Leverage Spring's dependency injection and configuration management
  • 📈 Enhanced AI Capabilities: Give AI models access to your organization's real-time data and services

Requirements

  • Java 17+
  • Maven
  • MCP Inspector (optional for testing)

Configuration for e.g. Claude Desktop

{
  "mcpServers": {
    "sample-mcp-server": {
      "command": "java",
      "args": [
        "-jar",
        "sample-mcp-server-0.0.1-SNAPSHOT.jar",
        "--port",
        "8080",
        "--host",
        "localhost"
      ],
      "env": {
        "JAVA_TOOL_OPTIONS": "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005"
      }
    }
  }
}

Note: The JAVA_TOOL_OPTIONS environment variable is used to set the JVM options for remote debugging. The address and port can be changed as needed.

💻 Development

Debugging

Install MCP Inspector

npm -g install @modelcontextprotocol/inspector

Run MCP Inspector for Testing

Build MCP Server
mvn clean package
Run MCP Inspector
npx @modelcontextprotocol/inspector \
    -e JAVA_TOOL_OPTIONS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005 \
    java -jar target/sample-mcp-server-<version>-SNAPSHOT.jar \
    --port 8080 --host localhost

Note: The JAVA_TOOL_OPTIONS environment variable is used to set the JVM options for remote debugging. The address and port can be changed as needed. Now you can use the MCP Inspector to test and debug your Spring Boot MCP server. The inspector provides a user-friendly interface (Browser) to interact with the server and visualize the data being exchanged. The inspector can be used to send requests to the server, view the responses, and analyze the data flow between the client and server. To debug the server, you can set breakpoints in your code and use the debugger in your IDE to step through the code and inspect variables. Attach the debugger to the running server using the remote debugging options specified in the JAVA_TOOL_OPTIONS environment variable.

Spring AI extends the MCP Java SDK with productivity enhancements that make it straightforward to build MCP servers [1].

🔧 Using This Server with Claude Desktop

This sample server can be integrated with Claude Desktop or other AI assistants that support MCP. After configuring the server in your AI assistant:

  1. Start this Spring Boot MCP server
  2. Open Claude Desktop and enable the server in settings
  3. Ask Claude questions that require the tools provided by this server
  4. Watch as Claude seamlessly uses the server to access data and perform actions

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Spring Boot sample MCP server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/sprint-boot-sample-mcp-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools