MCP Hub
Back to servers

mcp-chrono

A comprehensive time and calendar utility server that provides timezone conversions, date arithmetic, and business day calculations for AI agents. It features extensive support for the Chinese lunar calendar, including almanac data, festivals, and public holiday tracking across multiple regions.

Updated
Feb 6, 2026

mcp-chrono

MCP server providing time, calendar, timezone, Chinese lunar calendar, almanac, and date utilities for AI agents.

Quick Start

Using npx (no installation needed)

npx mcp-chrono

Global install

npm install -g mcp-chrono
mcp-chrono

Usage with MCP Clients

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "chrono": {
      "command": "npx",
      "args": ["-y", "mcp-chrono"]
    }
  }
}

Claude Code

claude mcp add chrono -- npx -y mcp-chrono

Or with a custom data directory:

claude mcp add chrono -- npx -y mcp-chrono --data-dir /path/to/data

Cursor

Add to .cursor/mcp.json in your project root:

{
  "mcpServers": {
    "chrono": {
      "command": "npx",
      "args": ["-y", "mcp-chrono"]
    }
  }
}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "chrono": {
      "command": "npx",
      "args": ["-y", "mcp-chrono"]
    }
  }
}

Generic MCP client (mcp.json)

Any MCP-compatible client can use the standard mcp.json format:

{
  "mcpServers": {
    "chrono": {
      "command": "npx",
      "args": ["-y", "mcp-chrono"],
      "transportType": "stdio"
    }
  }
}

With custom data directory:

{
  "mcpServers": {
    "chrono": {
      "command": "npx",
      "args": ["-y", "mcp-chrono", "--data-dir", "/path/to/data"],
      "transportType": "stdio"
    }
  }
}

Data Directory

Holiday API responses are cached locally to avoid repeated network requests. Default location: ~/.mcp-chrono/

Override with --data-dir:

npx mcp-chrono --data-dir /tmp/mcp-chrono-data

Tools

Time & Timezone

get_current_time

Get current time in any IANA timezone with detailed components (timestamp, weekday, week of year, day of year, UTC offset, etc.)

ParameterTypeRequiredDefaultDescription
timezonestringNoUTCIANA timezone (e.g. Asia/Shanghai, America/New_York)
formatstringNoisoOutput format: iso, human, or relative

convert_timezone

Convert a datetime between two IANA timezones.

ParameterTypeRequiredDescription
datetimestringYesISO 8601 datetime (e.g. 2024-01-15T10:30:00)
from_timezonestringYesSource IANA timezone
to_timezonestringYesTarget IANA timezone

list_timezones

Search IANA timezones with current offsets and Chinese city names.

ParameterTypeRequiredDescription
querystringNoSearch by timezone name, city, or Chinese name
continentstringNoFilter by continent (e.g. Asia, Europe, America)

parse_timestamp

Parse Unix timestamps (seconds/milliseconds) or ISO 8601 strings into date components.

ParameterTypeRequiredDefaultDescription
inputstring | numberYes-Unix timestamp (seconds or milliseconds) or ISO 8601 string
timezonestringNoUTCIANA timezone for output

Date Calculation

calculate_time

Add/subtract time from a date. Returns a new date after applying the offset.

Three modes: gregorian (standard date arithmetic), lunar (Chinese calendar arithmetic), anchor (offset from a named festival like 春节 or Thanksgiving).

ParameterTypeRequiredDefaultDescription
modestringNogregorianCalculation mode: gregorian, lunar, or anchor
base_datestringNonowBase date in ISO format. Defaults to current time if omitted
timezonestringNoUTCIANA timezone for the base date
yearsintegerNo-Years to add (negative to subtract)
monthsintegerNo-Months to add (negative to subtract)
daysintegerNo-Days to add (negative to subtract)
hoursintegerNo-Hours to add (negative to subtract)
minutesintegerNo-Minutes to add (negative to subtract)
festivalstringNo-Festival name for anchor mode (e.g. 春节, Christmas, Thanksgiving)
festival_yearintegerNo-Year to resolve festival date for anchor mode

date_diff

Calculate the difference between two dates in years, months, days, hours, minutes, and total counts.

ParameterTypeRequiredDefaultDescription
startstringYes-Start date in ISO 8601 format
endstringYes-End date in ISO 8601 format
timezonestringNoUTCIANA timezone for parsing dates

countdown

Countdown from now to a target date with remaining days/hours/minutes/seconds.

ParameterTypeRequiredDefaultDescription
targetstringYes-Target date/time in ISO 8601 format
timezonestringNoUTCIANA timezone for the target date

calculate_business_days

Count or add business days, skipping weekends and optionally public holidays (supports CN makeup workdays).

ParameterTypeRequiredDefaultDescription
actionstringYes-count (count business days between two dates) or add (add business days to a date)
fromstringYes-Start date in YYYY-MM-DD format
tostringNo-End date in YYYY-MM-DD format (required for count)
business_daysintegerNo-Number of business days to add (required for add, negative to subtract)
countrystringNo-Country code for public holidays (e.g. CN, US)
timezonestringNoUTCIANA timezone

Calendar & Festivals

convert_calendar

Convert between Gregorian and Chinese Lunar calendar. Returns Ganzhi (干支), zodiac, solar terms, festivals, constellation.

ParameterTypeRequiredDefaultDescription
directionstringYes-gregorian_to_lunar or lunar_to_gregorian
yearintegerYes-Year
monthintegerYes-Month (1–12)
dayintegerYes-Day (1–31)
isLeapMonthbooleanNofalseFor lunar_to_gregorian: whether the month is a leap month (闰月)

get_festivals

List festivals, solar terms, and public holidays within a date range. Filterable by type.

ParameterTypeRequiredDefaultDescription
start_datestringYes-Start date in YYYY-MM-DD format
end_datestringYes-End date in YYYY-MM-DD format
countrystringNoCNCountry code for public holidays (e.g. CN, US, HK)
typesstring[]No-Filter by type: lunar_festival, solar_festival, solar_term, public_holiday

get_month_info

Month details: day count, first/last weekday, leap year, quarter, week count.

ParameterTypeRequiredDescription
yearintegerYesYear (e.g. 2024)
monthintegerYesMonth (1–12)

Chinese Almanac

get_almanac

Chinese almanac (黄历) for a date: 宜/忌 activities, lucky directions (喜神/财神/福神), conflict zodiac, 彭祖百忌, 吉神宜趋, 凶煞宜忌, 天神, 纳音, and more.

ParameterTypeRequiredDefaultDescription
datestringNotodayDate in YYYY-MM-DD format

Persistent Countdowns

manage_countdown

CRUD for persistent countdown timers, stored as JSON on disk.

ParameterTypeRequiredDefaultDescription
actionstringYes-set, get, list, or delete
idstringNo-Countdown ID (required for get / delete; auto-generated for set if omitted)
namestringNo-Name/description (required for set)
target_datestringNo-Target date in ISO 8601 format (required for set)
timezonestringNoUTCIANA timezone

Supported Regions

RegionFestivalsPublic Holiday API
CN27 festivals (lunar + solar)timor.tech (includes makeup workdays)
US10 federal holidaysdate.nager.at
HK17 public holidays (lunar, Easter, Ching Ming, fixed)date.nager.at

License

MIT

Reviews

No reviews yet

Sign in to write a review