Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Provides correct trading day and settlement date calculations for multiple exchanges, with no external API calls.

README.md

marketcal

An MCP server that gives AI agents correct trading-day and settlement math. LLMs are unreliable at "is the market open today?" and "what's the T+1 settlement date?" — this gets it exactly right, with no API key and no external calls.

| Tool | Does | | --- | --- | | is_trading_day | Is a date a trading day? (weekend/holiday aware, with reason) | | next_trading_day / previous_trading_day | Nearest trading day after/before a date | | settlement_date | T+N settlement date (advance N trading days; T+1 is the modern default) | | trading_days_between | Count trading days in an inclusive date range | | market_holidays | List an exchange's holidays for a given year |

Exchanges: NYSE, NASDAQ (US), LSE (London), XETRA (Frankfurt), GENERIC (weekends only).

Why it's correct

Holidays are computed from each exchange's rules — nth-weekday-of-month, Good Friday via the Gregorian Easter algorithm, and the exchange's weekend-observation rules (e.g. US: Saturday → Friday, Sunday → Monday; UK substitute days; XETRA closes Christmas Eve & New Year's Eve). No hardcoded date tables to rot — it stays right for any year.

Use it

npm install && npm run build && npm start
# or: npm run dev   (no build step)
npm run inspect      # try the tools in the MCP Inspector

Connect to Claude Desktop / Cursor:

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

Then ask: "Using marketcal, what's the T+1 settlement date for a trade on 2026-07-02 on NYSE?"2026-07-06 (July 3 is the observed Independence Day holiday, July 4–5 is the weekend).

Notes & scope

  • Covers full-day market closures. Early-close (half) days are not modelled in v0.1.
  • All dates are calendar dates in YYYY-MM-DD (UTC), no intraday/timezone logic.
  • settlement_date advances trading days (the standard settlement convention).
  • Roadmap: more exchanges (TSX, Euronext, JPX, HKEX), early-close days, and a hosted HTTP +

usage-billed tier (x402 / Stripe) for high-volume agents.

License

MIT

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Finance & Payments servers.