CNBS MCP Server
MCP server for querying China National Bureau of Statistics (NBS) data and major international statistical databases. All data is fetched from real APIs — no mock data.
에이전트 강화
게시자의 자체 명령입니다. PlugMCP 엔드포인트가 아닙니다.
Host a copy with our keys and logs.
npx -y [email protected]Claude Code에는 로컬 명령용 설치 링크가 없습니다. 아래 명령을 복사해 터미널에서 실행합니다.
claude mcp add mcp-cnbs -- npx -y mcp-cnbs@1.3.2터미널에서 실행합니다.
{ "mcpServers": { "mcp-cnbs": { "command": "npx", "args": [ "-y", "[email protected]" ] } }}claude_desktop_config.json
원격 URL인가요, 내 컴퓨터에서 실행하는 명령인가요? 두 설치 방식의 차이
PlugMCP에서 실행
A new server you create. It is not this listing's official endpoint. Use the publisher install when you want their URL and their credentials.
실행게시자 제공
MCP server for querying China National Bureau of Statistics (NBS) data and major international statistical databases. All data is fetched from real APIs — no mock data.
MCP server for China National Bureau of Statistics (CNBS) data access
| Source | Auth | Coverage |
|---|
| China NBS (data.stats.gov.cn) | None | Monthly / Quarterly / Yearly / Provincial domestic data |
| World Bank (api.worldbank.org) | None | 200+ countries — GDP, CPI, trade, population, FDI, Gini, etc. |
| IMF DataMapper | None | WEO forecasts — GDP growth, inflation, government debt, current account |
| OECD SDMX | None | Member-country quarterly GDP, employment, leading indicators |
| BIS Statistics | None | Effective exchange rates, credit gaps, property prices, cross-border banking |
| FRED (Federal Reserve) | X-Fred-Api-Key request header | US rates, CNY/USD, oil, gold, S&P 500, M2 |
| NBS Census | None | Population (2020), Economic (2018), Agriculture (2016) censuses |
| NBS Departments | None | Finance, Industry, Trade, Agriculture, PBoC monetary, Social Security, Housing, Energy |
FRED API Key: Free registration at https://fred.stlouisfed.org/docs/api/api_key.html
Pass it as theX-Fred-Api-Keyrequest header (HTTP mode) or setFRED_API_KEYenv var (stdio mode).
npx mcp-cnbs
npx mcp-cnbs --port 12345
npm install -g mcp-cnbs
mcp-cnbs
Supported clients: Claude Desktop, Cursor, Windsurf, Cherry Studio, Trae, Continue, and all MCP-compatible clients.
{
"mcpServers": {
"cnbs": {
"command": "npx",
"args": ["mcp-cnbs"]
}
}
}
With FRED support:
{
"mcpServers": {
"cnbs": {
"command": "npx",
"args": ["mcp-cnbs"],
"env": {
"FRED_API_KEY": "your_fred_api_key"
}
}
}
}
Supported clients: Trae, Cherry Studio, and other clients with HTTP transport support.
Free demo on ModelScope (no FRED):
{
"mcpServers": {
"cnbs": {
"url": "https://mcp.api-inference.modelscope.net/c2ca6ece4e9946/mcp"
}
}
}
HTTP mode with FRED:
{
"mcpServers": {
"cnbs": {
"url": "https://your-cnbs-server/mcp",
"headers": {
"X-Fred-Api-Key": "your_fred_api_key"
}
}
}
}
Free public demo by Alibaba Cloud ModelScope. No auth required.
For production use, deploy your own instance.
// Full macro snapshot in one call
cnbs_economic_snapshot()
// Latest single indicator
cnbs_search(keyword="GDP")
// Batch indicators
cnbs_batch_search(keywords=["GDP", "CPI", "城镇化率", "出生率"])
// Regional comparison
cnbs_compare(keyword="GDP", regions=["北京", "上海", "广东"], compareType="region")
// Time series
cnbs_fetch_series(setId="...", metricIds=["..."], periods=["2015YY-2024YY"])
// China GDP growth vs peers (World Bank)
ext_world_bank(indicator="GDP_GROWTH", countries=["CHN","USA","DEU","JPN","IND"], startYear=2015)
// Multiple indicators for China
ext_world_bank_multi(indicators=["GDP_GROWTH","CPI","UNEMPLOYMENT"], countries=["CHN"], startYear=2010)
// IMF: single indicator
ext_imf(indicators="GDP_GROWTH", countries=["CHN","USA","JPN"], periods=["2022","2023","2024","2025"])
// IMF: multiple indicators in one call
ext_imf(indicators=["GDP_GROWTH","CPI_INFLATION","GOVT_DEBT"], countries=["CHN","USA"], periods=["2020","2021","2022","2023","2024"])
// World Bank + IMF side-by-side
ext_global_compare(wbIndicator="GDP_GROWTH", imfIndicator="GDP_GROWTH", countries=["CHN","USA","DEU","JPN"])
// BIS: single country
ext_bis(dataset="EER", countries="CN", lastNObservations=36)
// BIS: multiple countries in one call
ext_bis(dataset="EER", countries=["CN","US","DE","JP"], lastNObservations=24)
// BIS: credit gap
ext_bis(dataset="CREDIT_GAP", countries=["CN","US"], lastNObservations=20)
// FRED: single series
ext_fred(series="OIL_PRICE_WTI", limit=100, sortOrder="desc")
// FRED: multiple series in one call
ext_fred(series=["FED_FUNDS","CNY_USD","OIL_PRICE_WTI","GOLD_PRICE"], limit=30, sortOrder="desc")
// 2020 Population census
ext_cn_census(type="population")
// PBoC M2 monetary data
ext_cn_department(department="monetary", indicator="M2货币供应量")
// All finance ministry indicators
ext_cn_department(department="finance", fetchAll=true)
2024YY, range ["2020YY-2024YY"]2024A/B/C/D (A=Q1, B=Q2, C=Q3, D=Q4), shortcuts LAST6/LAST12/LAST18202401MM, range ["202301MM-202412MM"]Follows GB/T 2260 standard. Use cnbs_get_regions for the full list.
No authentication required by default. Enable Bearer token auth:
npx mcp-cnbs --port 12345 --auth-token your-secret-token
# or via env var
MCP_CNBS_AUTH_TOKEN=your-secret-token npx mcp-cnbs --port 12345
Requests must then include:
Authorization: Bearer your-secret-token
npx wrangler secret put MCP_CNBS_AUTH_TOKEN
npm install
npm run build
npm run start
data.stats.gov.cn, api.worldbank.org, www.imf.org, sdmx.oecd.org, stats.bis.org, api.stlouisfed.orgMIT
MCP server for China National Bureau of Statistics (CNBS) data access
{ "mcpServers": { "mcp-cnbs": { "command": "npx", "args": [ "-y", "[email protected]" ] } }}도구
아직 도구 목록이 없습니다. 원격 서버는 첫 상태 확인 후에 도구 목록이 생깁니다.
FAQ
이 페이지에서 Cursor, Claude Desktop, Claude Code 또는 VS Code용 stdio 설정을 복사합니다. PlugMCP 프록시가 아니라 게시자의 설치 방식을 사용합니다.
이 레코드에는 필수 환경 변수가 등록되어 있지 않습니다.
MCP Cnbs은(는) stdio를 통해 로컬에서 실행됩니다.
마지막 확인: 2026-11-14. MCP server for China National Bureau of Statistics (CNBS) data access