Chronos MCP Server
Simple .NET Core based mcp server for retrieving the current time.
aadversteeg
README
Chronos MCP Server
A time-related server implementing the Model Context Protocol (MCP). This server provides timezone-aware date and time information through a simple MCP interface.
Overview
The Chronos MCP server is built with .NET Core using the Model Context Protocol C# SDK (github.com/modelcontextprotocol/csharp-sdk). It provides tools for accessing date and time information in different timezones. The server is designed to be lightweight and demonstrates how to create a custom MCP server with practical functionality. It can be deployed either directly on a machine or as a Docker container.
Features
- Get current date and time in any supported timezone
- Default timezone configuration through appsettings.json and environment variables
- Proper error handling for invalid timezone requests
Getting Started
Prerequisites
- .NET 9.0 (for local development/deployment)
- Docker (for container deployment)
Build Instructions (for development)
If you want to build the project from source:
-
Clone this repository:
git clone https://github.com/aadversteeg/chronos-mcp-server.git
-
Navigate to the project root directory:
cd chronos-mcp-server
-
Build the project using:
dotnet build src/chronos.sln
-
Run the tests:
dotnet test src/chronos.sln
Docker Support
DockerHub Image
The Chronos MCP Server is available on DockerHub at aadversteeg/chronos-mcp-server
.
# Pull the latest version
docker pull aadversteeg/chronos-mcp-server:latest
# Or pull a specific version
docker pull aadversteeg/chronos-mcp-server:0.0.1
Manual Docker Build
If you need to build the Docker image yourself:
# Navigate to the repository root
cd chronos-mcp-server
# Build the Docker image
docker build -f src/Core.Infrastructure.McpServer/Dockerfile -t chronos-mcp-server:latest src/
# Run the locally built image
docker run -d --name chronos-mcp -e "DefaultTimeZoneId=UTC" chronos-mcp-server:latest
Automated Builds with GitHub Actions
This repository includes a GitHub Actions workflow that automatically builds and pushes the Docker image to DockerHub when a version tag is created.
To trigger a new build:
-
Create and push a tag with a semantic version:
git tag 1.0.0 git push origin 1.0.0
-
The workflow will automatically build and push the Docker image with the tags:
aadversteeg/chronos-mcp-server:latest
aadversteeg/chronos-mcp-server:1.0.0
MCP Protocol Usage
Client Integration
To connect to the Chronos MCP Server from your applications:
- Use the Model Context Protocol C# SDK or any MCP-compatible client
- Configure your client to connect to the server's endpoint
- Call the available tools described below
Available Tools
get_current_date_and_time
Gets the current date and time in the specified timezone or the default timezone.
Parameters:
timezoneId
(optional): The timezone identifier (e.g., 'America/New_York', 'Eastern Standard Time').
Example request:
{
"name": "get_current_date_and_time",
"parameters": {
"timezoneId": "Europe/London"
}
}
Example response:
{
"date": "2023-12-25",
"time": "12:00:00",
"timezone": "Europe/London"
}
get_default_timezone_id
Gets the default timezone identifier configured for the server.
Example request:
{
"name": "get_default_timezone_id",
"parameters": {}
}
Example response:
UTC
Configuration
DefaultTimeZoneId
The DefaultTimeZoneId
setting determines which timezone is used when no specific timezone is requested. This value must be a valid timezone identifier recognized by the operating system.
You can set the DefaultTimeZoneId in two ways:
- appsettings.json file (for local deployment):
{
"DefaultTimeZoneId": "America/New_York"
}
- Environment Variables (for containerized deployments):
# When running the Docker container
docker run -e "DefaultTimeZoneId=Europe/Amsterdam" aadversteeg/chronos-mcp-server:latest
Valid timezone identifiers include:
- Standard IANA timezone names (e.g., "America/New_York", "Europe/London", "Asia/Tokyo")
- Windows timezone IDs (e.g., "Eastern Standard Time", "W. Europe Standard Time")
If not specified, the server defaults to "UTC".
Configuring Claude Desktop
Using Local Installation
To configure Claude Desktop to use a locally installed Chronos server:
- Add the server configuration to the
mcpServers
section in your Claude Desktop configuration:
"chronos": {
"command": "dotnet",
"args": [
"YOUR_PATH_TO_DLL\\Core.Infrastructure.McpServer.dll"
],
"env": {
"DefaultTimeZoneId": "Europe/Amsterdam"
}
}
- Save the file and restart Claude Desktop
Using Docker Container
To use the Chronos server from a Docker container with Claude Desktop:
- Add the server configuration to the
mcpServers
section in your Claude Desktop configuration:
"chronos": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-e", "DefaultTimeZoneId=Europe/Amsterdam",
"aadversteeg/chronos-mcp-server:latest"
]
}
- Save the file and restart Claude Desktop
License
This project is licensed under the MIT License - see the LICENSE file for details.
Recommended Servers
Crypto Price & Market Analysis MCP Server
A Model Context Protocol (MCP) server that provides comprehensive cryptocurrency analysis using the CoinCap API. This server offers real-time price data, market analysis, and historical trends through an easy-to-use interface.
MCP PubMed Search
Server to search PubMed (PubMed is a free, online database that allows users to search for biomedical and life sciences literature). I have created on a day MCP came out but was on vacation, I saw someone post similar server in your DB, but figured to post mine.
dbt Semantic Layer MCP Server
A server that enables querying the dbt Semantic Layer through natural language conversations with Claude Desktop and other AI assistants, allowing users to discover metrics, create queries, analyze data, and visualize results.
mixpanel
Connect to your Mixpanel data. Query events, retention, and funnel data from Mixpanel analytics.

Sequential Thinking MCP Server
This server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.

Nefino MCP Server
Provides large language models with access to news and information about renewable energy projects in Germany, allowing filtering by location, topic (solar, wind, hydrogen), and date range.
Vectorize
Vectorize MCP server for advanced retrieval, Private Deep Research, Anything-to-Markdown file extraction and text chunking.
Mathematica Documentation MCP server
A server that provides access to Mathematica documentation through FastMCP, enabling users to retrieve function documentation and list package symbols from Wolfram Mathematica.
kb-mcp-server
An MCP server aimed to be portable, local, easy and convenient to support semantic/graph based retrieval of txtai "all in one" embeddings database. Any txtai embeddings db in tar.gz form can be loaded
Research MCP Server
The server functions as an MCP server to interact with Notion for retrieving and creating survey data, integrating with the Claude Desktop Client for conducting and reviewing surveys.