china_macro_indicator

Pack: china-macro · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/china_macro_indicator for the schema, then POST the same URL with its arguments for the data.

China’s headline National Bureau of Statistics (NBS) macro indicators — one tool, pick an indicator: cpi (Consumer Price Index, national/urban/rural, y/y + m/m), ppi (Producer Price Index), pmi (manufacturing + non-manufacturing Purchasing Managers’ Index), gdp (quarterly GDP, published as year-to-date cumulative, by sector), industrial_production (industrial value-added growth), retail_sales (total retail sales of consumer goods), fixed_asset_investment (FAI), money_supply (M0/M1/M2 outstanding + growth), or trade (General Administration of Customs monthly export/import totals in USD). Returns the latest period’s values first (with its period, e.g. “2026-09”), then up to periods months/quarters of history, newest first — every Chinese NBS field name translated to an English name with its unit and the index convention it uses (prior-period = 100 unless stated otherwise). Answers “China’s latest CPI”, “China PMI history”, “China Q2 GDP growth”, “China M2 money supply”, “China’s trade surplus last month”. Default route is a republisher’s data centre. Pass source: \"nbs\" to read the National Bureau of Statistics of China’s own database directly: every series then carries its period, period TYPE (single month/quarter vs year-to-date), measure (index vs percent change vs level), unit and base, exactly as published and never converted, and data_as_of. The direct route also adds urban_unemployment (surveyed urban unemployment rate) and capacity_utilization (industrial capacity utilisation, quarterly), and region (a province name, or all for the 31 mainland provincial-level regions in one period) for cpi, ppi, industrial_production, fixed_asset_investment and gdp. A series whose base cannot be established from the publisher’s own label comes back basis_status “unresolved” rather than guessed. Keyless, sourced live from the National Bureau of Statistics of China (General Administration of Customs for trade).

Parameters

NameTypeRequiredDescription
indicatorstringyesWhich NBS/Customs indicator to return.
periodsnumbernoHow many of the most recent monthly/quarterly rows to return, 1-36 (default 12).
sourcestringnoWhich route serves the data. Default “eastmoney” (republisher). “nbs” reads the National Bureau of Statistics of China directly and returns typed series (period type, measure, unit, base). Implied by region, series, urban_unemployment and capacity_utilization.
regionstringno(source nbs) A mainland province by English or Chinese name (e.g. “Guangdong”, “广东省”) for that region’s history, or “all” for all 31 mainland provincial-level regions in one period. Available for cpi, ppi, industrial_production, fixed_asset_investment, gdp.
seriesstringno(source nbs) Return one named series only, e.g. “cpi_yoy_index”, “cpi_mom_index”, “ppi_yoy_index”, “manufacturing_pmi”. Omit for every series of the indicator; an unknown name lists the valid ones.
periodstringno(source nbs, region “all”) The period to cross-section: “YYYY-MM” for monthly series, “YYYY-Qn” for quarterly ones. Omit for the latest period with data.

Example call

Arguments

{
  "indicator": "cpi",
  "periods": 3
}

curl

curl -X POST https://gateway.pipeworx.io/china-macro/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"china_macro_indicator","arguments":{"indicator":"cpi","periods":3}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('china_macro_indicator', {
  "indicator": "cpi",
  "periods": 3
});

More examples

{
  "indicator": "cpi",
  "source": "nbs",
  "periods": 3
}
{
  "indicator": "cpi",
  "region": "all"
}
{
  "indicator": "capacity_utilization",
  "periods": 4
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the china-macro pack
{
  "mcpServers": {
    "china-macro": {
      "url": "https://gateway.pipeworx.io/china-macro/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 30, 2026