About time-mcp
time-mcp is an MCP server for Claude and other MCP clients that returns current date and time for a requested IANA timezone. It supports timezone-aware lookups and returns ISO-formatted JSON.
Key features
- 01Current time by IANA timezone
- 02UTC default when timezone is omitted
- 03ISO-format JSON responses
- 04Python zoneinfo timezone support
Use cases
- 01Check the time in another timezone
- 02Include local time in a Claude query
MCP support
Exposes the `get_current_time` tool to MCP clients. The tool accepts an IANA timezone and returns the current time.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEtime-mcp
A Claude Model Configuration Protocol (MCP) server that provides real-time timezone-aware date and time information.
Features
- Get current time in any IANA timezone
- Easy integration with Claude AI through MCP
- Comprehensive timezone support using Python's zoneinfo module
- Simple JSON responses in ISO format
Installation
# Clone the repository
git clone https://github.com/yourusername/time-mcp.git
cd time-mcp
# Set up virtual environment (using uv)
uv venv
source .venv/bin/activate
# Install the package
pip install -e .
Usage
Running the Server
python -m src.time_mcp.server
This starts the MCP server locally, making the time tool available to Claude.
Available Tools
get_current_time: Returns the current time in the specified timezone- Parameter:
timezone(string) - Any valid IANA timezone (e.g., "America/New_York", "Europe/London", "Asia/Tokyo") - Default: "UTC" if no timezone is specified
- Parameter:
Development
# Run tests
pytest tests/
# Lint code
ruff check .
# Format code
ruff format .
Requirements
- Python 3.10+
- MCP library
License
MIT
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.