China Safe
live ReferenceChina SAFE (State Administration of Foreign Exchange) — 国家外汇管理局
Tools
china_fx_reserves China's official reserve assets (官方储备资产) by month, from SAFE's English site: headline FX reserves
No parameters required.
Try it
china_balance_of_payments China's quarterly balance of payments (国际收支平衡表) from SAFE's English site — current account
No parameters required.
Try it
china_external_debt China's gross external debt position by sector (外债, since 2014Q4) from SAFE's English site — total, by
No parameters required.
Try it
china_safe_releases Lists the actual publish dates of SAFE's reserves/BOP/external-debt English pages, straight from each
No parameters required.
Try it
Test with curl
The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.
curl -X POST https://gateway.pipeworx.io/china-safe/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' curl -X POST https://gateway.pipeworx.io/china-safe/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"china_fx_reserves","arguments":{}}}' Use with the SDK
Install @pipeworx/sdk to call tools from any TypeScript/Node project.
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("china_fx_reserves", {}); // Or ask in plain English:
const answer = await px.ask("china safe (state administration of foreign exchange) — 国家外汇管理局");