business-days-mcp
This server provides offline business-day arithmetic, SLA due-time calculation, and cron/RRULE parsing with no network calls. All tools are pure functions that return typed results for invalid input and use bounded loops to prevent expensive requests.
Business days: Check working days, find next/previous, add/subtract business days, count business days between dates, get first/last business day of a month. Holiday-aware for ~150 countries and subdivisions (e.g., England vs. Scotland, individual US states).
SLA due time: Calculate when an N-business-hour SLA expires, counting only hours within configurable open/close times on working days; if start is outside business hours, it waits until next opening.
Cron expressions: Validate, explain in plain English, and compute up to 60 next occurrences for standard five-field cron expressions.
iCalendar RRULEs: Validate, explain, and expand recurrence rules (supporting INTERVAL, COUNT, UNTIL, BYDAY, BYMONTHDAY, BYMONTH) into up to 60 upcoming occurrences from a start date.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@business-days-mcp Is 2026-12-28 a business day in the UK?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
business-days-mcp
An MCP server for the date arithmetic that support, billing and operations teams actually do: is this a working day, when is this SLA due, what is the next working day after a bank holiday — plus cron and recurrence-rule parsing for the recurring side of the same job.
It runs offline. No network calls, no stored data, no model calls — every answer is computed from bundled public-holiday rules.
What it does
Business days and SLAs — holiday-aware for ~150 countries and their
subdivisions (England and Scotland differ; so do US states), via the
holidays package.
Tool | Answers |
| Is this a working day? If not, is it a weekend or a named holiday? |
| The next/last working day around a date |
| Move ±N working days from a date |
| How many working days between two dates (half-open) |
| Month boundaries |
| When does an N-business-hour SLA fall due, counting only open hours? |
Cron and recurrence — parsing only. Nothing is scheduled, stored, or executed; there are no timers and no job store. If you want something run on a schedule, this is deliberately not that tool.
Tool | Answers |
| Is this cron valid, and what does it mean in English? |
| When would it next fire? |
| Same, for an RFC 5545 RRULE |
| Expand an RRULE to its next occurrences |
Related MCP server: business-day-mcp
Install and run
The hosted endpoint needs no install at all — see
Client configuration. To run it yourself, uvx
fetches and runs it:
uvx --from git+https://github.com/Vessark/business-days-mcp business-days-mcpFrom a clone:
git clone https://github.com/Vessark/business-days-mcp
cd business-days-mcp
uv sync && uv run business-days-mcp
uv run pytest # the tests are the documentationClient configuration
Hosted — nothing to install
The quickest way in. The same tools, no install, no credentials:
{
"mcpServers": {
"vessark": {
"url": "https://vessark.com/mcp"
}
}
}Run it yourself
If you would rather not depend on someone else's uptime, run it locally — it is the same code, and it never touches the network:
{
"mcpServers": {
"business-days": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/Vessark/business-days-mcp",
"business-days-mcp"
]
}
}
}Examples
// is_business_day — 2026-12-28, UK
{"date": "2026-12-28", "country": "GB"}
→ {"is_business_day": false, "reason": "holiday: Boxing Day (substitute day)"}
// sla_due_time — 8 business hours from Monday 16:00
{"start": "2026-07-27T16:00", "business_hours": 8}
→ {"due": "2026-07-28T16:00:00", "started_within_business_hours": true}
// explain_cron_expression
{"expression": "30 9 * * MON-FRI"}
→ {"explanation": "At 09:30, on Monday through Friday."}Design notes
Every tool is a pure function of its arguments, which is why the test suite is mostly tables. Invalid input is an ordinary typed result, never an exception — a model that gets an argument wrong gets a readable reason and can correct itself. Every loop that a caller can influence is bounded, so no request can buy an expensive computation. Error messages never echo what you sent, so the server can't be used to relay text into someone else's agent.
Known limits, stated rather than hidden: a working week is Monday–Friday, so countries with Sunday–Thursday weeks are wrong under this assumption; holiday data covers only the years the underlying dataset knows about, and a date outside that range is refused rather than silently answered as an ordinary working day.
Prior art
fbdo/business-day-mcp covers
business-day and holiday arithmetic and predates this server. If that is all
you need, use it — it also exposes timezone-aware "today" and holiday listing,
which this server does not.
This one was built for a different centre of gravity: SLA clocks that count
only business hours, and cron / RRULE parsing for the recurring side of the
same work. The overlap in the business-day tools is real and the names are
conventional; both servers are MIT licensed and both build on the excellent
holidays package.
Releasing
Bump the version in both pyproject.toml and server.json, then push a
matching tag:
git tag v0.2.0 && git push origin v0.2.0That runs the test suite, checks the tag agrees with both version fields, publishes to PyPI, and republishes to the MCP registry. Both use GitHub OIDC — PyPI via Trusted Publishing — so there is no API token in this repository, in a secret store, or on any machine.
About
Built and maintained by Vessark. The tools in this repository are the free tier and are open source under the MIT licence. Vessark's workspace tools — the ones that operate on a connected workspace — are the commercial product and are not open source.
Issues and pull requests welcome.
Available Tools
14 toolsadd_business_daysAInspect
Move a number of working days forward or backward from a date, skipping weekends and public holidays. Use a negative number to count backwards. Zero returns the date unchanged.
Inputs: date (required), days (required), country, subdivision.
business_days_betweenAInspect
Counts the working days between two dates, excluding weekends and public holidays. The range is half-open — the start date counts and the end date does not — so Monday to Tuesday is one working day. The result is negative when the end precedes the start.
Inputs: end_date (required), start_date (required), country, subdivision.
explain_cron_expressionAInspect
Translate a five-field cron expression into plain English. Supports ranges, lists, steps, and month or weekday names. This describes the expression; it never schedules or executes anything.
Inputs: expression (required).
explain_recurrence_ruleAInspect
Describes an iCalendar recurrence rule (RRULE) in plain English. Nothing is scheduled or executed.
Inputs: rule (required).
first_business_day_of_monthCInspect
Returns the first working day of a given month.
Inputs: year (required), month (required), country, subdivision.
is_business_dayAInspect
Returns whether a date is a working day, accounting for weekends and public holidays in the given country or subdivision.
Inputs: date (required), country, subdivision.
last_business_day_of_monthBInspect
Returns the last working day of a given month.
Inputs: year (required), month (required), country, subdivision.
next_business_dayBInspect
Find the first working day after a date.
Inputs: date (required), country, subdivision.
next_cron_occurrencesAInspect
Computes when a five-field cron expression would next fire after a given start time, returning up to 60 timestamps. A pure calculation over the expression: no job is created, stored, or executed.
Inputs: start (required), expression (required), count.
next_recurrence_occurrencesAInspect
Expand an iCalendar recurrence rule (RRULE) into its next occurrences from a start date and time, honouring INTERVAL, COUNT, UNTIL, BYDAY, BYMONTHDAY, and BYMONTH. A pure calculation: it creates no schedule, stores nothing, and runs nothing.
Inputs: rule (required), start (required), count.
previous_business_dayBInspect
Find the last working day before a date.
Inputs: date (required), country, subdivision.
sla_due_timeAInspect
Works out when a service-level agreement falls due, counting only business hours on working days. If the clock starts outside business hours it waits until the next working day opens. Business hours default to 09:00-17:00 and times are wall-clock in the calendar's own locality.
Inputs: start (required), business_hours (required), opens, closes, +2 more.
validate_cron_expressionAInspect
Checks whether a five-field cron expression is syntactically valid. Parsing only; nothing is scheduled or run.
Inputs: expression (required).
validate_recurrence_ruleAInspect
Check whether an iCalendar recurrence rule (RRULE) is valid and supported. Parsing only; nothing is scheduled.
Inputs: rule (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 14 tools
Each tool targets a distinct function: cron vs. recurrence rule vs. business day queries. Tools like next_cron_occurrences and next_recurrence_occurrences are clearly differentiated by input type, and no two tools have overlapping purposes.
All tools follow a consistent verb_noun pattern in snake_case (e.g., explain_cron_expression, next_business_day, validate_cron_expression). No mixed conventions or vague verbs.
14 tools is well-scoped for the domain, covering both calendar recurrence patterns and business day arithmetic without bloat. Each tool earns its place.
The tool surface covers all key operations: validation, explanation, occurrence calculation for cron and RRULE; and full business day functions (is, next, previous, add, count, first/last of month, SLA due time). No obvious gaps.
Maintenance
Related MCP Connectors
Public holidays for 150+ countries, business-day maths and timezone lookup
Business-day maths with real public holidays: days between dates, deadlines and SLA due dates.
Date/time math for agents: business days, holidays, time zones, cron, RRULE. 25 free calls/day.
Deterministic date arithmetic with auditable receipts: business days, due dates, holidays.
Related MCP Servers
- AlicenseAqualityDmaintenanceA lightweight MCP server providing comprehensive date, time, and day-of-week information. It supports relative time calculations, timezone conversions, and detailed calendar metadata like week numbers and quarters.58 PyPI1MIT
- AlicenseAqualityDmaintenanceMCP server for business-day arithmetic with country-aware holiday calendars. It offers tools to check, calculate, and list business days and holidays for over 60 countries.9MIT
- AlicenseAqualityCmaintenanceProvides deterministic business-day calculations for AI agents, correctly handling country-specific weekends and public holidays.665 npm1Apache 2.0
- AlicenseNot gradedqualityDmaintenanceA zero-signup business-day date arithmetic API that allows adding/subtracting working days, counting business days between two dates, and testing if a date is a business day, with custom holidays.MIT