# time-mcp

Gives LLMs time awareness by exposing tools for current timestamps, timezone conversions, and calendar calculations.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 72
- Author: yokingma
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/yokingma/time-mcp
- Updated: 2026-01-31
- HTML: https://affpapa.org/en/nevibecode/mcp/time-mcp

## What it does

LLMs lack an internal clock and tend to guess when asked about current dates. This server equips coding agents with direct time-checking functions. Models can inspect UTC or local time, generate Unix timestamps, and evaluate relative offsets.

The toolset includes `convert_time` for shifting hours across timezones, `days_in_month` for calendar math, and `get_week_year` for ISO week lookups. A local Node.js environment is required beforehand because execution relies on `npx`.

## Requirements
- Needs: Node.js (commands run via npx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add time-mcp -- npx -y time-mcp
```

### Codex

**Platform CLI**
```bash
codex mcp add time-mcp -- npx -y time-mcp
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "time-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "time-mcp"
            ]
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "time-mcp": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "time-mcp"
            ]
        }
    }
}
```

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add time-mcp npx -y time-mcp
```

## When to use it
- fetch the exact current time in UTC or local timezone
- convert specific timestamps between different timezones
- calculate the total number of days in any month
- retrieve the current ISO calendar week number

## Example prompts
- What time is it right now in Tokyo and London?
- How many days are left in this month?
- Check which ISO week of the year we are in.

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 386989
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33918
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81115
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119160
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47392
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43872

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
