MCP-timeserver
by: SecretiveShell
A simple MCP server that exposes datetime information to agentic systems and chat REPLs
📌Overview
Purpose: To provide a simple MCP server that delivers datetime information to agentic systems and chat REPLs.
Overview: MCP-timeserver is designed to expose current date and time data through a dedicated URI scheme, facilitating easy access for various applications and systems needing real-time datetime information based on timezones.
Key Features:
-
Datetime URI Scheme: Implements a straightforward URI scheme (e.g.,
datetime://Africa/Freetown/now
) for users to retrieve the current date and time in their specified time zone, ensuring flexibility and ease of use. -
Current Time Tool: Offers a simple function,
get_current_time()
, that provides the current local time based on the server's timezone, streamlining the retrieval of time information for developers and users alike.
MCP-timeserver
A simple MCP server that exposes datetime information to agentic systems and chat REPLs.
Components
Resources
The server implements a simple datetime://
URI scheme for accessing the current date/time in a given timezone, for example:
datetime://Africa/Freetown/now
datetime://Europe/London/now
datetime://America/New_York/now
Tools
The server provides a tool to get the current local time in the system timezone:
>>> get_current_time()
"The current time is 2024-12-18 19:59:36"
Quickstart
Install
Use the following JSON configuration:
{
"mcpServers": {
"MCP-timeserver": {
"command": "uvx",
"args": ["MCP-timeserver"]
}
}
}