# Italy OpenData [Health: Active]

**Category:** 🗺️ Location Services  
**Repository:** https://github.com/stucchi/italy-opendata-mcp  
**GitHub Stars:** 1  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/italy-opendata

## Description
Italian open data: municipalities, provinces, regions, postal codes, coordinates.

## Tools
Capabilities this server exposes over MCP:

- **list_regioni** — All 20 regions with municipality count and population
- **list_province** — Provinces with optional region filter
- **list_comuni** — Municipalities with optional filters (default 400 results)
- **get_comune** — Full details of a municipality by name or ISTAT code
- **get_by_cap** — Find municipalities associated with a postal code
- **refresh_dataset** — Re-download data from sources
- **datasets_status** — Local cache status

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "italy-opendata": {
    "command": "uvx",
    "args": ["italy-opendata-mcp"]
  }
}
```

## Documentation

## What Italy OpenData does

The Italy OpenData MCP server exposes Italian geographic and administrative reference data through MCP tools. It covers all 20 regions, 107 provinces, and 7,896 municipalities, with fields such as names, ISTAT and cadastral codes, province and region membership, population, coordinates, surface area, altitude, altimetric zone, coastal status, urbanization degree, and postal codes.

Official data comes from ISTAT for administrative and geographic classifications and from ANPR for resident population. CAP data comes from the community `comuni-json` project, while municipality centroid coordinates come from `opendatasicilia`. These sources matter when evaluating the precision and authority of a particular field.

## How it works

The Italy OpenData MCP server downloads its dataset lazily, on first use, and stores the result in a local SQLite database of approximately 1.8 MB. After the initial download, query tools use the local cache and do not require an active connection to retrieve results.

A typical navigation flow starts with `list_regioni`, continues through `list_province` with an optional region filter, and then uses `list_comuni` with region or province filters. Direct lookups are available through `get_comune`, which accepts a municipality name or ISTAT code, and `get_by_cap`, which searches by postal code.

## Setup and configuration

Install and run the Italy OpenData MCP server with:

```bash
uvx italy-opendata-mcp
```

A client can start it as a stdio process using this MCP configuration:

```json
{
  "mcpServers": {
    "italy-opendata": {
      "command": "uvx",
      "args": ["italy-opendata-mcp"]
    }
  }
}
```

It can also be installed from a cloned source repository with `uv venv` followed by `uv pip install -e .`. On macOS and Linux, the cache is stored at `~/.cache/italy-opendata-mcp/italia.db`; on Windows, it is stored under `%LOCALAPPDATA%\\italy-opendata-mcp\\italia.db`.

## Tools and capabilities

- `list_regioni`: returns all regions with municipality counts and population.
- `list_province`: lists provinces, optionally restricted to a region.
- `list_comuni`: lists municipalities with optional region and province filters; the default result limit is 400.
- `get_comune`: returns full municipality details by name or ISTAT code.
- `get_by_cap`: finds municipalities associated with a CAP.
- `refresh_dataset`: downloads the source data again, with an optional force flag.
- `datasets_status`: reports the state of the local cache.

## Limitations and notes

The dataset is limited to Italian administrative and location information. Geographic fields are not complete for every municipality: the supplied coverage reports 7,889 municipalities with coordinates, 7,519 with geographic data, and 7,887 with postal codes. Population data is sourced from ANPR and may change with its daily updates. CAP and centroid data use community sources because no official source is available for those fields. Use `refresh_dataset(force=True)` when the local copy needs to be downloaded again.

_Full upstream README: https://allmcps.com/mcp/italy-opendata/readme_

