gov-stat-mcp-server MCP Server

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…

Local serverstdio

What is the gov-stat-mcp-server MCP Server?

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.

Local setup

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.

Configuration values

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.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
list_portalsDescription: List available government open-data portals and their capabilities.
ParametersNone
Read-onlytrue
search_datasetsDescription: Full-text search for datasets on a portal. Returns compact summaries with dataset ids.
Parameters:portal (string): Portal code
querystring, optional): Full-text row filter (DataStore-backed resources only)
limitnumber, optional): Max results (default 10, max 50)
orgstring, optional): Publisher/organization slug filter (CKAN portals)
formatstring, optional): Resource format filter, e.g. "CSV" (CKAN portals)
get_datasetDescription: Full dataset metadata — organization, license, tags, description, and the list of downloadable resources with their ids, formats, and sizes.
dataset_idstring, optional): Parent dataset id — recommended; required on uk
preview_resourceDescription: Preview rows from a tabular resource. Tries the portal DataStore first (row counts + text filtering); falls back to reading the head of CSV/TSV…
rowsnumber, optional): Rows to return (default 20, max 100)
fetch_resourceDescription: 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_kbnumber, optional): Max kilobytes to inline (default 256, cap 512)
get_download_linkDescription: Return the direct download URL, format, and size for a resource so the agent can proceed on its own. Works for any format, including…

How to install the gov-stat-mcp-server MCP Server

{
  "mcpServers": {
    "govdata": {
      "command": "govdata-mcp",
      "env": {
        "DATAGOV_API_KEY": "YOUR_DATAGOV_API_KEY"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
DATAGOV_API_KEYDeclared in the maintainer’s client configuration.Check documentation