MCP.so
登录

Spring MCP Server Demo

@esurovtsev

基本信息

分类

其他

传输方式

stdio

作者

esurovtsev

关于 Spring MCP Server Demo

Remote MCP (Model Context Protocol) server built with Spring Boot and SSE. Demonstrates how to register tools, configure endpoints, and stream results to connected LLM clients using the Spring AI MCP SDK.

Spring MCP Server Demo 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "spring-mcp-remote-sse": {
      "command": "npx",
      "args": [
        "@modelcontextprotocol/inspector"
      ]
    }
  }
}

Spring MCP Server Demo 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。

概览

What is Spring MCP Server Demo?

A demonstration project that shows how to build a remote Model Context Protocol (MCP) server using Spring Boot and Java. It implements and exposes tools that AI models can call through the MCP protocol, with a RAG search service as a practical example.

How to use Spring MCP Server Demo?

Run with mvn spring-boot:run or build the JAR (mvn clean package) and execute it. The server starts at http://localhost:8080. Test it using the MCP Inspector by running npx @modelcontextprotocol/inspector. Docker deployment is also available via the provided docker-build.sh script.

Key features of Spring MCP Server Demo

  • Provides a complete MCP server implementation using Spring AI.
  • Includes tool registration and callback handling.
  • Offers a RAG search tool that searches documentation files.
  • Supports deployment with Docker.

Use cases of Spring MCP Server Demo

  • Learning how to build a remote MCP server with Spring Boot.
  • Demonstrating tool exposure for AI model integration.
  • Prototyping a search service that retrieves relevant text snippets from documentation.
  • Testing MCP server functionality without an LLM using MCP Inspector.

常见问题

1

What is the purpose of this server?

It demonstrates how to build a remote MCP server using Spring Boot and Java, showcasing tool registration and callback handling.

2

How do I run the server?

Use `mvn spring-boot:run` or build the JAR and run `java -jar target/mcpserver-0.0.1-SNAPSHOT.jar`. The server starts at `http://localhost:8080`.

3

What tools are available?

The server exposes a **Search** tool that takes a `query` parameter and returns a list of relevant text snippets from the RAG documentation directory.

4

How can I test the server without an LLM?

Use the MCP Inspector by running `npx @modelcontextprotocol/inspector`. It provides a web interface (typically at `http://127.0.0.1:6274`) to test your MCP server.

5

Does the server support Docker?

Yes. Run `./docker-build.sh` to build the image, then `docker run -p 8080:8080 mcp-server:latest` to start the container.

评论

其他 分类下的更多 MCP 服务器