istat-mcp

istat-mcp is a skill for Claude Code, Codex from ondata/istat_mcp_server. It costs 102 tokens per session (6,046 once invoked), scanned A, original, MIT.

A workflow guide for querying ISTAT, Italy’s national statistics institute, through an MCP data server. It covers datasets such as population, unemployment, GDP, agriculture, and regional or provincial statistics.

In plain words
What is it for?
Use it to discover ISTAT dataflows, resolve Italian territories, inspect dataset concepts and constraints, and retrieve statistical data.
Why use it?
It provides a defined process for finding the right dataset, resolving territories, understanding metadata, and querying the data in the user’s language.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to discover ISTAT dataflows, resolve Italian territories, inspect dataset concepts and constraints, and retrieve statistical data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ondata/istat_mcp_server/istat-mcp
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ondata/istat_mcp_server --skill istat-mcp
Clone the repo
git clone --depth 1 https://github.com/ondata/istat_mcp_server

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for istat-mcp

README.md
[![agentmods](https://agentmods.dev/badge/skills/ondata/istat_mcp_server/istat-mcp/github.svg)](https://agentmods.dev/skills/ondata/istat_mcp_server/istat-mcp)
Your own site
<a href="https://agentmods.dev/skills/ondata/istat_mcp_server/istat-mcp"><img src="https://agentmods.dev/badge/skills/ondata/istat_mcp_server/istat-mcp/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for istat-mcp

Your own site · 80×15
<a href="https://agentmods.dev/skills/ondata/istat_mcp_server/istat-mcp"><img src="https://agentmods.dev/badge/skills/ondata/istat_mcp_server/istat-mcp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 102 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,046 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00102 $0.06046
Opus 5 $0.00051 $0.03023
Sonnet 5 $0.00020 $0.01209
Haiku 4.5 $0.00010 $0.00605

Measured 11d ago against content hash 6f2930c17f9f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

istat-mcp scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- The goal is to hand off the download to the user (browser, curl, DuckDB, script)
skills/istat-mcp/SKILL.md · 547 lines

How it starts

The opening of the file, as written. The whole thing — 547 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ISTAT MCP Server - Workflow Guide

Language Detection — First Step (mandatory)

Before doing anything else, detect the language of the user's first message.

User writes in Set Apply to
Italian lang=it all responses, labels, summaries, warnings, get_concepts calls, "Fonti dati" section
English lang=en all responses, labels, summaries, warnings, get_concepts calls, "Data Sources" section

Rules:

  • Detect once at the start; keep lang fixed for the entire conversation even if the user later switches language.
  • Every response — including tool-call summaries, warnings, and the closing data-sources section — must use the detected language.
  • When calling get_concepts, always pass "lang": "<detected>" (e.g. {"concept_id": "FREQ", "lang": "it"}).
  • If the language cannot be determined (e.g. the first message is a bare dataflow ID), default to lang=it.

Quick Start

If the query targets a specific territory (region, province, municipality), start by resolving the territory:

  1. Resolve territory with get_territorial_codes → get REF_AREA codes
  2. Discover the dataflow with discover_dataflows
  3. Get metadata with get_constraints (one call returns dimensions + valid codes + descriptions)
  4. Fetch data with get_data using the codes from steps 0 and 2

Skip step 0 only when the query is about Italy as a whole (REF_AREA: IT).

Time Period Rule

Default behaviour — last available year, month or quarter. Unless the user explicitly requests a time series or a specific period, always use get_data without start_period/end_period and with lastNObservations=1 . Using lastNObservations=1 returns only the last available observation. This keeps responses compact and avoids flooding the context with multi-decade series.

Time series — explicit request. Use start_period / end_period only when the user explicitly asks for:

  • time series for a specific years range ("dal 2015 al 2026", "from 2010 to 2026")
  • Time series starting from a specific year ("dal 2015 in poi", "from 2015 onwards")
  • time series for a specific month/quarter ("mostrami la serie storica mensile", "show me the quarterly series"). In this case show data only for the last 2 available years to avoid flooding the context with too many observations.

Read the full file on GitHub · 547 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 547 lines · 102 tokens per session scan A 6f2930c17f9f

Subscribe to this mod's changes

istat-mcp is a skill published in the GitHub repository ondata/istat_mcp_server (23 stars, last pushed 3mo ago), licensed MIT. It adds 102 tokens to every session and 6,046 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.