time-mcp logo

time-mcp

by samay58

time-mcp is a Claude Model Configuration Protocol (MCP) server that provides real-time timezone-aware date and time information. It allows easy integration with Claude AI to get the current time in any IANA timezone.

View on GitHub

Last updated: N/A

What is time-mcp?

time-mcp is a server implementing the Claude Model Configuration Protocol (MCP) to provide real-time, timezone-aware date and time information. It acts as a tool that Claude AI can use to accurately determine the current time in various timezones.

How to use time-mcp?

To use time-mcp, first clone the repository and install the required dependencies using the provided instructions. Then, run the server using python -m src.time_mcp.server. This makes the get_current_time tool available to Claude AI, which can then call it with a specified timezone parameter.

Key features of time-mcp

  • 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

Use cases of time-mcp

  • Providing accurate time information to Claude AI for scheduling tasks

  • Enabling Claude AI to respond to time-sensitive queries with the correct timezone

  • Integrating time-aware functionality into Claude AI-powered applications

  • Allowing Claude to perform time-based calculations and comparisons in different regions

FAQ from time-mcp

What is MCP?

MCP stands for Model Configuration Protocol. It's a protocol used for configuring and interacting with AI models like Claude.

What timezones are supported?

All valid IANA timezones are supported, such as 'America/New_York', 'Europe/London', and 'Asia/Tokyo'.

What is the default timezone?

If no timezone is specified, the default timezone is UTC.

How do I install the server?

Follow the installation instructions in the README, which involve cloning the repository, setting up a virtual environment, and installing the package.

How do I run the server?

Run the server using the command python -m src.time_mcp.server.