mcp-time
Provides LangChain tools for time and timezone operations, exposing all five tools (current time, timestamp, timezone conversion, time difference, time formatting) for use with LangChain agents, as well as individual callable tools like time_now and time_convert.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
mcp-time
MCP server and LangChain tools for time and timezone operations. Stateless, zero-config, no external dependencies.
Features
5 tools for time operations:
Tool | Description |
| Get current time in any IANA timezone (ISO format) |
| Get current Unix timestamp in seconds |
| Convert time between timezones |
| Calculate difference between two timestamps |
| Format ISO time with Python strftime patterns |
Related MCP server: Time MCP Server
Installation
# Core library (no dependencies)
pip install .
# With MCP server support
pip install ".[mcp]"
# With LangChain tools
pip install ".[langchain]"
# Everything
pip install ".[all]"Configuration
No configuration required. This server is stateless and uses only Python's built-in datetime and zoneinfo modules.
Quick Start
As MCP Server
# Run via stdio (for Claude Desktop/Code)
mcp-timeAdd to Claude Code (~/.claude.json):
{
"mcpServers": {
"time": {
"type": "stdio",
"command": "mcp-time"
}
}
}As LangChain Tools
from mcp_time.langchain_tools import TOOLS, time_now, time_convert
# Use all 5 tools with an agent
agent = create_react_agent(llm, TOOLS)
# Or use individual tools
print(time_now.invoke({"timezone_name": "America/New_York"}))
print(time_convert.invoke({
"time_str": "2024-01-12 14:00:00",
"from_tz": "America/New_York",
"to_tz": "Asia/Tokyo",
}))As Python Library
from mcp_time.operations import time_ops
time_ops.get_current_time("Europe/London")
time_ops.convert_timezone("2024-01-12 14:00:00", "US/Eastern", "Asia/Tokyo")
time_ops.get_time_difference("2024-01-12T10:00:00", "2024-01-12T14:30:00")
time_ops.format_time("2024-01-12T14:30:00", "%B %d, %Y at %I:%M %p")License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
A real clock for AI agents: current time, timezone conversion, and DST facts from the IANA tzdb.
Get the current time in any timezone and quickly look up common timezone info. Set a default timez…
Current time, time differences, DST changes and time conversion for any city or IANA time zone.
Time and date math for AI agents: Unix timestamp conversion, DST-correct time zone conversion, durations, epoch arithmetic, cron schedules, and holiday countdowns. Eight tools, no key.
Related MCP Servers
- AlicenseBqualityDmaintenanceProvides current time information and timezone conversion capabilities using IANA timezone names. Enables LLMs to get current time in any timezone and convert times between different timezones with automatic system timezone detection.2MIT
- AlicenseBqualityDmaintenanceEnables LLMs to retrieve current time information for specific IANA timezones or the local system timezone. It provides accurate ISO 8601 timestamps and detects daylight saving time status for requested locations.12MIT
- AlicenseBqualityDmaintenanceProvides current time information and timezone conversion capabilities using IANA timezone names with automatic system detection. It enables LLMs to fetch local or global times and convert specific timestamps between different regions.22MIT
- AlicenseNot gradedqualityDmaintenanceProvides current time information and timezone conversion capabilities using IANA timezone names and automatic system detection. It enables LLMs to fetch current times across different regions and convert specific times between timezones.MIT