simple-mcp-server

simple-mcp-server

By marcelloraffaele GitHub

Java Spring Boot simple MCP server implementation

simple-mcp-server java
Overview

What is simple-mcp-server?

The simple-mcp-server is a Java Spring Boot implementation that provides two core services: GreetingsService for generating personalized greeting messages and NumberService for handling numerical operations.

How to use simple-mcp-server?

You can run the server using Docker or locally by building the project with Maven and configuring the server settings accordingly.

Key features of simple-mcp-server?

  • Personalized greeting message generation through GreetingsService.
  • Efficient handling of numerical operations via NumberService.
  • Support for running the server in Docker or locally.

Use cases of simple-mcp-server?

  1. Creating dynamic greeting messages for users.
  2. Performing arithmetic calculations and generating random numbers.
  3. Integrating with other applications that require greeting or number services.

FAQ from simple-mcp-server?

  • Can I run simple-mcp-server without Docker?

Yes! You can build and run it locally using Maven.

  • What programming language is used in simple-mcp-server?

The project is implemented in Java using the Spring Boot framework.

  • Is there any documentation available?

Yes, you can find the documentation in the project's GitHub repository.

Content

simple-mcp-server

Java Spring Boot simple MCP server implementation

Description

The simple-mcp-server project includes two core services:

  1. GreetingsService: This service is responsible for generating personalized greeting messages. It provides functionality to create dynamic and user-specific greetings based on input parameters.

  2. NumberService: This service handles operations related to numbers, such as performing arithmetic calculations or generating random numbers. It is designed to support various numerical operations efficiently.

Run it using the Docker image

Modify the mcp.server configuration

{
    "servers": {
        "simple-mcp-server": {
            "command": "docker",
            "args": [
                "run",
                "-i",
                "--rm",
                "ghcr.io/marcelloraffaele/simple-mcp-server:main"
            ]
        }
        
    }
}

Run it locally

  1. Build the project
mvn clean install

  1. Run the server Change the mcp.server configuration adding the following:

        "simple-mcp-server": {
            "type": "stdio",
            "command": "java",
            "args": [
                "-Dspring.ai.mcp.server.stdio=true",
                "-jar",
                "C:\\Workspaces\\......\\simple-mcp-server\target\\simple-mcp-server-0.0.1-SNAPSHOT.jar"
            ]
        }

Run the server with Docker

  1. Build the project
mvn clean install
docker build -t simplemcpserver:1.0 .
  1. Run the server Change the mcp.server configuration adding the following:
        "simple-mcp-server": {
            "command": "docker",
            "args": [
                "run",
                "-i",
                "--rm",
                "simplemcpserver:1.0"
            ]
        }
No tools information available.
No content found.