simple-mcp-server

marcelloraffaele/simple-mcp-server

3.1

If you are the rightful owner of simple-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

Java Spring Boot simple MCP server implementation

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"
            ]
        }