Skip to main content

A simple MCP server that provides current time - either local or from an NTP server.

Project description

MseeP.ai Security Assessment Badge

MCP Simple Timeserver

Trust Score smithery badge

One of the strange design decisions Anthropic made was depriving Claude of timestamps for messages sent by the user in claude.ai or current time in general. Poor Claude can't tell what time it is! mcp-simple-timeserver is a simple MCP server that fixes that.

Available Tools

This server provides the following tools:

Tool Description
get_local_time Returns the current local time, day of week, and timezone from the user's machine
get_utc Returns accurate UTC time from an NTP time server
get_current_time Returns current UTC time with optional calendar conversions (see below)

Calendar Support via get_current_time

The get_current_time tool accepts an optional calendar parameter with a comma-separated list of calendar formats:

Calendar Description
unix Unix timestamp (seconds since 1970-01-01)
isodate ISO 8601 week date (e.g., 2026-W03-6)
hijri Islamic/Hijri lunar calendar
japanese Japanese Era calendar (returns both English and Kanji)
hebrew Hebrew/Jewish calendar (returns both English and Hebrew, includes holidays)
persian Persian/Jalali calendar (returns both English and Farsi)

Example: get_current_time(calendar="unix,hijri") returns UTC time plus Unix timestamp and Hijri date.

All tools (except get_local_time) use accurate time from NTP servers. If NTP is unavailable, they gracefully fall back to local server time with a notice.

Installation

Installing via Smithery

To install Simple Timeserver for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install mcp-simple-timeserver --client claude

Manual Installation

First install the module using:

pip install mcp-simple-timeserver

Then configure in MCP client - the Claude desktop app.

Under Mac OS this will look like this:

"mcpServers": {
  "simple-timeserver": {
    "command": "python",
    "args": ["-m", "mcp_simple_timeserver"]
  }
}

Under Windows you have to check the path to your Python executable using where python in the cmd (Windows command line).

Typical configuration would look like this:

"mcpServers": {
  "simple-timeserver": {
    "command": "C:\\Users\\YOUR_USERNAME\\AppData\\Local\\Programs\\Python\\Python311\\python.exe",
    "args": ["-m", "mcp_simple_timeserver"]
  }
}

Web Server Variant

This project also includes a network-hostable version that can be deployed as a standalone web server. For instructions on how to run and deploy it, please see the Web Server Deployment Guide.

Or you can simply use my server by adding it under https://mcp.andybrandt.net/timeserver to Claude and other tools that support MCP.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_simple_timeserver-1.3.0.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_simple_timeserver-1.3.0-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file mcp_simple_timeserver-1.3.0.tar.gz.

File metadata

  • Download URL: mcp_simple_timeserver-1.3.0.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for mcp_simple_timeserver-1.3.0.tar.gz
Algorithm Hash digest
SHA256 354e3f2d530b0d754b5d46374082ae5afb2f79319a915978bb533c9b37751671
MD5 80dfca70a799698801dcaaeed2088ccc
BLAKE2b-256 ed353f00b656e8d697b13610ee1770429916aa47212afbeaf586194435e0b684

See more details on using hashes here.

File details

Details for the file mcp_simple_timeserver-1.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_simple_timeserver-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4b1b61d51bc782406dbd25385eb736c3df12ee0e6c9c7b55c043619dede7b947
MD5 099a86e2dd3c69d6c85cf2e7b0a237af
BLAKE2b-256 af44ecbb1a6584fb101e31bcfb5383636c7ac5ec951faaafd3a87ac414f2d44e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page