OpenWorkdays
A 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.
README
OpenWorkdays
A zero-signup business-day / working-day date-arithmetic API. No account, no API key — one GET request.
Add or subtract working days, count business days between two dates, or test whether a date is a business day — with your own holiday list. Pure UTC date math, returned as JSON. Built so autonomous AI agents get a deterministic date endpoint — an agent has no human to do a signup, and LLMs are measurably unreliable at date arithmetic.
Live: https://openworkdays.vercel.app
Quick start
curl "https://openworkdays.vercel.app/api/businessdays?start=2026-05-15&days=5"
Sample response:
{
"mode": "add",
"start": "2026-05-15",
"days": 5,
"result": "2026-05-22",
"resultWeekday": "fri",
"startIsBusinessDay": true,
"weekend": ["sat", "sun"],
"holidaysApplied": 0,
"engine": "date-utc-v0.1",
"computedAt": "2026-05-17T00:00:00.000Z"
}
Any error returns JSON with an error key and an appropriate HTTP status
(400 bad params, 429 rate limited, 405 wrong method).
The three modes
The endpoint is always GET /api/businessdays. The mode is inferred from the
params you pass.
add — add/subtract working days
Params: start=YYYY-MM-DD, days=N (integer, +/- ok, |N| <= 10000),
optional weekend=, optional holidays=.
curl "https://openworkdays.vercel.app/api/businessdays?start=2026-05-15&days=5"
N=0 returns start unchanged (even if start is itself non-working).
diff — count business days between two dates
Params: start=YYYY-MM-DD, end=YYYY-MM-DD, optional weekend=, optional
holidays=. Inclusive of both endpoints. Result is negative if
end < start.
curl "https://openworkdays.vercel.app/api/businessdays?start=2026-05-15&end=2026-06-15&holidays=2026-05-25"
is — is this date a business day?
Params: date=YYYY-MM-DD, optional weekend=, optional holidays=.
curl "https://openworkdays.vercel.app/api/businessdays?date=2026-05-16"
Returns isBusinessDay plus a reason of "weekend", "holiday", or null.
Shared params
weekend(defaultsat,sun) — comma list. Tokens are case-insensitive from{sun,mon,tue,wed,thu,fri,sat}, or numeric0-6where0=Sunday…6=Saturday(matches JSgetUTCDay()). Cannot mark all 7 days as weekend.holidays— comma list ofYYYY-MM-DDdates treated as non-working (max 1000). Strictly validated.
Errors
Errors are JSON with an error key:
400— bad/missing params (missing start,invalid days (must be integer),invalid weekend token,invalid holiday date,invalid date,specify a mode(includes ausageobject), …)429— rate limited (Retry-Afterheader +retryAfterSec)405— wrong HTTP method (onlyGET/OPTIONSallowed)
JavaScript
const base = "https://openworkdays.vercel.app";
const r = await fetch(
base + "/api/businessdays?start=2026-05-15&days=5"
);
const out = await r.json(); // { mode:"add", result:"2026-05-22", resultWeekday:"fri", ... }
Use as an MCP tool (AI agents / Claude / Cursor / LLM clients)
OpenWorkdays is also a remote MCP server, so an agent can call it as a tool with no signup, no API key, no OAuth.
- Endpoint:
https://openworkdays.vercel.app/api/mcp - Transport: Streamable HTTP, stateless (POST JSON-RPC 2.0, single
application/jsonresponse — no sessions, no SSE) - Exposes exactly one tool:
businessdays— the mode (add/diff/is) is inferred from which args you pass, returning the same JSON as the REST endpoint (also asstructuredContent)
Drop this into any MCP client config (Claude Desktop, Cursor, or any client that speaks the Streamable HTTP transport):
{ "mcpServers": { "openworkdays": { "url": "https://openworkdays.vercel.app/api/mcp" } } }
Quick smoke test:
curl -s -X POST https://openworkdays.vercel.app/api/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"businessdays","arguments":{"start":"2026-05-15","days":5}}}'
Over MCP, an upstream error comes back as a tool result with isError: true.
Why
Every public business-day API gates behind an account or API key:
workingdays.org is test-only / subscription;
API Ninjas and Holiday API
need keys; timeanddate is a $299 product;
the RapidAPI business-day APIs need a RapidAPI key; Microsoft's "Calculate
Working Day" connector is Power-Platform-framework-gated and UK-bank-holidays
only. OpenWorkdays is a single anonymous GET — no signup, no key. That is
especially useful to autonomous agents, which have no human in the loop to
complete a signup. And because LLMs are measurably unreliable at date
arithmetic, an agent needs a deterministic endpoint rather than guessing.
Limitations
- Date-only, pure UTC arithmetic — no time-of-day, no DST, no timezones (that is recurrence-rule territory, intentionally out of scope for v0.1).
- Caller-supplied holidays only — there is no built-in country holiday
database. This is deliberate: we do not fake-compete on the
7000-holiday-DB axis where funded incumbents win. You pass the
holidays=list you care about. - Best-effort per-instance IP rate limit — a soft abuse brake, not a guarantee (serverless instances are ephemeral and not shared).
- MIT licensed and self-hostable — see below.
Self-host — it's zero-dependency files
The entire API is two single zero-dependency Node serverless functions:
api/businessdays.js (REST) and api/mcp.js
(remote MCP). No npm install, no deps at all. Deploy the folder to Vercel
(zero-config /api detection) or drop the handlers into any Node serverless
runtime.
git clone https://github.com/SolvoHQ/openworkdays
cd openworkdays
npx vercel --prod
License
MIT — see LICENSE.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。