{"$schema":"https://static.modelcontextprotocol.io/schemas/mcp-server-card/v1.json","version":"1.0","protocolVersion":"2025-06-18","serverInfo":{"name":"dev.workers.quietworklabs.business-days/business-days","title":"Business Day Calendars","version":"1.0.0"},"description":"Business-day arithmetic on settlement calendars: NYSE (with early closes), Federal Reserve (Fedwire/FedACH), TARGET2 (EUR) and UK (England & Wales) bank holidays. Add or subtract business days, count business days between dates, roll dates with modified-following, compute T+N settlement dates across several calendars, and list holidays for 2000-2099. All dates YYYY-MM-DD. calendars= takes XNYS, FED, TARGET2, UK-ENG (comma list = joint calendar). GET /v1/is-business-day?date=, /v1/add-business-days?date=&days= (negative ok), /v1/settlement-date?trade_date=&t=1, /v1/business-days-between?start=&end=, /v1/adjust?date=&convention=modified_following, /v1/holidays?calendar=&year=. Rules computed deterministically and checked against NYSE, Federal Reserve and GOV.UK published calendars. Each tool allows 5 free calls per client per day; after that it is paid per call in USDC on Base via x402 (payment in _meta[\"x402/payment\"]).","websiteUrl":"https://business-days.quietworklabs.workers.dev","transport":{"type":"streamable-http","endpoint":"/mcp"},"capabilities":{"tools":{"listChanged":false}},"authentication":{"required":false,"schemes":[]},"tools":[{"name":"is_business_day","title":"Is a date a business day on the given calendars","description":"Whether a date is a business day on one or more settlement calendars (NYSE, Fedwire/FedACH, TARGET2, UK), which holiday closes it, NYSE early closes, and the previous/next business day. Deterministic, no AI. Price: $0.001 USDC per call via x402 (Base); the first 5 calls per day per client are free.","inputSchema":{"type":"object","properties":{"date":{"type":"string","description":"Date YYYY-MM-DD","examples":["2026-11-27"]},"calendars":{"type":"string","description":"Comma list of calendars; a day is a business day only if open in all. XNYS (NYSE), FED (Fedwire/FedACH), TARGET2 (EUR), UK-ENG. Aliases: NYSE, US, ACH, EUR, UK. Default FED.","examples":["XNYS,FED"]}},"required":["date"]},"annotations":{"readOnlyHint":true,"openWorldHint":true}},{"name":"add_business_days","title":"Add or subtract N business days","description":"Adds (or with negative days subtracts) N business days to a date on a joint calendar (NYSE, Fedwire/FedACH, TARGET2, UK) and lists the holidays skipped. Deterministic, no AI. Price: $0.001 USDC per call via x402 (Base); the first 5 calls per day per client are free.","inputSchema":{"type":"object","properties":{"date":{"type":"string","description":"Start date YYYY-MM-DD","examples":["2026-12-23"]},"days":{"type":"string","description":"Business days to add, -2000..2000","examples":["2"]},"calendars":{"type":"string","description":"Comma list of calendars; a day is a business day only if open in all. XNYS (NYSE), FED (Fedwire/FedACH), TARGET2 (EUR), UK-ENG. Aliases: NYSE, US, ACH, EUR, UK. Default FED.","examples":["XNYS,FED"]}},"required":["date","days"]},"annotations":{"readOnlyHint":true,"openWorldHint":true}},{"name":"settlement_date","title":"T+N settlement date for a trade date","description":"Settlement date T+N for a trade date on a joint calendar. Default XNYS,FED with t=1 (US equities since 28 May 2024). If the trade date is not a business day it is first rolled to the next one. Deterministic, no AI. Price: $0.001 USDC per call via x402 (Base); the first 5 calls per day per client are free.","inputSchema":{"type":"object","properties":{"trade_date":{"type":"string","description":"Trade date YYYY-MM-DD","examples":["2026-12-24"]},"t":{"type":"string","description":"Settlement lag in business days (0-10). Default 1","examples":["1"]},"calendars":{"type":"string","description":"Calendars; default XNYS,FED","examples":["XNYS,FED"]}},"required":["trade_date"]},"annotations":{"readOnlyHint":true,"openWorldHint":true}},{"name":"business_days_between","title":"Count business days between two dates","description":"Counts business days between two dates on a joint calendar: days after start up to and including end (inclusive=true also counts start). Negative if end is before start. Lists weekday holidays in range. Max 10 years. Deterministic, no AI. Price: $0.001 USDC per call via x402 (Base); the first 5 calls per day per client are free.","inputSchema":{"type":"object","properties":{"start":{"type":"string","description":"Start date YYYY-MM-DD","examples":["2026-01-01"]},"end":{"type":"string","description":"End date YYYY-MM-DD","examples":["2026-12-31"]},"inclusive":{"type":"string","description":"true to count the start date too","examples":["false"]},"calendars":{"type":"string","description":"Comma list of calendars; a day is a business day only if open in all. XNYS (NYSE), FED (Fedwire/FedACH), TARGET2 (EUR), UK-ENG. Aliases: NYSE, US, ACH, EUR, UK. Default FED.","examples":["XNYS,FED"]}},"required":["start","end"]},"annotations":{"readOnlyHint":true,"openWorldHint":true}},{"name":"adjust_date","title":"Roll a date to a business day (modified following etc.)","description":"Rolls a date that falls on a weekend or holiday using a business-day convention: following, modified_following, preceding, modified_preceding. Typical for payment, coupon and invoice due dates. Deterministic, no AI. Price: $0.001 USDC per call via x402 (Base); the first 5 calls per day per client are free.","inputSchema":{"type":"object","properties":{"date":{"type":"string","description":"Date YYYY-MM-DD","examples":["2027-12-25"]},"convention":{"type":"string","description":"following | modified_following | preceding | modified_preceding. Default modified_following","examples":["modified_following"]},"calendars":{"type":"string","description":"Comma list of calendars; a day is a business day only if open in all. XNYS (NYSE), FED (Fedwire/FedACH), TARGET2 (EUR), UK-ENG. Aliases: NYSE, US, ACH, EUR, UK. Default FED.","examples":["TARGET2"]}},"required":["date"]},"annotations":{"readOnlyHint":true,"openWorldHint":true}},{"name":"list_holidays","title":"Holidays (and NYSE early closes) for a calendar and year","description":"Lists closing days for one calendar and year (2000-2099): NYSE full closures and 1 pm early closes, Federal Reserve (Fedwire/FedACH) holidays with Saturday/Sunday observance rules, TARGET2 closing days, UK England & Wales bank holidays with substitute days. Weekend-only holidays with no weekday closure are omitted. Deterministic, no AI. Price: $0.001 USDC per call via x402 (Base); the first 5 calls per day per client are free.","inputSchema":{"type":"object","properties":{"calendar":{"type":"string","description":"XNYS, FED, TARGET2 or UK-ENG","examples":["XNYS"]},"year":{"type":"string","description":"Year 2000-2099","examples":["2027"]}},"required":["calendar","year"]},"annotations":{"readOnlyHint":true,"openWorldHint":true}}],"payments":{"x402":{"version":2,"network":"eip155:8453","asset":"USDC","payTo":"0x076e653F4f458201B866B6B46A50F5796C345fb7","metaKey":"x402/payment"}}}