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”. Keyless, sourced live from the National Bureau of Statistics of China (General Administration of Customs for trade), via Eastmoney’s data centre.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
indicator | string | yes | Which NBS/Customs indicator to return. |
periods | number | no | How many of the most recent monthly/quarterly rows to return, 1-36 (default 12). |
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
});
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.