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.

コメント

「その他」の他のコンテンツ