Time-MCP
@sidharthrajaram
关于 Time-MCP
mcp server for the time and date
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"time": {
"command": "uv",
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/PARENT/FOLDER/time-mcp",
"run",
"time_mcp_server.py"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is Time-MCP?
Time-MCP is a Model Context Protocol server that enables agents to retrieve the current date and time via two tools, get_datetime and get_current_unix_timestamp. It is designed for agents that need to know the current time in any timezone or the current UNIX timestamp.
How to use Time-MCP?
For Claude Desktop, add the server to claude_desktop_config.json using uv with the path to time_mcp_server.py. For custom clients (or Linux), implement an STDIO‑based client following the official MCP client tutorial and use time_mcp_server.py as the server.
Key features of Time-MCP
- Returns current date and time in a specified timezone (defaults to UTC)
- Provides the current UNIX timestamp
- Lightweight, single‑file Python server
- STDIO transport for easy integration
- Works with Claude Desktop and custom clients
- Requires only Python and
uv
Use cases of Time-MCP
- Answering “what time is it?” in a given timezone
- Calculating time offsets for future weather forecasts
- Timestamping agent actions or events
- Supporting time‑dependent task scheduling
FAQ from Time-MCP
What tools does Time-MCP provide?
It provides two tools: get_datetime returns the current date and time in a specified timezone (UTC if none), and get_current_unix_timestamp returns the current UNIX timestamp.
What dependencies does Time-MCP require?
The server requires Python and the uv package manager. It is a single Python script.
How do I set up Time-MCP in Claude Desktop?
Add a "time" entry to the mcpServers section of claude_desktop_config.json with the command uv and arguments pointing to the time_mcp_server.py file. The full path to uv may be needed.
What transport does Time-MCP use?
Time-MCP uses STDIO transport, the standard for MCP servers.
Can I use Time-MCP with a custom client?
Yes. Implement an STDIO‑based MCP client (following the official example tutorial) and connect it to time_mcp_server.py instead of the example weather server.
生产力 分类下的更多 MCP 服务器
Desktop Commander MCP
wonderwhy-erThis is MCP server for Claude that gives it terminal control, file system search and diff file editing capabilities
Desktop Commander
wonderwhy-erThis is MCP server for Claude that gives it terminal control, file system search and diff file editing capabilities
Todoist MCP Server
greirsonMCP server that connects Claude to Todoist for natural language task and project management with bulk operations
Computer Control MCP
AB498MCP server that provides computer control capabilities, like mouse, keyboard, OCR, etc. using PyAutoGUI, RapidOCR, ONNXRuntime. Similar to 'computer-use' by Anthropic. With Zero External Dependencies.
MCP Google Calendar Server
markelaugust74A Model Context Protocol (MCP) server implementation for Google Calendar integration. Create and manage calendar events directly through Claude or other AI assistants.
评论