Italy OpenData logo

Italy OpenData

Query Italian regions, provinces, municipalities, postal codes, coordinates, and geographic data through local MCP tools.

Install Italy OpenData

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "italy-opendata": {
      "command": "uvx",
      "args": [
        "italy-opendata-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio italy-opendata -- uvx italy-opendata-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx italy-opendata-mcp

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The Italy OpenData MCP server gives AI clients access to Italian administrative and geographic data from ISTAT, ANPR, and community datasets. It provides tools for browsing regions, provinces, and municipalities; looking up municipalities by name or ISTAT code; finding municipalities by CAP; and checking or refreshing the local dataset. Data downloads on first use into a local SQLite cache, allowing subsequent queries to run offline. Reach for it when an agent needs structured information about Italian locations without integrating several data sources directly.

Use cases

  • List municipalities in a selected Italian region or province
  • Look up municipality details by ISTAT code or name
  • Find municipalities linked to a postal code
  • Retrieve population and geographic attributes for Italian municipalities
  • Check or refresh the locally cached dataset

Key features

  • Browse all Italian regions and provinces
  • Filter and list municipalities
  • Retrieve municipality details by name or ISTAT code
  • Search municipalities by CAP
  • Cache data locally for offline queries
  • Refresh datasets and inspect cache status

Tools7

What Italy OpenData lets your agent do. Expand a tool for its parameters.

Self-reported~96 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

14/14 checks healthy over the last 77d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 2d ago via OSV.dev · italy-opendata-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
Last commit9mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed7Callable tools this server registers over MCP.

How Italy OpenData works

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:

config.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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Italy OpenData

Italy OpenData is an MCP server that connects AI clients to Italian open data from ISTAT, ANPR, and community datasets. Its main tools list regions, provinces, and municipalities, retrieve municipality details or CAP matches, refresh local data, and report cache status.

Install it with `uvx italy-opendata-mcp` and configure your MCP client to start that command. You can also clone the repository, create a virtual environment with `uv`, and install the project in editable mode.

Yes, after the initial dataset download. The server stores data in a local SQLite cache and uses that cache for later queries; use `refresh_dataset` with `force=True` to download the source data again.

It uses ISTAT for administrative and geographic data, ANPR for resident population, and community datasets for postal codes and centroid coordinates. CAP data comes from `comuni-json`, while coordinates come from `opendatasicilia`.

Call the `get_by_cap` tool with the postal code. It returns municipalities associated with that CAP, while `get_comune` provides full details when you already know a municipality name or ISTAT code.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewItaly OpenData AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/italy-opendata?style=directory)](https://allmcps.com/mcp/italy-opendata)
HTML Embed
<a href="https://allmcps.com/mcp/italy-opendata"><img src="https://allmcps.com/api/badge/italy-opendata?style=directory" alt="Italy OpenData on AllMCPs" /></a>