mcp-server-spring-java

mcp-server-spring-java

2

This project is a Model Context Protocol server built with Spring Boot and Java 21. It provides user management tools and supports various communication modes, integrating with external APIs for data handling.

Overview

A Model Context Protocol (MCP) server implementation built with Spring Boot and Java 21 to provide user management tools for AI assistants.

Features

  • MCP server functionality using Spring AI
  • User management tools exposed via MCP
  • Synchronous communication mode
  • Supports Standard I/O and Server-Sent Events transports
  • Integrates with DummyJSON external API for user data

Technologies

  • Java 21
  • Spring Boot 3.4.3
  • Spring AI
  • Project Lombok
  • Maven

Prerequisites

  • Java 21 or higher
  • Maven

Configuration

  • Runs on port 8090
  • Server name: my-dummy-users-server
  • Synchronous communication mode
  • STDIO transport for terminal-based communication
  • Exposes "/mcp/message" endpoint for SSE communication

Available Tools

  • getAllUsers
  • getAllUsersDefault
  • getUserById
  • searchUsers
  • addUser
  • updateUser
  • deleteUser

License

This project is licensed under the terms provided in the LICENSE file.