time-mcp
This server provides LLMs with comprehensive time awareness and manipulation capabilities:
Get current time - Retrieve current date and time in various formats (12/24-hour, different date formats) with optional timezone specification
Calculate relative time - Determine how much time has passed or will pass relative to a specific date/time (e.g., "2 hours ago", "in 3 days")
Convert timestamps - Generate Unix timestamps from date/time strings for precise time calculations
Get days in month - Find out how many days are in a specified month or the current month
Convert between timezones - Transform times from one IANA timezone to another (e.g., New York to Tokyo)
Get week numbers - Determine the week and ISO week numbers of the year for any given date
These tools enable LLMs to answer questions about current time, perform time calculations, handle timezone conversions, and work with various date/time formats.
Allows integration with Windsurf in Codeium, enabling time awareness capabilities for LLMs within the Codeium environment.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@time-mcp what time is it in Tokyo right now?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🚀 Time MCP Server: Giving LLMs Time Awareness Capabilities
A Model Context Protocol (MCP) server implementation that allows LLMs to have time awareness capabilities.
Tools
current_time: Get current time (UTC and local time)relative_time: Get relative timeget_timestamp: Get timestamp for the timedays_in_month: Get days in monthconvert_time: Convert time between timezonesget_week_year: Get week and isoWeek of the year
Related MCP server: Time MCP Server
Installation
Installing via Smithery
To install time-mcp for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @yokingma/time-mcp --client claudeManually install (Optional)
npm install -g time-mcpusing npx
npx -y time-mcpRunning on Claude Code
To add time-mcp to Claude Code, use the following command:
claude mcp add time-mcp -- npx -y time-mcpTo verify the installation:
claude mcp listYou should see time-mcp listed with a ✓ Connected status.
Usage in Claude Code
Once installed, you can use time-mcp tools in your conversations with Claude Code. For example:
"What time is it now?"
"Convert 2:00 PM from New York to Tokyo time"
"How many days are in this month?"
"What week of the year is it?"
The time-mcp server will automatically provide accurate time information to Claude.
Running on Cursor
Your mcp.json file will look like this:
{
"mcpServers": {
"time-mcp": {
"command": "npx",
"args": ["-y", "time-mcp"]
}
}
}Running on Windsurf
Add this to your ./codeium/windsurf/model_config.json file:
{
"mcpServers": {
"time-mcp": {
"command": "npx",
"args": ["-y", "time-mcp"]
}
}
}License
MIT License - see LICENSE file for details.
Available Tools
6 toolsconvert_timeB
Convert time between timezones.
Inputs: time (required), sourceTimezone (required), targetTimezone (required).
current_timeA
Get the current date and time.
Inputs: format, timezone.
days_in_monthA
Get the number of days in a month. If no date is provided, get the number of days in the current month.
Inputs: date.
get_timestampD
Get the timestamp for the time.
Inputs: time.
get_week_yearB
Get the week and isoWeek of the year.
Inputs: date.
relative_timeC
Get the relative time from now.
Inputs: time (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool targets a distinct time-related operation with no overlap. convert_time, current_time, days_in_month, get_timestamp, get_week_year, and relative_time all serve unique purposes.
Names follow snake_case and are mostly descriptive, but there is slight inconsistency: some start with 'get' (get_timestamp, get_week_year) while others are adjective+noun (current_time) or verb+noun (convert_time).
Six tools is an appropriate number for a time utility server, covering essential operations without being excessive or minimal.
Common time operations are covered (conversion, current time, days in month, timestamp, week/year, relative time). Missing features like date arithmetic or time difference are minor gaps that don't hinder typical use.
Maintenance
Related MCP Connectors
Current time, timezone conversion & date math for AI agents. On Cloudflare Workers.
A real clock for AI agents: current time, timezone conversion, and DST facts from the IANA tzdb.
Wall-clock awareness for LLM agents. Two tools: elapsed-time-between-turns + day rollover detection.
Deterministic time tools for AI agents: timezone conversion, business-day math, cron interpretation.
Related MCP Servers
- AlicenseBqualityDmaintenanceGives large language models time awareness capabilities through various time-related functions including current time retrieval, timezone conversion, and relative time calculations.6MIT
- AlicenseBqualityDmaintenanceProvides time and timezone functionality for LLMs, enabling them to get current time information across different timezones and convert times between zones.2MIT
- 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
- AlicenseAqualityDmaintenanceProvides accurate system time to LLM applications with multi-timezone support via a simple tool call.1MIT