mcpField
C
China Macro

China Macro

Remote
pipeworx.ioFinance0Updated 3d ago

About China Macro

China Macro is an MCP server for analysts and researchers tracking Chinese economic and financial indicators. It combines LPR, NBS statistics, 70-city home prices, SHIBOR and government-bond yields in keyless data tools.

Key features

  1. 01Monthly LPR rates and history
  2. 02Headline NBS economic indicators
  3. 0370-city home price indexes
  4. 04SHIBOR and government-bond yields

Use cases

  1. 01Check the latest one- and five-year LPR
  2. 02Track inflation, GDP and trade indicators
  3. 03Compare residential price indexes by city
  4. 04Review SHIBOR fixings and yield curves

MCP support

Exposes tools for live Chinese macroeconomic and financial data to MCP clients. It can run locally over stdio or through the Pipeworx gateway.

Configuration

Remote servers need no local install. Pick your client, then copy the config or install in one click.

Endpointhttps://gateway.pipeworx.io/china-macro/mcp
Copy install command
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.

Tools

Details

From the project README

@pipeworx/china-macro

China's PBOC Loan Prime Rate (贷款市场报价利率, LPR), National Bureau of Statistics headline indicators, 70-city house prices, SHIBOR and the government-bond yield curve — all keyless, sourced live.

Part of Pipeworx — an MCP gateway connecting AI agents to 1879+ live data sources. This is an independent, unofficial integration — not affiliated with, endorsed by, or published by the upstream provider.

Tools

  • china_lpr({ months? }) — up to the last 12 monthly LPR announcements (1-year and 5-year rate, plus reference date), newest first, and a latest field. The upstream only exposes a rolling ~1-year window — months caps at 12.
  • china_lpr_latest() — the current 1-year/5-year LPR print and its reference date only, without the history. Cheaper when a caller just wants "the current rate".
  • china_macro_indicator({ indicator, periods? }) — one tool across nine headline indicators: cpi, ppi, pmi (manufacturing + non-manufacturing), gdp (year-to-date cumulative, by sector), industrial_production (industrial value-added growth), retail_sales, fixed_asset_investment, money_supply (M0/M1/M2), and trade (monthly export/import totals). Returns the latest period first, then up to periods (default 12, max 36) months/quarters of history — every field translated from its Chinese NBS name to an English name with its unit. Direct route (source: "nbs"). Reads the National Bureau of Statistics of China's own database instead of the republisher. Each series comes back with its period, period_type (single_month / single_quarter / year_to_date), measure (index, pct_change_yoy, pct_change_qoq, change_pp, level, level_pct, rate_pct, diffusion_index), unit and base (e.g. "same month of the prior year = 100"), exactly as published and never converted; the publisher's own unit string is kept as published_unit because it can be wrong (a base-100 index published as "%"). A series whose base cannot be established from the publisher's label returns basis_status: "unresolved" with the number only as value_raw. Blank periods are dropped and counted, never returned as nulls. Also adds urban_unemployment and capacity_utilization (quarterly), series (one named series), period, and region: a province name for its history, or "all" for the 31 mainland provincial-level regions in one period (cpi, ppi, industrial_production, fixed_asset_investment, gdp). Taiwan, Hong Kong and Macao are not in these series.
  • china_house_prices({ city?, month? }) — the 70-city new-build and resale residential price indexes. city (English name) for one city's history (up to 24 months); month ("YYYY-MM") to pin a release; neither for the latest month's full 70-city cross-section.
  • china_rates({ series, days?, periods? }) — series: "shibor" for the Shanghai Interbank Offered Rate across all 8 tenors (latest fixing + daily history); series: "yield_curve" for the China Government Bond yield curve (dated 1-year/10-year benchmark history plus the full real-time quoted curve across all actively-traded maturities).

Auth

Keyless. No cookie or session.

Data sources

  • National Interbank Funding Center, under PBOC authorization — the Loan Prime Rate (china_lpr, china_lpr_latest).
  • National Bureau of Statistics of China — CPI, PPI, PMI, GDP, industrial value-added growth, retail sales, fixed-asset investment, money supply, and the 70-city residential price index (china_macro_indicator, china_house_prices).
  • National Bureau of Statistics of China, national and provincial statistics database -- the direct route (source: "nbs", region): national monthly and quarterly series and the provincial cross-sections. data_as_of is the latest period with a value.
  • General Administration of Customs of China — monthly export/import totals (china_macro_indicator({ indicator: "trade" })).
  • China Foreign Exchange Trade System / National Interbank Funding Center — the SHIBOR fixing and China Government Bond yields (china_rates).

The LPR publisher exposes only a rolling ~12-month window, so china_lpr cannot return deeper history. LPR is announced monthly on the 20th (or the next business day) — expect china_lpr_latest's reference_date to move roughly once a month.

The NBS and Customs figures reach us through a keyless republisher (Eastmoney's data centre) that carries the official series; the NBS or Customs name stays first in every response's source field and the intermediary second. The 1-year/10-year government-bond benchmark is the daily series disclosed under the IMF's Special Data Dissemination Standard; it is capped at 60 rows per call here — request periods close to what you need rather than the daily maximum. The real-time yield curve defaults to Treasury bonds.

Quick Start

Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):

{
  "mcpServers": {
    "china-macro": {
      "url": "https://gateway.pipeworx.io/china-macro/mcp"
    }
  }
}
What this endpoint actually serves

tools/list at https://gateway.pipeworx.io/china-macro/mcp returns the tools in the table above plus the shared Pipeworx meta-tools — ask_pipeworx, discover_tools, search_within, remember/recall and the rest of the gateway-wide set. So the tool count you see is larger than this table: a single-pack endpoint currently lists roughly 30 shared tools alongside the pack's own. The connection's initialize response states its exact scope, and is the authoritative answer for a given day.

This is deliberate, not multiplexing by accident. The meta-tools are what let a scoped connection answer a question this pack does not cover — via ask_pipeworx, which routes across the whole catalog — without you adding a second MCP server. There is currently no way to mount a pack endpoint without them; if the extra schemas cost you more context than the routing is worth, connect to the full gateway once rather than to several pack endpoints.

Or connect to the full Pipeworx gateway to get every pack's tools listed directly, instead of just this one's:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://gateway.pipeworx.io/mcp"
    }
  }
}

Both URLs reach the same gateway and the same 1879+ data sources. The only difference is which pack's tools are listed directly; ask_pipeworx reaches all of them from either one.

No MCP client? Call it over HTTP

curl -X POST https://gateway.pipeworx.io/v1/tools/china_lpr \
  -H 'Content-Type: application/json' \
  -d '{"months":12}'

No account needed for the first calls. Inspect any tool: GET https://gateway.pipeworx.io/v1/tools/china_lpr. Find one: POST https://gateway.pipeworx.io/v1/tools/search_packs with {"query":"..."}.

Standalone (no gateway account)

This package also runs as a local stdio MCP server — no Pipeworx account, no gateway round-trip:

{
  "mcpServers": {
    "china-macro": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-china-macro"]
    }
  }
}

Or run it directly to confirm it starts:

npx -y @pipeworx/mcp-china-macro

It speaks MCP over stdin/stdout and answers initialize/tools/list/tools/call for only this pack's tools — none of the shared meta-tools the gateway connection above adds. Same source, same tools, no ask_pipeworx routing.

Using with ask_pipeworx

Instead of calling tools directly, you can ask questions in plain English — this works on the pack endpoint above as well as on the full gateway:

ask_pipeworx({ question: "your question about China Macro data" })

The gateway picks the right tool and fills the arguments automatically.

More

License

MIT

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.