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_iso_week_date Returns the current date in ISO 8601 week date format (e.g., 2026-W03-4)
get_unix_timestamp Returns the current Unix/POSIX timestamp
get_hijri_date Returns the current date and time in the Islamic (Hijri) lunar calendar
get_japanese_era_date Returns the current date and time in the Japanese Era (Nengo) calendar. Supports English and Kanji output via language parameter ("en" or "ja")
get_hebrew_date Returns the current date and time in the Hebrew (Jewish) calendar, including holiday information. Supports English and Hebrew output via language parameter ("en" or "he")
get_persian_date Returns the current date and time in the Persian (Jalali/Shamsi) calendar. Supports English and Farsi output via language parameter ("en" or "fa")

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. (It does not work with ChatGPT since it currently works only with MCP servers that implement search() and fetch() tools to serve data in response to LLM's querries).

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.2.0.tar.gz (9.9 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.2.0-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_simple_timeserver-1.2.0.tar.gz
  • Upload date:
  • Size: 9.9 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.2.0.tar.gz
Algorithm Hash digest
SHA256 f95907073edafaa3ed5971465a0a6ce87dc8ee9f870c9ea6233447eac9ff9720
MD5 c4cf0b295a17b83394803eb7d22247dc
BLAKE2b-256 e82da5f996131c8dfd818c41c5a968bd9c5348f0ff137d142209d9097b6e8fc3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_simple_timeserver-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1a6650ad14702df05d98a1cb48d5f2b313511a168cc66b9beb3bbdd0ba8c1d72
MD5 07e787ec81850f7c90884bb564c795ec
BLAKE2b-256 6cc73e0e9f479bc4a3f342f2b4ae3ad12ad7d32fb9b6262baf8f7898b30e56f8

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