プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。Google でログインするとレビューを書けます。プロトタイプ · 30分ごとに更新
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説 ログイン

China Workday Calendar

作者:walkleyバージョン 1.0.0i★ 0iクラウドで動く公式サイト ↗

インストール方法

できること

China workdays with official holidays and makeup days, plus package CVE checks. Free daily quota.

作者による原文

  • 接続方法 クラウドで動く
  • アカウントまたはキー キー不要
  • カテゴリ 文書・表計算・事務作業

一緒に使える

この種の作業を AI に教える Skill。これと一緒に使えます

MinerU

Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.

作者:opendatalab★ 84,3341 個の skill

Skill · 手順書ライセンス記載なし

watermarks-remover

A privacy-first app that strips AI watermarks from content you own.

作者:guillaumemeyer★ 28,6871 個の skill

Skill · 手順書

obsidian-skills

Agent skills for Obsidian. Teach your agent to use Obsidian CLI and open formats including Markdown, Bases, JSON Canvas.

作者:kepano★ 53,756 (リポジトリ全体)5 個の skill

Skill · 手順書

この順位の理由

一覧は利用スコア(100 点満点)で並びます。内訳は次のとおり

人気0/80GitHub スターか週間ダウンロード数。大きい方を 60、小さい方を 20 で数えます
新しさ12/1230 日以内のリリースかコード更新で満点
応答中8/8前回の確認でクラウドのエンドポイントが応答
利用スコア20/100

品質: 基本チェック 4/5 項目に合格(表示のみ、並び順には不使用) · 勢い: データなし (「急上昇」タブでのみ使用)

インストール

使っているAIアプリを選んで、設定をコピーしてください。

ひとことで AI にインストールしてもらう

China Workday Calendar をインストールして。https://mcp.popnx.com/i/walkley-cn-calendar.md に従い、コマンドを見せて、私が OK するまで実行しないで。

パソコンで作業できる AI(Claude Code や Cursor など)に貼り付けます。手順を読み、コマンドを見せて、あなたの OK を待ちます。キー不要・登録不要。 · AI が読む全文を見る

チェック 4/5 合格 · 質問内容は提供元のサーバー(mvqz0m8d6g.execute-api.ap-northeast-1.amazonaws.com)を通ります · ✓ コマンド確認済み 2026年11月24日

まず:どの AI を使っていますか?

使っているアプリを選ぶと、下に手順が表示されます。

Claude につなげます · 約 2 分

キー不要、インストール不要 · claude.ai かデスクトップアプリで一度設定すれば、チャットで使えます · 無料アカウントは 1 つまで · Team/Enterprise はオーナー(Owner)が追加

  1. このボタンを押すと、Claude が入力済みの connector 追加画面を開きます

    China Workday Calendar を Claude に追加 ↗

    名前と URL は入力済みです。確認して Add を押します · ログインしていなければ、先にログインを求められます

    Claude が検出したサインイン設定の画面で Continue を押す · Authentication は作者の説明どおり(Sign in now・Sign in when needed・No sign in)を選び Add を押します

    ボタンが動かない?手動で入力する

    CustomizeConnectors

    CustomizeConnectors1Add2https://…3Add4

    「Add」→「Custom」→「Web」を押し、この 2 つを入力

    ここからコピーして Claude の同じ名前の欄に貼り付け、Continue を押します

    Name · 名前China Workday Calendar
    Remote MCP server URL · アドレスhttps://mvqz0m8d6g.execute-api.ap-northeast-1.amazonaws.com/mcp
  2. チャットで有効にする

    +ConnectorsChina Workday Calendar

  3. 試してみる

    China Workday Calendar を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Claude が China Workday Calendar を使っていると言うか、回答に China Workday Calendar のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

ChatGPT との接続はプランしだい

