China Snapshot

China policy publications, indicators, and platform attention for agents. Remote streamable-http endpoint: https://china-snapshot.com/api/mcp

Hosted MCP Server

npx add-mcp 'https://china-snapshot.com/api/mcp'

Installs into Claude Code, Codex, Cursor and more

Documentation

Endpoint and access

The endpoint is https://china-snapshot.com/api/mcp. GET describes it; protocol messages use POST. initialize, notifications/initialized, ping and tools/list need no key. tools/list returns each tool's name, description and input schema so a registry can index the server. tools/call needs an API key: a free key (POST /api/key_signup) works, with 250 tool calls a month. A call with no key is JSON-RPC -32001 and links to pricing and this page. get_changes and saved alerts stay on paid plans (402 plan_required).

curl --fail-with-body --silent --show-error --max-time 30 "https://china-snapshot.com/api/mcp"
import json
from urllib.request import Request, urlopen
request = Request('https://china-snapshot.com/api/mcp')
with urlopen(request, timeout=30) as response:
    data = json.load(response)
print(json.dumps(data, ensure_ascii=False))
const response = await fetch("https://china-snapshot.com/api/mcp");
if (!response.ok) throw new Error(\`HTTP ${response.status}\`);
console.log(await response.json());

Claude Code

Use Claude Code's remote HTTP MCP setup. Configure the key in your environment first; do not commit the expanded command or paste its secret into chat. Verify the connection using the client's MCP status UI.

claude mcp add --transport http china-snapshot https://china-snapshot.com/api/mcp --header "Authorization: Bearer $CS_API_KEY"

Cursor

In your project's.cursor/mcp.json, configure the remote server and an environment variable reference. Set CS_API_KEY in the environment available to Cursor. Client configuration support depends on your installed version.

{
  "mcpServers": {
    "china-snapshot": {
      "url": "https://china-snapshot.com/api/mcp",
      "headers": {"Authorization": "Bearer ${env:CS_API_KEY}"}
    }
  }
}

ChatGPT

Coming soon: a verified native ChatGPT connector configuration. This repo provides Bearer authentication but no MCP OAuth authorization server. Do not choose unauthenticated setup and expect paid tools to work. A supported client or separately configured adapter must securely supply the Bearer header; no working native ChatGPT configuration is claimed here.

Exposed tools

The list below is generated from the tool definitions the endpoint serves. find_records, get_record, get_observations, get_changes and export_records read the same rows and field names as /api/datasets and /api/changes; list_watchlists returns the maintained topic filters.

get_digest

Get the current China Snapshot briefing. Accountless keys receive only the public current digest with status=public_projection and source_url; entitled account callers retain their existing briefing access. Returns {edition_key, published_at, status, preview, brief, commercial_mode}. When no edition exists yet it returns edition_key=null with reason and detail fields rather than failing, and a pre-launch edition is returned with preview=true plus the same two fields — check preview before quoting an edition as published.

{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

get_signal_packet

Retrieve the latest available validated Professional Signal Packet v1, or the protected historical beta-evaluation case when packet_id matches exactly and the account has an active premium_brief grant. A free or paid API plan alone does not grant this legacy historical selector. Historical evaluation material is never the no-argument default. The packet is bounded, not exhaustive: observations are source-backed; interpretations are generated analysis; uncertainty must be retained; historical comparisons may be non-exhaustive; adjacent market/social signals do not establish causation. retained_last_known_good=true means historical context, not today's change. availability=historical_evaluation means a preserved exercise, not current evidence. No packet is not evidence that no relevant event occurred elsewhere.

{
  "type": "object",
  "properties": {
    "packet_id": {
      "type": "string",
      "maxLength": 180,
      "description": "Exact packet id to fetch, for example signal:export-controls:mofcom-2026-30. Omit for the latest validated packet."
    }
  },
  "additionalProperties": false
}

export_signal_packet

Export the same complete validated Professional packet as Markdown or JSON. Markdown preserves Observation, Interpretation, Uncertainty, Watch next, and Evidence labels. The same bounded-coverage and retained-last-known-good cautions as get_signal_packet apply; no direct Professional asset URL is returned. Use get_signal_packet first when you only need to read it; this returns the same packet as a downloadable Markdown or JSON string. Read-only. With no packet_id it exports the latest validated packet; historical packets need a premium grant and otherwise return an access error.

{
  "type": "object",
  "required": [
    "format"
  ],
  "properties": {
    "packet_id": {
      "type": "string",
      "maxLength": 180,
      "description": "Exact packet id to export. Omit for the latest validated packet."
    },
    "format": {
      "type": "string",
      "enum": [
        "markdown",
        "json"
      ],
      "description": "Output format: markdown for reading, json for programmatic use."
    }
  },
  "additionalProperties": false
}

search_stories

Search the bilingual source archive and return attributed evidence records. Honesty fields on every response: coverage ('full' or 'none'), per-item low_confidence, mode ('semantic' or 'static') and the limits thresholds. coverage='none' means the corpus has no material clearing the relevance floor — items is empty by design, not an error; do not treat it as absence of evidence elsewhere. count and returned are both the number of items in this response; total_matched appears only in 'static' keyword mode and is the corpus-wide match count. There is no pagination: results are the top-ranked slice up to limit (max 20), so absence from this response is not absence from the archive.

{
  "type": "object",
  "required": [
    "query"
  ],
  "properties": {
    "query": {
      "type": "string",
      "maxLength": 180,
      "description": "Search terms in English or Chinese; a short phrase works best, for example export controls rare earth."
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 20,
      "description": "Maximum number of stories to return."
    }
  },
  "additionalProperties": false
}

get_entity_timeline

Return recent source records mentioning an entity, newest evidence first. Retrieval is semantic, so this is a relevance-ranked chronology, not an exhaustive register: exhaustive is always false, an item can rank in without naming the entity, and window reports only the date span of the records returned — a gap inside it is not evidence that nothing happened. Carries the same coverage, low_confidence, mode and limits honesty fields as search_stories.

{
  "type": "object",
  "required": [
    "entity"
  ],
  "properties": {
    "entity": {
      "type": "string",
      "maxLength": 120,
      "description": "Entity name in English or Chinese, for example MOFCOM, 商务部 or Huawei."
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 20,
      "description": "Maximum number of timeline entries to return."
    }
  },
  "additionalProperties": false
}

find_records

Find records in the retained archive (documents, social hot-list observations, indicators) by literal text, publisher, reviewed topic (watch/topic) and UTC collection-day range; no ranking, no model. Same query, order and cursor as GET /api/datasets. Documents are one record per source URL with first_seen/last_seen, observation_count, version_count and change_type (new, newly_discovered, revised); seeing a URL again is never a new document. dataset=social with mode=topics returns one row per (platform, topic). Returns {items, row_count, next_cursor, as_of, coverage}. next_cursor is null at the end; pass it back unchanged with the same filters to continue. At most 20 rows per call. Absence from a page is not absence from the archive.

{
  "type": "object",
  "properties": {
    "dataset": {
      "type": "string",
      "enum": [
        "documents",
        "social",
        "indicators"
      ],
      "description": "Default documents."
    },
    "q": {
      "type": "string",
      "maxLength": 180,
      "description": "Every word must match the title, original title or publisher (Latin words at a word start, CJK as substrings; stopwords dropped; a \"quoted phrase\" is one term)."
    },
    "source": {
      "type": "string",
      "maxLength": 180,
      "description": "Exact publisher label."
    },
    "from": {
      "type": "string",
      "description": "Inclusive UTC collection day, YYYY-MM-DD (first_seen for documents, captured_at otherwise)."
    },
    "to": {
      "type": "string",
      "description": "Inclusive UTC collection day, YYYY-MM-DD."
    },
    "text": {
      "type": "string",
      "enum": [
        "available"
      ],
      "description": "Documents only: records with approved original text."
    },
    "mode": {
      "type": "string",
      "enum": [
        "raw",
        "release",
        "topics"
      ],
      "description": "raw (default) = one row per record or collection run; release = indicators only, one row per series and period; topics = social only, one row per (platform, topic) within the window (default 30 days, max 92)."
    },
    "watch": {
      "type": "string",
      "enum": [
        "data-security",
        "export-controls",
        "property-support",
        "semiconductors"
      ],
      "description": "Reviewed topic filter (see list_watchlists): a title match on a listed bilingual term, nothing inferred."
    },
    "topic": {
      "type": "string",
      "enum": [
        "data-security",
        "export-controls",
        "property-support",
        "semiconductors"
      ],
      "description": "Alias of watch."
    },
    "change_type": {
      "type": "string",
      "enum": [
        "new",
        "newly_discovered",
        "revised"
      ],
      "description": "Documents only: new, newly_discovered (published more than 2 days before we first saw it) or revised (a changed body was observed)."
    },
    "series": {
      "type": "string",
      "description": "Indicators only: exact series_id such as cpi-yoy."
    },
    "cursor": {
      "type": "string",
      "description": "next_cursor from the previous page, with the same filters. Valid 24 hours."
    },
    "fields": {
      "type": "string",
      "description": "Comma-separated field keys; default all."
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 20,
      "description": "Rows to return, at most the tool maximum; use next_cursor for more."
    }
  },
  "additionalProperties": false
}

get_record

Retrieve one record by its stable id (documents:N, social:N, indicators:N), including individually approved original text for documents. Same as GET /api/datasets?id=. Use it after find_records or search_stories, which return the ids. Read-only; returns the record with its source_url, dates and, where approved, original text. An unknown or malformed id returns a tool error (Record not found or an id-format error), not an empty result. Counts against your monthly research allowance; per-IP 30 and per-account 120 requests a minute.

{
  "type": "object",
  "required": [
    "id"
  ],
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^(documents|social|indicators):[1-9][0-9]*$",
      "description": "Stable record id as returned by find_records, formatted dataset:number, for example documents:1234."
    }
  },
  "additionalProperties": false
}

get_observations

Inspect the observations of one indicator series, oldest first, each marked origin=archive (a release we watched appear, with release_date and revised) or origin=backfill (older published history). Same as GET /api/series/{series_id}. Observations of documents and social records are not available through this tool yet. Use it for indicator series (CPI, PPI, LPR, yields, M2 and similar) whose ids look like cpi-yoy; for documents or social topics use find_records instead. Optional from and to (YYYY-MM-DD) bound the window; the history depth depends on your plan. Read-only and dated: every row has period, value, unit, origin and source_url. An unknown series id returns the tool error Series not found or has no observations.

{
  "type": "object",
  "required": [
    "series_id"
  ],
  "properties": {
    "series_id": {
      "type": "string",
      "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$",
      "maxLength": 120,
      "description": "Indicator series id in lowercase kebab case, for example cpi-yoy; list ids with find_records dataset=indicators."
    },
    "from": {
      "type": "string",
      "description": "Earliest reference period, YYYY-MM, YYYY-MM-DD, or YYYY-Q#."
    },
    "to": {
      "type": "string",
      "description": "Latest reference period, inclusive."
    }
  },
  "additionalProperties": false
}

get_changes

Retrieve documents added or revised since a time, oldest first, for polling. Same feed as GET /api/changes. Each item has change_type (new: we first collected this URL; newly_discovered: new to us but published more than 2 days earlier; revised: we extracted a different body for a known URL) and change_at (UTC). Each document appears once per walk, at its latest event. Call with since=<ISO-8601 with timezone>, then pass next_cursor back as cursor (next_since as since also works). Events from the last 10 minutes are held back. Optional watch/topic, source and q narrow the feed. content_hash identifies the text at that event; the text is not returned. At most 20 items per call. Needs a paid plan, or pay per page: a free key with prepaid credits (5 credits, USD 0.05), or no key and an x402 USDC payment (the keyless result carries the payment requirements).

{
  "type": "object",
  "properties": {
    "since": {
      "type": "string",
      "maxLength": 400,
      "description": "ISO-8601 instant with timezone (inclusive), or a next_since token."
    },
    "cursor": {
      "type": "string",
      "maxLength": 400,
      "description": "next_cursor from the previous call."
    },
    "watch": {
      "type": "string",
      "enum": [
        "data-security",
        "export-controls",
        "property-support",
        "semiconductors"
      ],
      "description": "Reviewed watchlist slug to follow, for example export-controls; list slugs with list_watchlists."
    },
    "topic": {
      "type": "string",
      "enum": [
        "data-security",
        "export-controls",
        "property-support",
        "semiconductors"
      ],
      "description": "Alias of watch."
    },
    "source": {
      "type": "string",
      "maxLength": 180,
      "description": "Exact publisher label to restrict the change feed to one publisher."
    },
    "q": {
      "type": "string",
      "maxLength": 180,
      "description": "Words that must match the title, original title or publisher."
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 20,
      "description": "Maximum events to return in this page; continue with next_cursor."
    }
  },
  "additionalProperties": false
}

export_records

Export one bounded page of find_records results as CSV or JSON (same columns, formula-safe CSV cells, same next_cursor). Not the whole archive: at most 100 rows per call; follow next_cursor. Returns {format, row_count, next_cursor, content}.

{
  "type": "object",
  "required": [
    "format"
  ],
  "properties": {
    "dataset": {
      "type": "string",
      "enum": [
        "documents",
        "social",
        "indicators"
      ],
      "description": "Default documents."
    },
    "q": {
      "type": "string",
      "maxLength": 180,
      "description": "Every word must match the title, original title or publisher (Latin words at a word start, CJK as substrings; stopwords dropped; a \"quoted phrase\" is one term)."
    },
    "source": {
      "type": "string",
      "maxLength": 180,
      "description": "Exact publisher label."
    },
    "from": {
      "type": "string",
      "description": "Inclusive UTC collection day, YYYY-MM-DD (first_seen for documents, captured_at otherwise)."
    },
    "to": {
      "type": "string",
      "description": "Inclusive UTC collection day, YYYY-MM-DD."
    },
    "text": {
      "type": "string",
      "enum": [
        "available"
      ],
      "description": "Documents only: records with approved original text."
    },
    "mode": {
      "type": "string",
      "enum": [
        "raw",
        "release",
        "topics"
      ],
      "description": "raw (default) = one row per record or collection run; release = indicators only, one row per series and period; topics = social only, one row per (platform, topic) within the window (default 30 days, max 92)."
    },
    "watch": {
      "type": "string",
      "enum": [
        "data-security",
        "export-controls",
        "property-support",
        "semiconductors"
      ],
      "description": "Reviewed topic filter (see list_watchlists): a title match on a listed bilingual term, nothing inferred."
    },
    "topic": {
      "type": "string",
      "enum": [
        "data-security",
        "export-controls",
        "property-support",
        "semiconductors"
      ],
      "description": "Alias of watch."
    },
    "change_type": {
      "type": "string",
      "enum": [
        "new",
        "newly_discovered",
        "revised"
      ],
      "description": "Documents only: new, newly_discovered (published more than 2 days before we first saw it) or revised (a changed body was observed)."
    },
    "series": {
      "type": "string",
      "description": "Indicators only: exact series_id such as cpi-yoy."
    },
    "cursor": {
      "type": "string",
      "description": "next_cursor from the previous page, with the same filters. Valid 24 hours."
    },
    "fields": {
      "type": "string",
      "description": "Comma-separated field keys; default all."
    },
    "format": {
      "type": "string",
      "enum": [
        "csv",
        "json"
      ],
      "description": "csv for spreadsheets, json for programmatic use."
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "description": "Rows to export in this page, at most the export maximum; use next_cursor for more."
    }
  },
  "additionalProperties": false
}

list_watchlists

List the maintained topic filters usable as watch (or topic): slug, label, description, the exact bilingual terms, the datasets each applies to and the date it was last reviewed. Matching is a case-insensitive substring on the title or original title; a term given as a list requires every word in the same title. Call it first to learn the valid watch slugs (for example export-controls) before passing watch to find_records, get_changes or export_records. Takes no arguments, is read-only, and returns each slug with its label, bilingual terms, applicable datasets and last review date. Matching is a substring match on the terms, so a watchlist is a filter, not a classification.

{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

get_events

Typed dates and links extracted from official notices: publication, effective, expiry and consultation_end events, and amends, repeals, implements and cites relations. Every item carries span (the verbatim sentence it came from where the text is approved for publication, otherwise text is null and withheld is true), method, confidence and needs_review. Items needing review are hidden unless include_review is true. A date the notice does not state is absent. Same read as GET /api/notice_dates. Schema: /data/events.schema.json. Complements get_changes: get_events returns dates and links extracted from the text of official notices (effective, expiry and consultation_end dates, amends and repeals relations), while get_changes tells you which documents were added or revised since a time. Read-only pilot data; each item carries the verbatim sentence it came from. Filter by event_type, relation_type, source, from and to; limit is 1 to 100 (default 50).

{
  "type": "object",
  "properties": {
    "doc_id": {
      "type": "string",
      "description": "A record id such as documents:25376 (events and relations of that notice)."
    },
    "event_type": {
      "type": "string",
      "enum": [
        "publication",
        "effective",
        "expiry",
        "consultation_end"
      ],
      "description": "Restrict to one event type from the pilot event schema."
    },
    "relation_type": {
      "type": "string",
      "enum": [
        "amends",
        "repeals",
        "implements",
        "cites"
      ],
      "description": "Restrict to one relation type from the pilot event schema."
    },
    "source": {
      "type": "string",
      "maxLength": 180,
      "description": "Exact publisher label."
    },
    "from": {
      "type": "string",
      "description": "Earliest event date, YYYY-MM-DD."
    },
    "to": {
      "type": "string",
      "description": "Latest event date, YYYY-MM-DD."
    },
    "include_review": {
      "type": "boolean",
      "description": "Also return items a person should check. Default false."
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "description": "Maximum events to return."
    }
  },
  "additionalProperties": false
}

Verify and troubleshoot

Fetch discovery first, then initialize and list tools with no key. A successful tools/list proves the catalog, not that tools/call will run. Calling a tool needs a key. Read both HTTP status and the JSON-RPC error body. A missing key names pricing and this page. Respect Retry-After on quota failures and use plans to distinguish dataset and research allowances.

Client configuration references

Claude Code MCP documentation and Cursor MCP documentation describe the client configuration syntax. These are client-side examples; endpoint authentication and tool behavior come from this repository.