https://github.com/secretiveshell/mcp-timeserver
A simple MCP server that exposes datetime information to agentic systems and chat REPLs
https://github.com/secretiveshell/mcp-timeserver
Last synced: 5 months ago
JSON representation
A simple MCP server that exposes datetime information to agentic systems and chat REPLs
- Host: GitHub
- URL: https://github.com/secretiveshell/mcp-timeserver
- Owner: SecretiveShell
- License: mit
- Created: 2024-12-18T22:53:23.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2025-01-07T13:03:52.000Z (9 months ago)
- Last Synced: 2025-05-04T23:40:30.257Z (5 months ago)
- Language: Python
- Size: 15.6 KB
- Stars: 28
- Watchers: 1
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MCP-timeserver
A simple MCP server that exposes datetime information to agentic systems and chat REPLs
## Components
### Resources
The server implements a simple datetime:// URI scheme for accessing the current date/time in a given timezone, for example:
```
datetime://Africa/Freetown/now
datetime://Europe/London/now
datetime://America/New_York/now
```### Tools
The server exposes a tool to get the current local time in the system timezone:
```python
>>> get_current_time()
"The current time is 2024-12-18 19:59:36"
```## Quickstart
### Install
use the following json
```json
{
"mcpServers": {
"MCP-timeserver": {
"command": "uvx",
"args": ["MCP-timeserver"]
}
}
}
```