MCP Server using Spring Boot Java
@mtwn105
MCP Server using Spring Boot Java について
MCP Server using Spring Boot Java
基本情報
設定
ツール
7Get 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.
「その他」の他のコンテンツ
MCP Toolbox for Databases
googleapisMCP Toolbox for Databases is an open source MCP server for databases.
Nginx UI
0xJackyYet another WebUI for Nginx
Reactive Resume
amruthpillaiA one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
🪟 Windows-MCP
CursorTouchMCP Server for Computer Use in Windows
XcodeBuildMCP
cameroncookeA Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
コメント