Sandbox
@yokingma/time-mcp

MCP server for time tools in Claude Code and Cursor

Time MCP Server is an MCP connector that gives an agent access to time-related utilities. The tools cover current time, relative time, timestamps, days in a month, timezone conversion, and week numbers.

71 starsβ€’14 forksβ€’JavaScriptβ€’Updated 7mo ago
Who it's for

Builders who want their agent to handle time and timezone questions without guessing.

What it delivers

You can ask your agent for accurate time, date, and timezone info instead of retyping calculations yourself.

What it does

Current time tool

Returns the current time in UTC and local time.

Relative time tool

Calculates relative time values for a given input.

Timestamp tool

Gets a timestamp for a time value.

Month length tool

Returns how many days are in a month.

Timezone conversion tool

Converts time between timezones.

Week number tool

Returns the week number and ISO week for a year.

How to get it

  1. 1To install time-mcp for Claude Desktop automatically via Smithery
    npx -y @smithery/cli install @yokingma/time-mcp --client claude
  2. 2Run
    npm install -g time-mcp
  3. 3Run
    npx -y time-mcp

README

πŸš€ Time MCP Server: Giving LLMs Time Awareness Capabilities

smithery badge Github Stars License Report a bug

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 time
  • get_timestamp: Get timestamp for the time
  • days_in_month: Get days in month
  • convert_time: Convert time between timezones
  • get_week_year: Get week and isoWeek of the year

Installation

Installing via Smithery

To install time-mcp for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @yokingma/time-mcp --client claude

Manually install (Optional)

npm install -g time-mcp

using npx

npx -y time-mcp

Running on Claude Code

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.

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.

Files in the repo

Repository payloadβ€’12 top-level entries
  • assets
  • src
  • .gitignore
  • CLAUDE.md
  • Dockerfile
  • eslint.config.mjs
  • LICENSE
  • package.json
  • README.md
  • server.json
  • smithery.yaml
  • tsconfig.json

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More connectors

Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface

86k

High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph β€” average repo in milliseconds. 158 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.

43k

Universal provider proxy for OpenAI Codex & Claude Code β€” use any LLM (Claude, Gemini, Grok, DeepSeek, Ollama…) with Codex CLI, App, SDK, and Claude Code

14k
okf-memory/
okf-agent-memory

Git-native persistent memory for AI coding agents. Implements Google OKF v0.2 with sub-300Β΅s in-memory BM25 search, embedded MCP server, and progressive disclosure. Slashes token bloat by 80% with zero external databases or dependencies. Built in pure Go.

547
tirth8205/
code-review-graph

Local-first code intelligence graph for MCP and CLI. Builds a persistent map of your codebase so AI coding tools read only what matters, with benchmarked context reductions on reviews and large-repo workflows.

31k
2akouwu/
reverify

Stop your AI from making things up β€” it proposes, deterministic tools decide, every claim checked against ground truth with evidence. Grounded facts and context survive resets. Reverse engineering is the proving ground. MCP server + CLI.

1.1k