Time Regulator MCP
Time you can audit, for AI agents.
Website | Docs
An MCP server for current time, timezone conversion, business days and market calendars. It computes every answer itself from open data, and every answer names the rule it used, the data versions, and whether the result is confirmed or projected. It does not call any third-party time, holiday or market API.
Public beta. No sign-in, no API key, no stored user data.
Connect
Server address:
https://mcp.appliedhorology.com/mcp
Any client that supports remote MCP servers over Streamable HTTP can use the same address with no authentication. Step-by-step instructions for each client are in the documentation.
Tools
Seven tools, all read-only. Each rejects arguments it does not define.
| Tool |
What it answers |
now |
Current time in an IANA timezone, with UTC offset, abbreviation and DST flag. |
convert |
A time converted between timezones. DST gaps and overlaps are rejected with both candidates unless you choose one. |
is_business_day |
Whether a date is a business day: weekends and national holidays for a country, or an exchange's calendar. |
add_business_days |
A date moved forward or back by a number of business days. |
market_status |
Whether an exchange is open right now, with the last close and the next open. |
next_market_open |
The next time an exchange opens, in local time and UTC. |
staleness |
Whether a timestamp is older than a limit, in wall-clock time or in an exchange's open-market time. |
What an answer looks like
A shortened reply from market_status for the NYSE:
{
"exchange": { "code": "XNYS", "name": "New York Stock Exchange", "timezone": "America/New_York" },
"is_open": false,
"reason": "after_close",
"explain": "XNYS is closed: today's session ended 2026-11-09 16:00 EST. Next open: 2026-11-10 09:30 EST. Regular session only; pre-market and after-hours are not modeled.",
"next_open": {
"opens_at_local": "2026-11-10T09:30:00-05:00",
"closes_at_local": "2026-11-10T16:00:00-05:00"
},
"calendar_data_version": "2026-10-25+ee498718",
"tzdata_version": "2026f",
"status": "projected"
}
Every result includes:
retrieved_at (UTC) and clock_source
tzdata_version and calendar_data_version
explain, a short statement of the rule used, such as which holiday was skipped and for which calendar
status: confirmed, projected or error
Answers about the future are projected. Fixed-rule holidays are computed from their rules, and governments and exchanges can still announce changes or one-off closures. A date that is not yet announced is never reported as certain.
Coverage
|
Covered |
Not covered |
| Timezones |
Every IANA zone, 1970 to 2100. |
Years outside that range. |
| Holidays |
United States, Canada (Ontario), United Kingdom (England and Wales), EU member states. 1990 to 2040. |
US states, other Canadian provinces, Scotland, Northern Ireland, regions, other countries. |
| Markets |
NYSE, Nasdaq, TSX, London Stock Exchange, Euronext venues, Xetra. Regular sessions, early closes and late opens. |
Pre-market, after-hours, other exchanges, ad hoc closures before they are announced. |
Outside these windows the server refuses and says so instead of guessing.
The clock is the host's synced clock. It is not an atomic or sub-second reference.
How it is checked
- Timezones come from IANA tzdata. Holidays and sessions are exported from open-source libraries into JSON at build time and are never typed by hand.
- Differential tests compare the engine with independent Python reference libraries (
zoneinfo, holidays, exchange_calendars) for every date in the window, per country and exchange. They run on every change.
- The six exchanges are compared with their official published schedules.
- National holidays for the US and 21 of the 27 EU members are compared with government, gazette or central-bank sources. Every known difference is listed with its explanation.
- Not yet verified against an official source: Bulgaria, Estonia, Finland, Hungary, Lithuania and Portugal. Their holidays come from the open-source library only.
Privacy
No accounts and no stored user data. For each tool call the hosted server logs the tool name, the calendar or exchange it resolved, and the outcome. It does not log arguments, request contents, caller timestamps or addresses. The client address is used only as a rate-limit key and is never stored.
Limits
About 600 requests a minute per client address. Over that you get HTTP 429 with Retry-After: 60. Request bodies are capped at 16 KB. Every tool bounds its inputs. The exact limits are in the documentation.
Run it locally
The same engine and data ship as a stdio binary, time-regulator-mcp. It makes no network calls and writes no logs. Prebuilt binaries for Linux, macOS and Windows are attached to each GitHub release. To build it yourself:
cargo build --release -p trm-core --bin time-regulator-mcp
Point a client at the file:
{ "mcpServers": { "time-regulator": { "command": "/path/to/time-regulator-mcp" } } }
Timezone and calendar data are compiled in, so newer data needs a rebuild.
Development
cargo test -p trm-core --release # unit and protocol tests
worker-build --release # Worker bundle
python3 -m venv .venv && .venv/bin/pip install -r tools/requirements.txt
python3 tests/oracle/differential.py # timezones vs Python zoneinfo
.venv/bin/python tests/oracle/calendars_differential.py # calendars vs reference libraries
python3 tests/oracle/official_holidays.py # national holidays vs official sources
python3 tools/build_docs.py # docs/index.html, built from the engine (needs the local binary)
Data is refreshed with python3 tools/build_tzdata.py and python3 tools/export_calendars.py, each with a --check or --verify mode. The full list of verification scripts is in tests/oracle/.
Calendar scope notes: GB is the England and Wales bank holiday list. CA is Ontario's public holidays. The Toronto Stock Exchange, Xetra and the other exchanges keep their own trading calendars apart from the national lists. These notes also appear in the explain and scope fields of each answer.
Disclaimer
Provided as is. Not for trading, legal or safety decisions. Verify against official sources.
License
Apache-2.0. Third-party data notices are in THIRD_PARTY_NOTICES.md.
Copyright 2026 Applied Horology
Contact: hello [at] appliedhorology.com