https://github.com/andybrandt/mcp-simple-timeserver
Simple solution to give Claude ability to check current time via MCP
https://github.com/andybrandt/mcp-simple-timeserver
claude claude-ai mcp model-context-protocol
Last synced: about 1 month ago
JSON representation
Simple solution to give Claude ability to check current time via MCP
- Host: GitHub
- URL: https://github.com/andybrandt/mcp-simple-timeserver
- Owner: andybrandt
- License: mit
- Created: 2024-12-01T16:54:06.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-12-01T20:51:18.000Z (10 months ago)
- Last Synced: 2024-12-01T21:15:30.745Z (10 months ago)
- Topics: claude, claude-ai, mcp, model-context-protocol
- Language: Python
- Homepage: https://pypi.org/project/mcp-simple-timeserver/1.0.2/
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-mcp-zh - andybrandt/mcp-simple-timeserver
- awesome-mcp-servers - **mcp-simple-timeserver** - Simple solution to give Claude ability to check current time via MCP `python` `claude` `claude-ai` `mcp` `model-context-protocol` `pip install git+https://github.com/andybrandt/mcp-simple-timeserver` (AI/ML)
- awesome-mcp-servers - andybrandt/mcp-simple-timeserver - An MCP server that allows checking local time on the client machine or current UTC time from an NTP server (Legend / 🛠️ <a name="other-tools-and-integrations"></a>Other Tools and Integrations)
- awesome-mcp-servers - andybrandt/mcp-simple-timeserver - An MCP server that allows checking local time on the client machine or current UTC time from an NTP server (Legend / 🛠️ <a name="other-tools-and-integrations"></a>Other Tools and Integrations)
- awesome-mcp-servers - andybrandt/mcp-simple-timeserver - クライアントマシンのローカル時間またはNTPサーバーからの現在のUTC時間をチェックできるMCPサーバー (サーバー実装 / 🛠️ <a name="other-tools-and-integrations"></a>その他のツールと統合)
- awesome-mcp-servers - Claude Time Server - Simple solution to give Claude ability to check current time via MCP (Table of Contents / Other Tools and Integrations)
- awesome-mcp-servers - Claude Time Server - Simple solution to give Claude ability to check current time via MCP (Table of Contents / Other Tools and Integrations)
- awesome-mcp - andybrandt/mcp-simple-timeserver - An MCP server that allows checking local time on the client machine or current UTC time from an NTP server (MCP Servers / 🛠️ Other Tools and Integrations)
- mcp-index - Simple Timeserver - Provides local and UTC time information, allowing AI models to access current time and timezone details from the user's machine. (Cloud Services)
README
[](https://mseep.ai/app/andybrandt-mcp-simple-timeserver)
# MCP Simple Timeserver
[](https://archestra.ai/mcp-catalog/andybrandt__mcp-simple-timeserver)
[](https://smithery.ai/server/mcp-simple-timeserver)*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](https://en.wikipedia.org/wiki/Network_Time_Protocol).## Installation
### Installing via Smithery
To install Simple Timeserver for Claude Desktop automatically via [Smithery](https://smithery.ai/server/mcp-simple-timeserver):
```bash
npx -y @smithery/cli install mcp-simple-timeserver --client claude
```### Manual Installation
First install the module using:```bash
pip install mcp-simple-timeserver```
Then configure in MCP client - the [Claude desktop app](https://claude.ai/download).
Under Mac OS this will look like this:
```json
"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:
```json
"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](WEB_DEPLOYMENT.md).
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*).