A Model Context Protocol (MCP) server that lets AI agents search, explore, and fetch open datasets from official government data portals. One unified tool interface across the United States, United…
gov-stat-mcp-server is an MCP project maintained in the chester-2026/gov-stat-mcp-server repository. The maintainer describes its purpose as “A Model Context Protocol (MCP) server that lets AI agents search, explore, and fetch open datasets from official government data portals. One unified tool interface…”. Read the project documentation for the complete scope.
The project provides a local client configuration using govdata-mcp. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.
The example declares DATAGOV_API_KEY. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.
Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.
Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.
| Tool | What it does |
|---|---|
| list_portals | Description: List available government open-data portals and their capabilities. |
| Parameters | None |
| Read-only | true |
| search_datasets | Description: Full-text search for datasets on a portal. Returns compact summaries with dataset ids. |
| Parameters: | portal (string): Portal code |
| query | string, optional): Full-text row filter (DataStore-backed resources only) |
| limit | number, optional): Max results (default 10, max 50) |
| org | string, optional): Publisher/organization slug filter (CKAN portals) |
| format | string, optional): Resource format filter, e.g. "CSV" (CKAN portals) |
| get_dataset | Description: Full dataset metadata — organization, license, tags, description, and the list of downloadable resources with their ids, formats, and sizes. |
| dataset_id | string, optional): Parent dataset id — recommended; required on uk |
| preview_resource | Description: Preview rows from a tabular resource. Tries the portal DataStore first (row counts + text filtering); falls back to reading the head of CSV/TSV… |
| rows | number, optional): Rows to return (default 20, max 100) |
| fetch_resource | Description: Download a small text resource (CSV/JSON/XML/…) and return its content inline, truncated at a size cap on a clean line boundary. Binary content is |
| max_kb | number, optional): Max kilobytes to inline (default 256, cap 512) |
| get_download_link | Description: Return the direct download URL, format, and size for a resource so the agent can proceed on its own. Works for any format, including… |
{
"mcpServers": {
"govdata": {
"command": "govdata-mcp",
"env": {
"DATAGOV_API_KEY": "YOUR_DATAGOV_API_KEY"
}
}
}
}From the project documentation. Replace placeholders and example paths before connecting.
| Variable | Description | Required |
|---|---|---|
| DATAGOV_API_KEY | Declared in the maintainer’s client configuration. | Check documentation |
Contribute, challenge, verify, and query contestable public records on Veritas Acta.
Free web lookups; PDF to Markdown, audio transcripts, screenshots, WHOIS/DNS paid per call via x402.
UK neighbourhood research from government open data: postcode reports, comparisons, 45 datasets.
Dutch address dossier, vehicle, building, elevation, holidays, demographics. Free samples first.
Normalized official data with provenance, aggregations, insights, free samples and agent access.
Normalized official data with provenance, aggregations, insights, free samples and agent access.