MCP.so
ログイン

MCP Server using Spring Boot Java

@mtwn105

MCP Server using Spring Boot Java について

MCP Server using Spring Boot Java

基本情報

カテゴリ

その他

ライセンス

Apache-2.0 license

ランタイム

java

トランスポート

stdio

公開者

mtwn105

設定

標準の設定はありません

このサーバーの README には解析可能な MCP 設定ブロックが含まれていません。インストール手順はリポジトリをご確認ください。

リポジトリ

ツール

7

Get all users with pagination

Get all users with default pagination

Get a single user by ID

Search for users by query

Add a new user

Update a user

Delete a user

概要

What is MCP Server using Spring Boot Java?

This server is a Model Context Protocol (MCP) implementation built with Spring Boot and Java 21. It exposes user management tools for AI assistants, integrating with the DummyJSON external API to provide user data operations.

How to use MCP Server using Spring Boot Java?

Clone the repository, build with mvn clean package, and run the resulting JAR with java -jar. The server listens on port 8090 and can be configured for STDIO transport or SSE transport via the /mcp/message endpoint. Test tools by sending POST requests with a JSON payload containing the desired tool name and parameters.

Key features of MCP Server using Spring Boot Java

  • Implements MCP server functionality using Spring AI
  • Exposes seven user management tools (CRUD + search)
  • Supports Standard Input/Output and Server-Sent Events transports
  • Uses synchronous communication mode
  • Integrates with DummyJSON external API for user data

Use cases of MCP Server using Spring Boot Java

  • AI assistants performing user CRUD operations via natural language
  • Automating user management workflows through MCP-enabled chat interfaces
  • Prototyping and demonstrating MCP server development with Java/Spring Boot
  • Testing MCP tool calls and responses using Postman or other HTTP clients

FAQ from MCP Server using Spring Boot Java

What tools does the server expose?

The server provides seven tools: getAllUsers, getAllUsersDefault, getUserById, searchUsers, addUser, updateUser, and deleteUser.

What transports are supported?

Standard I/O (STDIO) for terminal-based communication and Server-Sent Events (SSE) via the /mcp/message endpoint.

What are the runtime requirements?

Java 21 or higher and Maven for building. The server runs on Spring Boot 3.4.3.

How do I test the server with Postman?

Send a POST request to http://localhost:8090/mcp/message with Content-Type: application/json and a body containing toolCalls with the tool name and parameters.

How can I configure this server in an MCP client?

Use the client configuration with command: "java" and args that include the STDIO system properties and the path to the built JAR file.

コメント

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