Gives your LLM actual time awareness through six straightforward tools. You get current_time for UTC and local timestamps, relative_time for things like "3 days ago", convert_time for timezone conversions, and utilities like days_in_month and get_week_year. It's the kind of thing you install once and forget about until Claude needs to know what time it is or calculate date differences. Runs via npx with stdio transport, so setup is just dropping a config block into your Claude Desktop, Cursor, or Windsurf settings. No external APIs, no authentication headaches. Useful anytime you're building agents that need to schedule, log timestamps, or reason about dates without hallucinating the current time.
Public tool metadata for what this MCP can expose to an agent.
current_timeGet the current date and time.2 paramsGet the current date and time.
formatstringh:mm A · h:mm:ss A · YYYY-MM-DD HH:mm:ss · YYYY-MM-DD · YYYY-MM · MM/DD/YYYYdefault: YYYY-MM-DD HH:mm:sstimezonestringrelative_timeGet the relative time from now.1 paramsGet the relative time from now.
timestringdays_in_monthGet the number of days in a month. If no date is provided, get the number of days in the current month.1 paramsGet the number of days in a month. If no date is provided, get the number of days in the current month.
datestringget_timestampGet the timestamp for the time.1 paramsGet the timestamp for the time.
timestringconvert_timeConvert time between timezones.3 paramsConvert time between timezones.
timestringsourceTimezonestringtargetTimezonestringget_week_yearGet the week and isoWeek of the year.1 paramsGet the week and isoWeek of the year.
datestringA Model Context Protocol (MCP) server implementation that allows LLMs to have time awareness capabilities.
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 yearTo install time-mcp for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @yokingma/time-mcp --client claude
npm install -g time-mcp
npx -y time-mcp
To add time-mcp to Claude Code, use the following command:
claude mcp add time-mcp -- npx -y time-mcp
To verify the installation:
claude mcp list
You should see time-mcp listed with a ✓ Connected status.
Once installed, you can use time-mcp tools in your conversations with Claude Code. For example:
The time-mcp server will automatically provide accurate time information to Claude.
Your mcp.json file will look like this:
{
"mcpServers": {
"time-mcp": {
"command": "npx",
"args": ["-y", "time-mcp"]
}
}
}
Add this to your ./codeium/windsurf/model_config.json file:
{
"mcpServers": {
"time-mcp": {
"command": "npx",
"args": ["-y", "time-mcp"]
}
}
}
MIT License - see LICENSE file for details.