Date Math

v1.8.0
io.github.JowenDelaPena/date-math Checked 4 days ago Published 25 days ago

Date/time math for agents: business days, holidays, time zones, cron, RRULE.

Values you need

VariableWhat it is
DATE_MATH_PRIVATE_KEYoptional secret Optional. Key of a wallet holding USDC on Base, to pay $0.001 per call after the 25 free daily calls.
DATE_MATH_MAX_PRICEoptional Optional. The most to pay for one call (default $0.001).

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add date-math -- npx -y date-math-mcp@1.5.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "date-math": {
      "args": [
        "-y",
        "date-math-mcp@1.5.0"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "date-math": {
      "args": [
        "-y",
        "date-math-mcp@1.5.0"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "date-math": {
      "args": [
        "-y",
        "date-math-mcp@1.5.0"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.date-math]
command = "npx"
args = ["-y", "date-math-mcp@1.5.0"]

Remote (hosted)

Run in a terminal
claude mcp add --transport http date-math https://date-math.datemath.workers.dev/mcp
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "date-math": {
      "args": [
        "-y",
        "mcp-remote",
        "https://date-math.datemath.workers.dev/mcp"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "date-math": {
      "url": "https://date-math.datemath.workers.dev/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "date-math": {
      "type": "http",
      "url": "https://date-math.datemath.workers.dev/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.date-math]
command = "npx"
args = ["-y", "mcp-remote", "https://date-math.datemath.workers.dev/mcp"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json