フル MCP:Web 版 ChatGPT の Business・Enterprise・Edu · Pro:読み取り/取得の権限で接続、データを変えるツールは使えないことがあります · Plus:公式ドキュメントで未確認。プラグイン画面にカスタム MCP を追加する項目があれば試せます · Web のみ

  1. Web 版 ChatGPT で MCP の追加ページを開く

    Plugins+Add custom MCP server

    ChatGPTPlugins1+2https://…3Create4
  2. 名前とアドレスを入力

    名前を入れ、Connection にアドレスを貼り付け、注意事項にチェックして Create as a plugin を押します

    Name · 名前China Workday Calendar
    Connection · アドレスhttps://mvqz0m8d6g.execute-api.ap-northeast-1.amazonaws.com/mcp
  3. チャットで China Workday Calendar を選ぶ

    新しいチャットを開き、入力前にプラグインの一覧から China Workday Calendar を選びます

  4. 試してみる

    China Workday Calendar を使って、私に何ができるか教えて、1 つやってみせて

    ✓ ChatGPT が China Workday Calendar を使っていると言うか、回答に China Workday Calendar のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に OpenAI のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Claude Code につなげます · 約 2 分

キー不要、インストール不要

  1. ターミナルを開く

    Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く

  2. このコマンドを貼り付けて Enter

    claude mcp add --transport http --scope user cn-calendar https://mvqz0m8d6g.execute-api.ap-northeast-1.amazonaws.com/mcp
  3. Claude Code で /mcp と入力

    China Workday Calendar が一覧にあり、接続済みと表示されれば OK です

  4. 試してみる

    China Workday Calendar を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Claude Code が China Workday Calendar を使っていると言うか、回答に China Workday Calendar のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Cursor につなげます · 約 2 分

キー不要、インストール不要

  1. このボタンで Cursor を開く

    Cursor で開く

    Cursor がインストールの確認をするので Install を押します

  2. Cursor の AI チャットを Agent モードで開く

  3. 試してみる

    China Workday Calendar を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Cursor が China Workday Calendar を使っていると言うか、回答に China Workday Calendar のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

VS Code につなげます · 約 2 分

キー不要、インストール不要

  1. このボタンで VS Code を開く

    VS Code で開く

    VS Code がインストールの確認をするので Install を押します

  2. VS Code の AI チャットを Agent モードで開く

  3. 試してみる

    China Workday Calendar を使って、私に何ができるか教えて、1 つやってみせて

    ✓ VS Code が China Workday Calendar を使っていると言うか、回答に China Workday Calendar のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Windsurf、Zed、Gemini CLI など MCP を使える他のアプリは追加方法がそれぞれ違います。アプリ一覧で確認してください

MCP を使えるアプリをすべて見る →

Web 経由でつなぐアプリ用のアドレス

アドレスhttps://mvqz0m8d6g.execute-api.ap-northeast-1.amazonaws.com/mcp

JSON 設定は下の「開発者向け」にあります

つまずいたら?China Workday Calendar を使っている人に聞いてみましょう💬 ディスカッション →
開発者向け:ターミナルのコマンドと JSON 設定

Web 経由

Claude Code

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

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "cn-calendar": {
      "url": "https://mvqz0m8d6g.execute-api.ap-northeast-1.amazonaws.com/mcp"
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "cn-calendar": {
      "type": "http",
      "url": "https://mvqz0m8d6g.execute-api.ap-northeast-1.amazonaws.com/mcp"
    }
  }
}

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

ひと目でわかる

レジストリ名
io.github.walkley/cn-calendar
週あたりのダウンロードi
npm/PyPIにない
ライセンスi
ライセンスの記載なし
接続方法
クラウドで動く
ツールの数
ツール 2 個 · 軽め この MCP をつなぐと、全ツールの名前と説明が AI に送られます(使う分だけ読み込むアプリもあります)。ツールが多いほど 1 回のチャットで AI が覚えておける量を圧迫し、選び間違いも起きやすくなります。 2026年11月24日 にサーバーがこちらのチェッカーへ返したツール一覧から数えました
トランスポート
streamable-http
最新バージョンi
1.0.0
レジストリ公開日i
2026年11月24日
コードの最終更新i
2026年11月25日
最終確認
2026年11月24日
作者
walkley
レジストリでの状態
有効

