This project is a very simple MCP server implemented in Scala. Its main purpose is to provide basic information about the current date and time.
- MCP server written in Scala
- Extremely simple example
- Provides basic functions such as:
- Get current date and time (local and UTC)
- Get current Unix timestamp
- Compatible with applications like Claude Desktop and Cherry Studio
The main motivation for this project was to try out this new technology from Scala and to provide a minimal example of an MCP server.
- Java 21 or higher
To build the JAR file, run:
sbt assembly
To install and configure the server, use the following configuration:
{
"mcpServers": {
"mcp-clock": {
"command": "java",
"args": [
"-jar",
"{project path}/target/scala-2.13/mcpclock-assembly-1.0.0.jar"
]
}
}
}
Replace {project path} with the actual path to your project directory.