1
0
Fork 0
mirror of https://github.com/yokingma/time-mcp.git synced 2026-04-27 03:45:53 +03:00
No description
Find a file
2026-01-31 13:24:02 +08:00
assets release: 1.0.0 2025-03-21 17:34:53 +08:00
src chore: bump version to 1.0.6 2026-01-31 11:55:08 +08:00
.gitignore chore: publish to the official mcp registry 2025-10-15 15:01:48 +08:00
CLAUDE.md chore: upgrade to MCP SDK v1.25 with Zod validation 2026-01-31 11:48:09 +08:00
Dockerfile Add Dockerfile 2025-03-24 09:41:35 +00:00
eslint.config.mjs release: 1.0.0 2025-03-21 17:34:53 +08:00
LICENSE release: 1.0.0 2025-03-21 17:34:53 +08:00
package.json chore: bump version to 1.0.6 2026-01-31 11:55:08 +08:00
README.md chore: update README (run with Claude code) 2026-01-31 13:24:02 +08:00
server.json chore: update mcp server.json configuration 2026-01-31 12:19:29 +08:00
smithery.yaml Add Smithery configuration 2025-03-24 09:41:36 +00:00
tsconfig.json release: 1.0.0 2025-03-21 17:34:53 +08:00

🚀 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.