FCSC MCP Server
This server acts as a bridge to the Federal Competitiveness and Statistics Centre (FCSC) SDMX API, enabling AI assistants to access official UAE statistics across Economy, Social, and Environment topics.
Discover datasets: Use
listDatasetsto browse the catalogue of 50 official dataflows, optionally filtering by topic (e.g., "Economy", "Labor Force") or performing a free-text search across names, KPIs, and dataflow IDs (e.g., "unemployment").Fetch statistical observations: Use
getDatasetDatato retrieve observations for a specific dataset as a labelled table. Supports filtering by time range (e.g.,"2020","2020-Q1"), limiting results (1–1000), and advanced SDMX dimension keys for precise slicing.Inspect dataset structure: Use
getDatasetStructureto view a dataset’s dimensions and codelists, helping you understand available breakdowns and construct filtered queries.
Data should be cited as official FCSC data. (Note: Live data retrieval is currently blocked by Cloudflare bot protection.)
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., "@FCSC MCP Server What datasets are available on inflation?"
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.
FCSC MCP Server
An MCP server that exposes official UAE statistics from the Federal Competitiveness and Statistics Centre (FCSC) as tools an AI assistant can call.
It acts as the bridge between Claude and the FCSC SDMX API: Claude never calls FCSC directly. It invokes a tool here, this server calls the FCSC endpoint, and the response is returned as readable, labelled data. FCSC credentials stay in this server's environment and are never exposed to the model.
Status
The tool layer is complete and tested against local stubs. It has not yet returned live FCSC data — see Known blocker below.
Related MCP server: U.S. Census Bureau Data API MCP
Tools
Tool | Purpose |
| Discover available datasets, filtered by topic or free-text search. |
| Fetch observations for one dataset as a labelled table. |
| List a dataset's dimensions and codelists, for building filtered keys. |
Rather than defining 50 near-identical tools, the server is driven by
datasets.json — a manifest of 50 FCSC dataflows spanning Economy,
Social and Environment topics. Claude discovers what exists with listDatasets, then
reads it with getDatasetData.
Setup
Requires Node 20 or newer. The SDK's HTTP transport depends on
@hono/node-server, which does not support Node 18.
npm installLocal use — stdio transport
The client launches the server as a subprocess and speaks JSON-RPC over stdin/stdout. Nothing listens on a port.
npm start{
"mcpServers": {
"fcsc-statistics": {
"command": "node",
"args": ["/absolute/path/to/my-mcp-server/server.js"]
}
}
}Hosted use — Streamable HTTP transport
One process serving many clients over the network. This is what claude.ai custom connectors and shared team deployments require.
npm run start:http # listens on :3000, endpoint POST /mcp
curl localhost:3000/health # {"status":"ok","datasets":50,...}PORT, HOST and CORS_ORIGIN are configurable via the environment.
Note that nohup npm start & will not work for backgrounding — the stdio
server exits immediately when its stdin is closed. Background start:http
instead, or run either under a process manager such as systemd or pm2.
To register as a claude.ai custom connector the endpoint must be reachable at a
public HTTPS URL — a private EC2 address won't do. Terminate TLS with nginx,
Caddy or an ALB in front of the service, and give Claude the
https://your-domain/mcp URL.
Environment variables
Variable | Purpose |
| Override the API base URL. Useful for pointing at a test stub. |
| Sent as |
Regenerating the dataset manifest
datasets.json is generated from the FCSC deep-links spreadsheet:
npm run build:manifest -- "/path/to/FCSC- MOBILE APP- Deep links.xlsx"The generator scans the three URL columns for the first /rest/data/ URL and
normalises it to the flat (dimensionAtObservation=AllDimensions) flavour itself,
rather than trusting the spreadsheet's "SDMX flavour (Flat)" column — that column has
known defects, including one row shifted a column right and 19 rows whose
time-series URL duplicates the flat one.
Two rows (Vital Statistics → Birth, Death) carry no URL at all and are reported as skipped.
Known blocker
The FCSC hosts sit behind Cloudflare bot protection, which returns HTTP 403 to every
non-browser client — the whole domain, not just the API paths. A browser
User-Agent does not help.
The API itself is live and serving: an external request reached
DF_LFUNEMP_ED and received HTTP 200 with SDMX-ML. So the barrier is Cloudflare
sitting between a program and the API, not the API itself.
Needed from FCSC: a machine-usable path to the API — an API key, a service account, or allowlisting for the server — plus confirmation of which response format the service will serve.
The server negotiates for SDMX-JSON, falls back to SDMX-CSV, and detects SDMX-ML and reports it rather than failing silently. If FCSC only ever serve SDMX-ML, an XML parsing path needs adding.
Layout
server.js stdio entry point
http-server.js Streamable HTTP entry point (hosted / claude.ai)
create-server.js MCP server factory and tool definitions
fcsc.js URL building, HTTP, SDMX parsing, table rendering
datasets.json Generated manifest of 50 FCSC dataflows
scripts/build-manifest.py Regenerates datasets.json from the spreadsheetAvailable Tools
3 toolsgetDatasetDataGet FCSC dataset observationsA
Fetches official observations for one FCSC dataset from the UAE statistics SDMX API (flat flavour) and returns them as a labelled table. Always cite these figures as official FCSC data.
Inputs: datasetId (required), key, limit, endPeriod, +1 more.
getDatasetStructureGet FCSC dataset structureA
Returns the dimensions and codelists for one FCSC dataset. Use this when you need to build a filtered key for getDatasetData, or to explain what breakdowns a dataset offers.
Inputs: datasetId (required).
listDatasetsList FCSC datasetsA
Lists the official UAE statistics datasets available from FCSC, optionally filtered by topic or a free-text search over dataset names and KPIs. Use this first to find the datasetId to pass to getDatasetData.
Inputs: topic, search.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: listing datasets, fetching data, and retrieving structure. No overlap or ambiguity between them.
All tool names follow a consistent verb_noun pattern with camelCase: listDatasets, getDatasetData, getDatasetStructure. The naming is predictable and coherent.
With 3 tools, the server is well-scoped for its purpose. Each tool earns its place and covers the essential operations without excess.
The set covers the full dataset workflow: discover (listDatasets), understand (getDatasetStructure), and retrieve (getDatasetData). No significant gaps for the stated purpose.
Maintenance
Related MCP Connectors
Official statistics for AI agents: Eurostat, World Bank, OECD, IMF and WHO data for 150+ countries.
Search and query 1,500+ OECD statistical datasets via SDMX. Keyless.
Official economic statistics for AI agents: GDP, inflation, trade and debt for 150+ countries.
Machine-readable utilities and datasets for AI agents.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables AI assistants to discover, retrieve, and compare official international development indicators from sources such as the World Bank, FAOSTAT, WHO, UNICEF, and IMF, while preserving source identifiers, units, and citations.102MIT
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants to access official Census Bureau statistics through the Census Data API and other official sources, supporting dataset discovery, geography resolution, FIPS lookup, and aggregate data retrieval.-
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants to discover Census datasets, resolve geographic areas to FIPS codes, and fetch official aggregate statistics from the Census Data API and other Census Bureau sources.-
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to discover Census datasets, resolve geography FIPS codes, and fetch aggregate statistics from official Census Bureau APIs and local data.MIT