
simple-mcp-server
Java Spring Boot simple MCP server implementation
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?
- Creating dynamic greeting messages for users.
- Performing arithmetic calculations and generating random numbers.
- 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.
simple-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.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
- Build the project
mvn clean install
docker build -t simplemcpserver:1.0 .
- Run the server
Change the
mcp.server
configuration adding the following:
"simple-mcp-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"simplemcpserver:1.0"
]
}