China Workday Calendar and Package Vulnerability Advisories

Use from Claude Code / Cursor / Codex

Run in your terminal to add these APIs to your agent with AgentCash; any other x402 client works too. add needs no wallet; try and onboard create an AgentCash wallet on first run.

npx agentcash add https://mvqz0m8d6g.execute-api.ap-northeast-1.amazonaws.com
npx agentcash try https://mvqz0m8d6g.execute-api.ap-northeast-1.amazonaws.com
npx agentcash onboard

MCP server (free daily quota)

claude mcp add --transport http cn-calendar https://mvqz0m8d6g.execute-api.ap-northeast-1.amazonaws.com/mcp

Remote MCP server (Streamable HTTP) at https://mvqz0m8d6g.execute-api.ap-northeast-1.amazonaws.com/mcp with tools cn_workday_check and package_advisories. 20 free calls per IP address per day, no sign-up. After that each tool call returns an error naming the x402 URL and price of the same lookup. Quota counters store no raw IP address, only a keyed hash (HMAC-SHA256 of the day and IP), deleted by TTL after 2 days; request logs keep only the same hash, which changes every UTC day; API Gateway access logs keep the source IP for 30 days. Manifest: /.well-known/mcp.json.

Pay-per-call data for AI agents, paid with USDC over x402 on eip155:8453. Full schemas: /openapi.json. Agent summary: /llms.txt. Agent skill: /SKILL.md.

EndpointPrice
GET /cn/workday?date=YYYY-MM-DD$0.003
GET /cn/business-days?from=YYYY-MM-DD&to=YYYY-MM-DD (≤ 366 days)$0.005
GET /deps/advisories?ecosystem=&name=&version=$0.005
POST /deps/advisories/batch (≤ 50 packages)$0.02

China Workday Calendar

中国法定节假日与调休工作日查询。A pay-per-call API for AI agents: is a date a working day in mainland China, counting official holidays and weekend makeup workdays (调休补班) from State Council notices. Paid with USDC over x402 on eip155:8453.

Coverage 2020-01-01 to 2027-12-31. Data updated 2026-11-05.

Example

GET https://mvqz0m8d6g.execute-api.ap-northeast-1.amazonaws.com/cn/workday?date=2026-02-14

{
  "date": "2026-02-14",
  "weekday": 6,
  "is_workday": true,
  "is_public_holiday": false,
  "is_makeup_workday": true,
  "holiday_name": null,
  "kind": "makeup_workday",
  "source_url": "https://www.gov.cn/zhengce/zhengceku/202511/content_7047091.htm",
  "data_updated": "2026-11-05"
}

Schema

Full input and output schemas: /openapi.json. Agent summary: /llms.txt.

{
  "type": "object",
  "properties": {
    "date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "weekday": {
      "type": "integer",
      "minimum": 1,
      "maximum": 7,
      "description": "ISO weekday, 1 = Monday, 7 = Sunday"
    },
    "is_workday": {
      "type": "boolean",
      "description": "true for an ordinary weekday or a makeup workday (调休补班)"
    },
    "is_public_holiday": {
      "type": "boolean",
      "description": "true inside an official holiday period (放假) from the State Council notice"
    },
    "is_makeup_workday": {
      "type": "boolean",
      "description": "true for a weekend day officially designated as a working day (调休上班)"
    },
    "holiday_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "Holiday name as written in the notice, e.g. 春节"
    },
    "kind": {
      "type": "string",
      "enum": [
        "workday",
        "weekend",
        "public_holiday",
        "makeup_workday"
      ]
    },
    "source_url": {
      "type": "string",
      "description": "gov.cn notice the answer is based on"
    },
    "data_updated": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Publication date of the newest notice in the dataset"
    }
  },
  "required": [
    "date",
    "weekday",
    "is_workday",
    "is_public_holiday",
    "is_makeup_workday",
    "holiday_name",
    "kind",
    "source_url",
    "data_updated"
  ],
  "additionalProperties": false
}

Sources

Each year follows the State Council (国务院办公厅) holiday notice on gov.cn as actually applied nationwide. 2020 includes the Spring Festival extension (国办发明电〔2020〕1号): holiday until 2020-02-02, work resumed 2020-02-03. Provincial schedules are not included.

Package Vulnerability Advisories

Known security advisories affecting one exact package version (npm, PyPI, Go, crates.io, Maven): CVE aliases, CVSS, affected ranges, fixed versions and links. Fetched live from OSV.dev and cached up to one hour; if OSV.dev is down the call fails with 502 and is not charged.

Example

GET https://mvqz0m8d6g.execute-api.ap-northeast-1.amazonaws.com/deps/advisories?ecosystem=npm&name=lodash&version=4.17.20 (trimmed to one advisory)

{
  "ecosystem": "npm",
  "name": "lodash",
  "version": "4.17.20",
  "vulnerable": true,
  "advisory_count": 1,
  "advisories": [
    {
      "id": "GHSA-35jh-r3h4-6jhm",
      "aliases": [
        "CVE-2021-23337"
      ],
      "summary": "Command Injection in lodash",
      "severity": {
        "level": "HIGH",
        "cvss": [
          {
            "type": "CVSS_V3",
            "vector": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H"
          }
        ]
      },
      "affected": [
        {
          "package": "lodash",
          "ranges": [
            {
              "type": "SEMVER",
              "introduced": "0",
              "fixed": "4.17.21"
            }
          ]
        }
      ],
      "fixed_versions": [
        "4.17.21"
      ],
      "published": "2021-05-06T16:05:51Z",
      "modified": "2026-10-17T02:55:38.085813876Z",
      "references": [
        "https://nvd.nist.gov/vuln/detail/CVE-2021-23337",
        "https://github.com/lodash/lodash/commit/3469357cff396a26c363f8c1b5a91dde28ba4b1c",
        "https://www.oracle.com/security-alerts/cpuoct2021.html"
      ],
      "url": "https://osv.dev/vulnerability/GHSA-35jh-r3h4-6jhm",
      "license": "CC-BY-4.0",
      "source_database": "GitHub Advisory Database"
    }
  ],
  "truncated": false,
  "data_fetched_at": "2026-11-24T08:00:00.000Z",
  "queried_at": "2026-11-24T08:00:00.000Z",
  "source": "OSV.dev (https://osv.dev). Excerpted and modified: details text omitted, affected ranges restructured and filtered to the queried package. Per-advisory license in `license`."
}

Sources and licenses

Advisory data from OSV.dev (https://osv.dev, Apache-2.0), which aggregates source databases under their own licenses: GitHub Advisory Database, PyPI Advisory Database, Go Vulnerability Database (CC-BY 4.0), Rust Advisory Database (CC0 1.0), OpenSSF Malicious Packages (Apache-2.0). Records are excerpted and modified (details omitted, ranges restructured). Each advisory carries its source license; summaries of records from other sources are omitted. See OSV.dev data sources.

Source code and data