Skip to main content
Glama

@pipeworx/nso-vn

Vietnam National Statistics Office (NSO, formerly the General Statistics Office) MCP: find a table in the statistical database, read its dimensions, and pull labelled figures for population and density, births and deaths, life expectancy, labour force, employment, unemployment and underemployment, enterprises and industrial production indices, by region and province. Vietnam only. Live call per request, nothing stored.

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

Tools

  • nso_vn_search_tables(query, limit?) — find tables by keyword. Titles are Vietnamese; English keywords are matched through a built-in glossary and Vietnamese works with or without accents. Each result lists the words that matched. Returns the native table id, title and last-updated date.

  • nso_vn_table_info(table_id, dimension?, match?) — dimensions of one table with valid value codes and labels; pass dimension (and match) to list every value of one dimension.

  • nso_vn_get_data(table_id, select?) — figures as labelled rows. select maps a dimension to a value label or code, an array, "*", "first", "last" or "last:N". Unselected dimensions are defaulted (year dimensions to the latest value, others to the first) and every default is listed in selection_resolved and note. Selections above 1,500 cells are refused with the per-dimension sizes. A selection with no published value says why in empty_reason.

Table ids are the publisher's native ids, e.g. Dân số và lao động/V02.59.px; use them exactly as returned.

Related MCP server: kira-dosm

Auth

Keyless.

Data sources

  • Vietnam National Statistics Office (NSO), statistical database of official statistical tables.

Notes and traps

  • Only the Vietnamese-language service holds tables. The English service lists database names, but every one of them is empty (404), so labels and titles are Vietnamese as published.

  • The server has no usable keyword search; nso_vn_search_tables reads the three database listings (about 130 tables) and matches titles itself. Words with no match are simply not counted, and a note says when only some of the words matched.

  • The first dimension is often a measure selector whose labels state the unit, e.g. "Tổng số (Nghìn người)" (total, thousand persons) versus "Tỷ lệ tăng - %" (growth rate, percent).

  • A period label "Sơ bộ 2025" is a preliminary estimate. It sorts last, so "latest" picks it.

  • Value codes are positional strings; select by label.

  • data_as_of is the table's last-updated time as the publisher lists it.

Quick Start

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

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

What this endpoint actually serves

tools/list at https://gateway.pipeworx.io/nso-vn/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 2015+ 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/nso_vn_search_tables \
  -H 'Content-Type: application/json' \
  -d '{"query":"unemployment rate","limit":5}'

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

Run it from npm

@pipeworx/mcp-nso-vn is a local stdio bridge to the Pipeworx gateway: your MCP client starts it with npx, and it forwards every call to the same https://gateway.pipeworx.io/nso-vn/mcp endpoint shown above. It needs network access; there is no offline mode.

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

Without a key it calls anonymously, capped at 50 calls a day. A free account raises that to 200 a day: get a key at https://pipeworx.io/signup and add "env": { "PIPEWORX_API_KEY": "<your key>" } to the server entry. The key is sent as a Bearer token, the same way a hosted connection sends it, so calls are metered and billed exactly as they are there.

It lists only this pack's tools by default. Set PIPEWORX_META_TOOLS=1 to also list ask_pipeworx and the other gateway-wide tools.

Behind an HTTPS proxy: Node's built-in fetch does not read HTTPS_PROXY by default. Newer Node releases honour it when NODE_USE_ENV_PROXY=1 is set; check your Node version's documentation.

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 Nso Vn data" })

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

More

License

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Search Statistics Finland's StatFin database (3,000+ tables), inspect table variables, and query clean flattened statistics on population, economy, labour and regions.
      11 npm
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables querying Malaysian official statistics through natural language, with correct series resolution, statistical transformations, and provenance-attached data.
      11
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables searching and retrieving South Korean national statistics tables, inspecting table metadata and values, and exporting results to xlsx/csv/json/sqlite, with automatic time-period splitting when responses exceed 40,000 cells.
      11
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables keyword search and retrieval of observations, dimensions, and code lists from Stats NZ's published datasets, covering censuses, earnings, business demography, population projections, household expenditure, and justice statistics.
      129 npm
      MIT