About simple-mcp-server
A Java Spring Boot MCP server with services for personalized greetings and number operations. It is intended for setups that expose these functions to MCP clients.
Key features
- 01Generate personalized greetings
- 02Perform number operations
- 03Generate random numbers
- 04Run locally or with Docker
Use cases
- 01Create tailored greetings for an application
- 02Perform number operations from an MCP client
- 03Launch the MCP server with Docker
MCP support
The project implements an MCP server that can be configured over stdio for MCP clients, exposing greeting and number services.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEsimple-mcp-server
Java Spring Boot simple MCP server implementation
Description
The simple-mcp-server project includes two core services:
-
GreetingsService: This service is responsible for generating personalized greeting messages. It provides functionality to create dynamic and user-specific greetings based on input parameters.
-
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
- Build the project
mvn clean install
- Run the server
Change the
mcp.serverconfiguration 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
- Build the project
mvn clean install
docker build -t simplemcpserver:1.0 .
- Run the server
Change the
mcp.serverconfiguration adding the following:
"simple-mcp-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"simplemcpserver:1.0"
]
}
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.