A minimal Model Context Protocol (MCP) server written in Rust that exposes the current local time.
Returns structured time data for grounding timestamp queries:
| Field | Description |
|---|---|
iso_timestamp |
ISO 8601 timestamp with timezone offset |
unix_timestamp |
Unix timestamp in seconds |
unix_timestamp_ms |
Unix timestamp in milliseconds |
timezone |
Local system timezone abbreviation |
utc_offset_hours |
UTC offset as a float (e.g., -4.0) |
utc_offset |
UTC offset string (e.g., -04:00) |
date |
Current date (YYYY-MM-DD) |
time |
Current time (HH:MM:SS) |
day_of_week |
Day of the week (e.g., Thursday) |
cargo install time-mcp-servercargo install --path .{
"mcpServers": {
"time": {
"command": "time-mcp-server"
}
}
}cargo build --release
cargo testMIT License. See LICENSE.