使えるアプリ

このサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。

インターネット経由でつなげるアプリ

ClaudeChatGPTGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatOpen WebUIRaycast

すべてのアプリと長所・短所 →

できること

ツールの名前と説明は、サーバーが2026年11月24日に返したそのままの内容です。書いたのは作者で、私たちではありません。プレーンテキストとして表示しています。

  • cn_workday_check

    Is a date a working day in mainland China? Applies State Council (国务院) holiday notices: public holidays, weekend makeup workdays (调休补班) and ordinary weekends; returns the holiday name and the gov.cn source link. Pass date for one day, or from and to (inclusive, up to 366 days) to

  • package_advisories

    Is this package version safe to install? Known advisories (CVE, GHSA, PYSEC, GO, RUSTSEC) for one exact npm, PyPI, Go, crates.io, Maven package version from OSV.dev: CVSS, affected ranges, fixed versions and links. Free for 20 calls per day (shared with cn_workday_check), then pa

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月26日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント walkley で確認済みです

  • ✓ 合格

    今もメンテナンスされている

    コードの最終更新:昨日

  • ✕ 不合格

    ライセンスがある

    リポジトリにライセンスファイルが見つかりません

  • ✓ 合格

    エンドポイントが応答する

    391ミリ秒で応答(HTTP 200)

  • – 対象外

    OAuthでサインイン

    サインイン不要

  • ✓ 合格

    ツールの説明に隠れた指示がない

    2件のツールの説明を読み、AIへの隠れた指示は見つかりませんでした

確認していること → · JSON

作者の方へ:再確認の依頼・情報の誤りの報告
作者向け:README にバッジを付ける

