Purpose: honest-stat-gov-mcp is a local MCP (Model Context Protocol) server for the Bank Danych Lokalnych (BDL) of Statistics Poland (GUS). BDL is the authoritative public source for Polish socio-economic statistics, containing tens of thousands of time series covering population, prices, business demography, unemployment rate, GDP, and more, with support for four levels of territorial resolution: national, voivodeship, powiat, and gmina. This server lets AI assistants directly search and retrieve these statistics, avoiding the hassle of manually browsing the BDL web interface or working directly with the REST API, where one must navigate the multi-layered concepts of "subject → variable → unit → data".
Main capabilities: The server provides the following tools: search_subjects for browsing or searching the subject tree (e.g., "CENY", "LUDNOŚĆ"); search_variables for finding data series under a given subject; search_units for finding territorial units by name and/or level (voivodeship, powiat, gmina); get_unit_details for retrieving the full record for a given unit ID; and get_data for fetching the actual values of a variable for selected units and a year range. If unit_ids is passed to get_data, only those units are returned (one API request per unit); if not passed, all voivodeships are returned by default.
Usage: The project runs as a local MCP server and must be registered in Claude Code or Claude Desktop. Claude Desktop uses claude_desktop_config.json for configuration. On Windows, the venv/bin/... paths must be replaced with venv\Scripts\pip and venv\Scripts\python. The typical three-step workflow is: first use search_variables to find the variable ID, then search_units to find the unit ID, and finally pass the variable ID, unit IDs, and year range to get_data to fetch the data. For example, querying "changes in average monthly wages in Mazowieckie over the past 10 years", or querying "the voivodeship with the highest unemployment rate in 2024" (in this case get_data is called without unit_ids, returning all voivodeships by defaultvoivodeships).
Use cases: Suitable for analysis, reporting, and question-answering scenarios that require quickly obtaining official Polish socio-economic statistics, especially for users who know exactly which indicator they want and prefer to retrieve data through natural-language conversation.
Limitations: The data source is the GUS BDL public REST API. No API key is required, but the anonymous limits are 1 request per second, 100 requests per 15 minutes, 1,000 requests per 12 hours, and 10,000 requests per 7 days. When get_data is given unit_ids, it makes one request per unit (at most 4 per second); on HTTP 429 it stops and lists the units that were not retrieved. Higher limits can be obtained by registering for a free API key, but this server does not send a key, so it always uses the anonymous limits. The project emphasizes local-first design: no cloud relay, no telemetry, and data flows only between the user's machine and GUS. The project is licensed under MIT.