istat-mcp-suite
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@istat-mcp-suiteWhat is the latest inflation rate in Italy?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ISTAT MCP Suite Super-Server
Server MCP unificato ed avanzato per interrogare, esplorare e scaricare dataset statistici dall'ISTAT (Istituto Nazionale di Statistica) tramite SDMX REST API.
Caratteristiche Principali
Single-Call Unified Metadata (
get_constraints): Combina la struttura del dataflow, i vincoli ammessi e le descrizioni leggibili delle codeliste in 1 sola query.Risoluzione Territoriale Offline (
get_territorial_codes): Ricerca istantanea (case-insensitive su nome, codiceREF_AREAe codice ISTAT) su 8.039 entitàREF_AREA(1 nazione, 5 ripartizioni, 22 regioni/province autonome, 107 province, 7.904 comuni). Il dataset si rigenera conpython scripts/build_territorial_codes.py.Estrazione Dati Ibrida (
get_data): Restituisce dati inline (TSV/CSV/JSON) per query veloci e passa automaticamente al salvataggio su file locale inMCP_STORAGE_DIRper payload di grandi dimensioni o timeout.Sliding-Window Rate Limiting (
core/client.py): Protezione automatica dalla soglia di 5 req/min dell'ISTAT per prevenire il blocco dell'IP.Cache a 2 Livelli (
core/cache.py): In-memory (L1) + DiskCache persistente (L2).Diagrammi Mermaid (
get_structure_diagram): Generazione automatica di grafici Mermaid.js per visualizzare la struttura dimensionale del dataset.Dual Transport (
cli.py): Supporta la modalitàstdio(per Claude Desktop, Cursor, ecc.) e la modalitàsse(Streamable HTTP server per il cloud).
Related MCP server: mcp-istat-it
Note sui tool
I tool restituiscono oggetti JSON strutturati (non stringhe JSON annidate): il client fa un solo parse.
Le funzioni dei tool non accettano il client SDMX come parametro. FastMCP costruisce il modello degli argomenti con pydantic a partire dalle annotazioni: una classe arbitraria come
IstatSDMXClientnella firma fa fallire ogni chiamata conPydanticSchemaGenerationErrorprima ancora della richiesta HTTP. Tutti i tool usano il singletonistat_mcp.core.client.global_client, che condivide anche un unico rate limiter.get_constraintssostituisce i tool separatiget_structureeget_codelist_descriptiondelle implementazioni di riferimento: la fusione è voluta (una sola chiamata invece di due). Analogamentedataflow_id/key_filtersostituisconoid_dataflow/dimension_filters.key_filterè una chiave SDMX puntata, non un dizionario: un segmento per dimensione nell'ordine di posizione dato daget_constraints, segmento vuoto = tutti i valori, valori multipli separati da+. Esempio:A.053011.W_SUPPL+W_TOTLOS.
Comportamenti dell'API ISTAT da conoscere
Verificati contro esploradati.istat.it il 2026-08-06:
ISTAT serve SDMX-CSV anche quando si chiede TSV. La risposta di
get_datariporta il formato reale informate quello richiesto inrequested_format; il file salvato prende l'estensione reale.Serve un
AcceptXML esplicito sugli endpoint di struttura: l'Acceptdi default del client elencaapplication/jsonper primo e ISTAT lo rispetta, restituendo SDMX-JSON che i parser XML non digeriscono.Il catalogo dei dataflow si scarica con
detail=allstubs(~2 MB / ~35 s) invece del default (~13 MB / ~70 s). Cache 30 giorni.Un id di dataflow non è un id di datastructure:
609_1_DF_DCCV_URBANENV_1è servito dalla DSDDCCV_URBANENV,22_389daDCIS_POPRES1.get_constraintsrisolve la DSD dal dataflow prima di interrogarla.Sui dataflow con serie storiche lunghe serve
last_n_observations. Su22_389anche una chiave che seleziona una sola osservazione (A.IT.JAN.9.TOTAL.99) va in timeout senza vincolo temporale, mentre conlast_n_observations=1l'estrazione su tutti i ~12.000 REF_AREA risponde in pochi secondi.force_file_downloadscarica in streaming su disco, senza tenere il payload in memoria e con un timeout di lettura dedicato (DOWNLOAD_TIMEOUT_SECONDS, default 900 s).
Installazione e Avvio
Con uv:
# Esecuzione rapida in modalità STDIO (locale)
uv run python -m istat_mcp.cli --transport stdio
# Esecuzione in modalità SSE (HTTP Server)
uv run python -m istat_mcp.cli --transport sse --port 8000Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseAqualityDmaintenanceProvides access to Catalonia's statistical data via the IDESCAT Tables API v2. It enables users to navigate catalogs, inspect metadata, and query data with territorial filters and resolved labels.Last updated51
- Alicense-qualityCmaintenanceEnables querying Italian national statistics (ISTAT) data through natural language questions, with tools for accessing demographic, economic, and social indicators.Last updated17MIT
- AlicenseAqualityCmaintenanceEnables LLMs to access and analyze Italian statistical data from ISTAT via natural language queries, supporting dataset discovery, exploration, and data retrieval.Last updated92MIT
- AlicenseAqualityBmaintenanceEnables natural language discovery, querying, and analysis of Thailand's official statistics from the National Statistical Office via SDMX REST API. It provides tools for searching dataflows, exploring structures, and fetching data with caching and bilingual support.Last updated8MIT
Related MCP Connectors
Eurostat MCP — wraps Eurostat Statistical Data API (no auth required)
Query IMF SDMX 3.0 macroeconomic dataflows — WEO, BOP, CPI, exchange rates, 190 countries.
dati.gov.it MCP — Italy's national open-data portal (CKAN API).
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ManoloZocco/istat-mcp-suite'
If you have feedback or need assistance with the MCP directory API, please join our Discord server