作者の方は、このコードを README に貼れます。バッジはこのページにリンクします。

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/walkley-cn-calendar.svg)](https://mcp.popnx.com/en/servers/walkley-cn-calendar)

話し合い

質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。

まだ投稿はありません。最初の質問や共有をどうぞ。

ここの投稿は利用者によるもので、PopNx チームのものではありません。

ログインして投稿

ユーザーレビュー

まだレビューはありません

ログインしてレビューを書く

文書・表計算・事務作業のほかのサーバーとの比較i

  • このカテゴリのほかの4502件のうち0%よりスターが多い
  • このカテゴリのほかの4502件のうち94%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの4502件のうち54%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

China Workday Calendarは安全ですか?

当てはまる基本チェック5項目のうち4項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。

パソコンで動きますか、それともクラウドですか?

作者のクラウドで動きます。インストール不要でインターネット経由でつながりますが、送った内容は作者のサーバーを通ります。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は昨日、最新バージョン(1.0.0)がレジストリに届いたのは一昨日です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。URL で接続するので、リモート MCP を受け付けるアプリでも使えます。例:Web 版 ChatGPT(Business 以上はフル MCP、Pro は読み取りのみ)。

代わりに使えるものは?

同じカテゴリには:Puter MCP, XcodeBuildMCP, Vexa, Atlassian Rovo MCP Server, MR Office

似た働きのほかの候補

同じカテゴリでほかの作者のもの。コマンドは確認済み。公式を先に、次にスター順。

カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

Puter MCP

Puter MCP enables AI tools to interact with Puter: manage files, websites, workers, and more

作者:HeyPuter広く使われている★ 4.4万6 か月前更新

すぐ接続できる(URL あり) · ログインが必要✓ 提供元 · puter.com

XcodeBuildMCP

XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.

作者:getsentry広く使われている↓ 13万/週 共有パッケージの数★ 66024 か月前更新

パソコンで動く✓ 提供元 · xcodebuildmcp.com

Vexa

Meeting bot and transcripts for Google Meet, Teams and Zoom. Live or after, speakers labelled.

作者:Vexa-ai広く使われている★ 30083 か月前更新

すぐ接続できる(URL あり) · キーが必要✓ 提供元 · vexa.ai

Atlassian Rovo MCP Server

Connect to Atlassian Jira, Confluence, Loom, and more to search, create, and manage your work.

作者:atlassian成長中★ 11903 か月前更新

すぐ接続できる(URL あり) · ログインが必要✓ 提供元 · atlassian.com

MR Office

Create, open and edit documents, spreadsheets and PDFs in MR Office's editor, inline in chat.

作者:XinaTian成長中★ 4548 リポジトリ全体のスター6 日前更新

すぐ接続できる(URL あり) · ログインが必要✓ 提供元 · mroffice.ai
似たものと比べる
これ
China Workday Calendar
Puter MCPXcodeBuildMCPVexaAtlassian Rovo MCP ServerMR Office
動く場所クラウドで動き、インストール不要クラウドで動き、インストール不要パソコンにインストールが必要クラウドで動き、インストール不要クラウドで動き、インストール不要クラウドでもパソコンにインストールでも使える
キーが必要いいえいいえいいえはいいいえいいえ
Claude で + から追加いいえいいえいいえいいえはいいいえ
基本チェック4/54/43/32/44/45/5
ライセンス–AGPL-3.0MITApache-2.0Apache-2.0AGPL-3.0
料金登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

x402-content-site

Pay-per-call data APIs for AI agents, paid in USDC over x402. Three products:

  • China workday calendar: is this date a working day in mainland China? It applies the State Council's holiday notices, including weekend makeup workdays (调休补班), which generic holiday APIs get wrong.
  • Package vulnerability advisories: is this package version safe to install? Which known advisories (CVE/GHSA/PYSEC/GO/RUSTSEC) affect one exact version of an npm, PyPI, Go, crates.io or Maven package, with CVSS, affected ranges and fixed versions. Data from OSV.dev.
  • SEC EDGAR insider trades and filings: recent insider trading (Form 4: insider, role, date, code, shares, price, holdings after) and the latest SEC filings (8-K with item titles, 10-K, 10-Q...) of a US public company by ticker or CIK. Data from SEC EDGAR; not affiliated with or endorsed by the SEC.

The service is a Hono app with @x402/hono 2.32.0. It runs on AWS Lambda (Node 22) behind an Amazon API Gateway HTTP API, defined with AWS CDK in infra/. Locally it runs as a plain Node server.

Endpoints

RoutePriceReturns
GET /cn/workday?date=YYYY-MM-DD$0.003is_workday, is_public_holiday, is_makeup_workday, holiday_name, kind, weekday, source_url, data_updated; date is optional (default: today in Asia/Shanghai)
GET /cn/business-days?from=YYYY-MM-DD&to=YYYY-MM-DD$0.005calendar_days, workday_count, workdays[] (inclusive range, at most 366 days, may cross years); from/to are optional together (default: the current month in Asia/Shanghai)
`GET /deps/advisories?ecosystem=npm\PyPI\Go\crates.io\Maven&name=…&version=…`$0.005vulnerable, advisory_count, advisories[] (id, aliases, summary, severity.level, severity.cvss[], affected[].ranges, fixed_versions, published, modified, references, url, license), data_fetched_at, queried_at
POST /deps/advisories/batch with {"packages":[{ecosystem,name,version}, …]} (1–50)$0.02count, vulnerable_count, results[] in request order, each shaped like the single query
GET /sec/insider-trades?ticker=AAPL (or cik=320193)$0.003issuer, filings_checked, transactions[] from the 4 most recent Form 4 / 4/A filings (reporting_owners[] with role and officer title, transaction_date, code, code_description, acquired_disposed, shares, price_per_share, shares_owned_after, ownership, rule_10b5_1, filing_url), data_fetched_at, source
GET /sec/latest-filings?ticker=AAPL&form=8-K&limit=20$0.003issuer, count, filings[] newest first (form, filing_date, report_date, accepted_at, 8-K items[] with titles, document_url, index_url); form and limit (1–50, default 20) are optional
GET /freeHuman preview page: description, schema, examples, data update date, source links
GET /llms.txtfreeAgent-oriented summary
GET /openapi.json, GET /.well-known/openapi.jsonfreeOpenAPI 3.1 with full input/output schemas and examples, x-payment-info on each paid operation, x-discovery.llmsTxtUrl
GET /favicon.ico, GET /icon.pngfreeService icon; the PNG (the same image) is sent as the x402 iconUrl, because CDP's listed icon formats do not include ICO
GET /healthfreeLiveness
POST /mcpfree quota, then x402MCP server (Streamable HTTP, stateless), tools cn_workday_check, package_advisories and sec_insider_trades (paid only), see "Free MCP endpoint"
POST /paid/mcpx402 (pay the linked URL)The same MCP server without the free quota: every tool call returns a payment link to the paid route, see "Paid MCP endpoint"
GET /.well-known/mcp.jsonfreeMCP manifest: endpoint, tools, free quota, prices

Calendar coverage is 2020-01-01 to 2027-12-31. Every paid route validates its input before asking for payment: a missing or malformed date, a reversed or too-long range, a year without data, an unknown ecosystem, a missing name or version (Maven names must be groupId:artifactId), or a bad batch body gets a free 400/404 and never a 402. Batch bodies over 64 KB get 413. The one exception is a request with no input at all (no query string on a GET, an empty body on the batch POST) and no payment header: it gets the 402 quote, because discovery tools such as x402scan probe paid routes that way. If such a bare request does carry a payment, it is validated as usual and rejected with a free 400, so it is never charged.

Without a payment header a paid route returns 402 with a PAYMENT-REQUIRED header (x402 v2, scheme exact). All paid routes declare the Bazaar discovery extension (declareDiscoveryExtension) with input/output JSON schema, an example, serviceName, tags and iconUrl. The 402 JSON body starts with x402Version, accepts and resource, copied from the decoded PAYMENT-REQUIRED header so the two cannot differ, for clients and directories that only read the body (market402). It also explains what a plain fetch client needs without decoding the header: price, currency, network, how_to_pay, links to docs (/openapi.json) and llms_txt, and an example request with its response. Payment is settled only after the handler succeeds. If settlement fails the client gets the settlement error and none of the paid content.

Free MCP endpoint
claude mcp add --transport http cn-calendar https://<origin>/mcp

POST /mcp speaks MCP over Streamable HTTP without sessions: every request is one JSON-RPC message answered with one JSON response (initialize, ping, tools/list, tools/call; notifications get 202). GET/DELETE /mcp answer 405 because there is no SSE stream or session. Two tools run the same code and data as the paid routes; the third, sec_insider_trades, only returns a payment link:

ToolArgumentsSame data asPaid route named after the quota
cn_workday_checkdate, or from and to/cn/workday, /cn/business-daysGET /cn/workday?date=… ($0.003) or GET /cn/business-days?from=…&to=… ($0.005)
package_advisoriesecosystem, name, version/deps/advisoriesGET /deps/advisories?… ($0.005)
sec_insider_tradesticker or cik (none: ticker=AAPL)/sec/insider-tradesGET /sec/insider-trades?… ($0.003), on every call
  • `sec_insider_trades` has no free calls, on /mcp as on /paid/mcp. It validates the arguments (an invalid ticker or CIK gets the input error) and answers every valid call with the payment link to GET /sec/insider-trades; it never calls SEC and never reads or counts the free quota. This keeps the SEC budget in "How the SEC endpoints use SEC EDGAR" (at most 8 SEC requests per second for the whole API) on the two throttled paid routes alone: /mcp's own 2 rps throttle is not part of that sum. Its log outcome is paid_tool.
  • Free quota: 20 tool calls per source IP per UTC day and 2,000 per UTC day for everyone together (-c freePerIpDaily, -c freeGlobalDaily). Invalid arguments are a tool error and are not counted.
  • After the quota the tool returns an MCP tool error (isError: true). Its text starts with creating a wallet, npx agentcash onboard (without a wallet nothing can pay), then npx agentcash add , then the paid x402 URL for the same lookup with its price and network. Its structuredContent is a payment link in the format paidmcp-client and the paidmcp directory read, {"url": , "status": 402, "challenge": } (see "Paid MCP endpoint"). That URL ends in src=mcp: the paid routes only log it (src in the funnel request event); input validation reads its own parameters by name and the price does not depend on the query, so the 402 and the price are the same as without it.
  • Fail closed: if the counter cannot be read or written (DynamoDB error or timeout, no table configured, no source IP), the call gets the same paid hint and payment link. It is never a free call and never a 500.
  • No payment on this path: /mcp is outside the payment middleware; it never asks the facilitator to verify or settle.
  • Privacy: 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. The IP is taken from the HTTP API's requestContext.http.sourceIp (not X-Forwarded-For) and only used to build the key ip# # . Items hold a counter and an expires_at TTL. The HMAC key is generated by Secrets Manager when the stack is created (QuotaHmacKey); without it the hashes cannot be checked against the 2^32 IPv4 addresses. The Lambda log lines (mcp and the paid routes' x402_funnel request) carry the same hash as ip_hash, the 32 hex characters of the counter key. Because the day is part of the HMAC input, one caller's ip_hash is the same all UTC day and different the next day, so ip_hash alone links an MCP caller to its paid requests on the same day only. The mcp lines also carry apigw_request_id, which matches the requestId of the API Gateway access log, and that log keeps the raw source IP for 30 days. So for 30 days an mcp line can be traced back to its IP, and a caller can be linked across days. No Lambda log line contains the raw IP. While the key is not loaded, ip_hash is left out.
  • Storage: an on-demand DynamoDB table with TTL. The API function's role may only dynamodb:UpdateItem on that table, and nothing else can access it. Each counted tool call is at most two conditional UpdateItems (per IP, then global). The function reads the HMAC key once at cold start (GetSecretValue on that one secret, which only it may read); if the read fails, MCP calls get the paid hint and the next call retries it. Counting a call has a 3 s budget in total; past it the call gets the paid hint.
  • Origin: a request to /mcp with an Origin header that is not in MCP_ALLOWED_ORIGINS (default: empty) gets 403, as Streamable HTTP requires. /mcp never sends Access-Control-Allow-Origin: *; a listed origin gets CORS for itself only. Claude Code, Cursor and other non-browser clients send no Origin.
  • Protocol versions: 2025-11-25 and 2025-06-18. Anything that is not a JSON-RPC 2.0 request, notification or response gets 400.
  • Request log: every /mcp request writes one {"type":"mcp"} line, including initialize, tools/list, notifications, and answers from outside the handler (Origin 403, 405, 413). Fields: method (the JSON-RPC method; response, invalid, parse_error, or - when no message was read), http_method, status, user_agent (first 200 characters), ip_hash (see Privacy), apigw_request_id (the access log's requestId). initialize adds client_name and client_version from clientInfo (64 characters each). tools/call adds tool, outcome (ok, invalid_input, invalid_request, ip_limit, global_limit, unavailable, upstream_error, paid_only on /paid/mcp, and paid_tool for sec_insider_trades on /mcp), reason where there is one (the input error code; no_quota_store, no_source_ip, quota_error, quota_timeout for unavailable), free_call_n, this IP's count of free calls today including this one (absent on ip_limit, which counts nothing), and payment_link (true when the answer carries the payment link, false when the paid route's 402 could not be read and only the text hint was sent). Every line has path (/mcp or /paid/mcp). Lines before this change used "type":"mcp_call" and covered tool calls only.
Paid MCP endpoint

POST /paid/mcp is the same

冒頭だけを表示しています。続きはリポジトリで読めます