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

smithery badge

One of the strange design decisions Anthropic made was depriving Claude of timestamps for messages sent by the user 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.

This server provides two tools:

  • get_local_time provides the current local time and timezone information from the user's machine. This way Claude can know what time it is at the user's location. He can also calculate how much time passed since his last interaction with the user should he want to do so.
  • get_utc provides current UTC time obtained from an NTP time server.

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.1.2.tar.gz (4.3 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.1.2-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_simple_timeserver-1.1.2.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for mcp_simple_timeserver-1.1.2.tar.gz
Algorithm Hash digest
SHA256 a471e53d3a6144daddafa981e5c645e7e0e41ddc63c758d99bb88c6a567140cf
MD5 7557ea1e7ad4c206bd07f3f93591d2f2
BLAKE2b-256 b7e22c7d4466a82ec3c26efa0a0caf38d1a186b0c5c5edd149efed7e303cc2a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_simple_timeserver-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a23a4797ab4a9f36695fdcf0c34fdc088419e2ee0052d666ee6ed60dff8d1111
MD5 e8ec016ee8df50a593d2b5751d92753f
BLAKE2b-256 76dba1e0f24643d63bd28ce3df8c36a452b2a8be9f35cd527d1ad0c72c05f48a

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