ESCAP Data Explorer MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ESCAP Data Explorer MCP Server What is the poverty headcount ratio in Thailand between 2010 and 2022?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ESCAP Data Explorer MCP Server
An MCP (Model Context Protocol) server that provides official statistical data for development indicators in Asia-Pacific. It wraps the ESCAP Data Explorer API, letting any MCP-compatible host query SDG and thematic data through natural language.
Live endpoint:
https://dataexplorer.unescap.org/mcp/message
What is this?
The ESCAP Data Explorer is the official statistical platform of the United Nations Economic and Social Commission for Asia and the Pacific (ESCAP). It publishes hundreds of SDG and thematic indicators covering poverty, gender, environment, health, trade, and more — across 58 Asia-Pacific countries and territories.
This MCP server wraps the ESCAP Data Explorer's SDMX v2.1 REST API and exposes it as five structured tools that an AI agent can call in sequence to discover, validate, and retrieve statistical data — all through natural language.
Related MCP server: MoSPI MCP Server
Example use cases
"What is the poverty headcount ratio in Thailand between 2010 and 2022?"
"Show me SDG 5 gender equality indicators available for South Asia."
"Compare CO₂ emissions per capita across ASEAN countries from 2000 to 2020."
"Which Asia-Pacific countries have data on maternal mortality after 2015?"
"Summarize progress on SDG 1 (No Poverty) for least developed countries."
Tools
The server exposes five tools that follow a guided workflow:
Step | Tool | Description |
1 |
| Browse the full SDG & Thematic indicator hierarchy. Returns indicator codes and descriptions. |
2 |
| Fetch structural metadata (dimensions, attributes) for a chosen indicator in XML. |
3 |
| List all 58 reference areas with their codes and full names. |
4 |
| Confirm data exists for a given indicator, country, and year range before fetching. |
5 |
| Retrieve observation data in SDMX format for a given indicator, country, and period. |
Quickstart — use the public endpoint
The server is already deployed and publicly accessible. No installation needed.
Claude Desktop
Install mcp-remote if you haven't already:
npm install -g mcp-remoteAdd to your Claude Desktop config file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"escap-data-explorer": {
"command": "mcp-remote",
"args": ["https://dataexplorer.unescap.org/mcp/message"]
}
}
}Restart Claude Desktop. The five ESCAP tools will appear automatically.
Other MCP clients (native Streamable HTTP)
{
"mcpServers": {
"escap-data-explorer": {
"url": "https://dataexplorer.unescap.org/mcp/message"
}
}
}Self-hosting
Requirements
Node.js 18 or later
npm 8 or later
Docker + Docker Compose (for server deployment)
1. Clone the repository
git clone https://github.com/your-org/escap-mcp.git
cd escap-mcp2. Install and build
npm install
npm run build3. Run locally (stdio mode — for development)
node dist/index.jsTest with Claude Desktop by pointing to the local binary:
{
"mcpServers": {
"escap-data-explorer": {
"command": "node",
"args": ["/absolute/path/to/escap-mcp/dist/index.js"]
}
}
}4. Deploy with Docker
Build the image:
docker build -t escap-mcp:latest .
docker compose up -dVerify the server is running:
curl http://localhost:9000/health
# {"status":"ok","transport":"streamable-http","messagePath":"/message"}Configuration
All configuration is via environment variables:
Variable | Default | Description |
|
| Transport mode: |
|
| HTTP port when |
|
| Path prefix if your reverse proxy passes it through unchanged |
Reverse proxy (Apache)
If deploying behind Apache, replace your /mcp/ location block with the following. The key directive is flushpackets=on, which prevents Apache from buffering the streaming HTTP response:
<Location /mcp/>
ProxyPass http://localhost:9000/ flushpackets=on flushwait=1
ProxyPassReverse http://localhost:9000/
ProxyPreserveHost On
RequestHeader set X-Forwarded-Proto "https"
SetEnv no-gzip 1
SetEnv dont-vary 1
</Location>Required modules: mod_proxy, mod_proxy_http, mod_headers.
sudo a2enmod proxy proxy_http headers
sudo systemctl reload httpdAPI reference
This server connects to the ESCAP Data Explorer SDMX v2.1 REST API. The underlying endpoints used are:
Purpose | Endpoint |
Indicator hierarchy |
|
Indicator metadata |
|
Country codelist |
|
Data availability |
|
Data retrieval |
|
Dataset types are either SDG (Sustainable Development Goals) or Theme (thematic indicators).
Transport
The server implements the Streamable HTTP MCP transport (the current standard as of MCP SDK 1.x). Legacy SSE transport is not supported.
Endpoint:
POST /message— all client-to-server communicationSession management: via
Mcp-Session-Idrequest/response headerServer push:
GET /messagewithMcp-Session-Idheader
Project structure
escap-mcp/
├── src/
│ └── index.ts # All server logic (single file)
├── dist/ # Compiled output (after npm run build)
├── Dockerfile # Two-stage Alpine build
├── docker-compose.yml # Production deployment
├── apache-mcp.conf # Apache reverse proxy config snippet
├── tsconfig.json
└── package.jsonGitHub topic tags
Add these topics to your GitHub repository (Settings → Topics):
mcp mcp-server model-context-protocol asia-pacific statistics open-data sdmx unescap sustainable-development-goals sdg
Contributing
Contributions are welcome. Please open an issue first to discuss what you'd like to change.
License
MIT — see LICENSE for details.
About ESCAP
The United Nations Economic and Social Commission for Asia and the Pacific (ESCAP) is the regional development arm of the United Nations for the Asia-Pacific region. The ESCAP Data Explorer provides free, open access to official statistics from member states across economic, social, and environmental dimensions.
Available Tools
4 toolsget_countriesA
Step 3: Retrieve the full list of countries and reference areas available in UNESCAP Data Explorer, including their codes (id) and names. Use these codes when checking availability or fetching data.
Inputs: no named parameters.
get_dataA
Step 5: Retrieve actual data for a given indicator, optional country, and time period. Returns SDMX data (JSON or XML) including observation values, time periods, and attributes. It is recommended to call check_data_availability first to confirm data exists.
Inputs: endYear (required), startYear (required), datasetType (required), indicatorCode (required), +1 more.
get_indicator_metadataA
Step 2: Retrieve metadata (dimensions, attributes, structure) for a specific indicator. Call this after choosing an indicator from get_indicators.
Inputs: datasetType (required), indicatorCode (required).
get_indicatorsA
Step 1: Retrieve the full hierarchy of available SDG and Thematic indicators from UNESCAP Data Explorer. Browse the results and choose ONE indicator. The indicator code is the segment after the last # in the 'val' field. Only use indicator codes returned by this tool — do not invent or source codes from elsewhere.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a distinct purpose: listing indicators, getting metadata, listing countries, and fetching data. No overlap or ambiguity.
All tools follow a consistent 'get_' prefix with a resource name, using underscores for multi-word names.
4 tools cover the essential operations for a data explorer: browsing metadata and fetching data. The count is well-scoped.
Covers the main workflow but missing a 'check_data_availability' tool that is referenced in the get_data description, creating a minor gap.
Maintenance
Related MCP Connectors
This MCP server provides seamless access to Malaysia's government open data, including datasets, w…
Open-source MCP for official development indicators with provenance and citations.
Data Commons MCP — harmonised public statistics for places, from Google Data Commons (REST v2).
Hosted MCP server for live public-data APIs and Skills for AI agents.
Related MCP Servers
- AlicenseBqualityDmaintenanceMCP server for accessing Japanese government statistics portal 'e-Stat' API, enabling language models to search and retrieve statistical data.521MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for accessing India's Ministry of Statistics and Programme Implementation (MoSPI) data APIs. Enables natural language queries for economic, demographic, and social indicators via a 4-tool workflow.MIT

dml-bps-mcpofficial
AlicenseBqualityDmaintenanceMCP server for accessing Indonesian BPS statistics data via natural language queries.58MIT- AlicenseNot gradedqualityBmaintenanceMCP server to access India Open Government Data (data.gov.in) resources via natural language queries.117 npm1MIT