Borrowing it
Nothing to install: this file belongs to capazme/mcp-legal-it. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/capazme/mcp-legal-it/main/CLAUDE.mdgit clone --depth 1 https://github.com/capazme/mcp-legal-itWrote 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.
[](https://agentmods.dev/instructions/capazme/mcp-legal-it/claude-md)<a href="https://agentmods.dev/instructions/capazme/mcp-legal-it/claude-md"><img src="https://agentmods.dev/badge/instructions/capazme/mcp-legal-it/claude-md/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.
<a href="https://agentmods.dev/instructions/capazme/mcp-legal-it/claude-md"><img src="https://agentmods.dev/badge/instructions/capazme/mcp-legal-it/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.13401 | $0.13401 |
| Opus 5 | $0.06700 | $0.06700 |
| Sonnet 5 | $0.02680 | $0.02680 |
| Haiku 4.5 | $0.01340 | $0.01340 |
Grade C, and why
mcp-legal-it CLAUDE.md scanned grade C with 2 findings 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.
Downloads and executes remote codehighSupply chain
curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.
curl -LsSf https://astral.sh/uv/install.sh | sh Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -LsSf https://astral.sh/uv/install.sh | sh How it starts
The opening of the file, as written. The whole thing — 810 lines — stays where its author put it; the contents beside it link to each section on GitHub.
mcp-legal-it — Project Context
MCP server con 221 tool di calcolo legale italiano, consultazione normativa (Normattiva, EUR-Lex, Brocardi), ricerca giurisprudenziale (Italgiure, CeRDEF, TAR/CdS, CGUE), delibere CONSOB.
Confini del progetto — LEGGERE PRIMA
Questo progetto è autonomo e indipendente dal SAPG Tech Desk.
| Progetto | Path | Scopo |
|---|---|---|
| mcp-legal-it (questo) | /Users/gpuzio/Desktop/CODE/mcp-legal-it/ |
Tool legali generici: calcoli, normativa, giurisprudenza |
| SAPG MCP Server | ~/Desktop/CODE/SAPG TECH DESK/sapg-tech-desk/apps/mcp-server/ |
Piattaforma compliance: clienti, checklist, task, documenti |
I tool Italgiure (leggi_sentenza, cerca_giurisprudenza, ecc.) sono QUI, non in SAPG.
Se un agente non vede leggi_sentenza, è perché sta guardando il server sbagliato.
Stack
| Layer | Tecnologia |
|---|---|
| Framework MCP | FastMCP >= 2.0, < 4 (@mcp.tool(), @mcp.prompt(), @mcp.resource()) |
| HTTP client | httpx >= 0.27 (async) |
| HTML scraping | BeautifulSoup4 + lxml |
| PDF generation | fpdf2 |
| DOCX / XLSX | python-docx, openpyxl |
| Python | >= 3.10, venv in .venv/ |
| Test | pytest + pytest-asyncio |
Struttura
mcp-legal-it/
├── src/
│ ├── server.py # FastMCP entry point — registra tutti i tool
│ ├── prompts.py # 23 workflow guidati (@mcp.prompt)
│ ├── resources.py # 15 risorse statiche (@mcp.resource)
│ ├── lib/
│ │ ├── visualex/ # Normattiva + EUR-Lex scraper
│ │ │ ├── scraper.py # fetch_article(), fetch_annotations(), fetch_normattiva_full_text()
│ │ │ ├── map.py # BROCARDI_CODICI, ATTI_NOTI, resolve_atto(), find_brocardi_url()
│ │ │ └── models.py # Norma, NormaVisitata dataclasses
│ │ ├── brocardi/ # Scraper Brocardi standalone
│ │ │ └── client.py # fetch_brocardi(), BrocardiResult, Massima, parse_massime_references()
│ │ ├── italgiure/ # Client Italgiure (Cassazione Solr API)
│ │ │ └── client.py # solr_query(), build_*_params(), format_*()
│ │ ├── consob/ # Client CONSOB (Liferay Portal scraper)
│ │ │ └── client.py # search_delibere(), fetch_delibera(), format_*()
│ │ ├── cerdef/ # Client CeRDEF (Giurisprudenza Tributaria MEF)
│ │ │ └── client.py # search_giurisprudenza(), fetch_provvedimento(), format_*()
│ │ ├── giustizia_amm/ # Client Giustizia Amministrativa (TAR/CdS)
│ │ │ └── client.py # search_provvedimenti(), fetch_provvedimento_text(), format_*()
│ │ ├── cgue/ # Client CGUE (CELLAR SPARQL + EUR-Lex)
│ │ │ └── client.py # search_giurisprudenza(), fetch_sentenza_text(), format_*()
│ │ ├── corte_cost/ # Client Corte Costituzionale
│ │ │ └── client.py # search_pronunce(), fetch_pronuncia(), format_*()
│ │ ├── gazzetta/ # Client Gazzetta Ufficiale (ricerca + RSS)
│ │ │ └── client.py # search_atti(), fetch_atto(), sommario(), format_*()
│ │ ├── gpdp/ # Client Garante Privacy (Liferay scraper)
│ │ │ └── client.py # search_provvedimenti(), fetch_provvedimento(), format_*()
│ │ ├── eu_implementation/ # Recepimento direttive UE -> Italia (EUR-Lex)
│ │ │ └── client.py # get_national_measures(), format_*()
│ │ ├── parlamento/ # Client open data parlamentari (Senato/Camera, SPARQL)
│ │ │ └── client.py # search_ddl(), fetch_iter(), fetch_camera_iter(), format_*()
│ │ └── vies/ # Client VIES (validazione P.IVA UE)
│ │ └── client.py # check_vat(), checksum_partita_iva()
│ └── tools/
│ ├── legal_citations.py # cite_law, fetch_law_article, fetch_law_annotations, cerca_brocardi, download_law_pdf
│ ├── italgiure.py # leggi_sentenza, cerca_giurisprudenza, giurisprudenza_su_norma, ultime_pronunce
│ ├── rivalutazioni_istat.py
│ ├── tassi_interessi.py
│ ├── scadenze_termini.py
│ ├── atti_giudiziari.py
│ ├── fatturazione_avvocati.py
│ ├── parcelle_professionisti.py
│ ├── risarcimento_danni.py
│ ├── diritto_penale.py
│ ├── proprieta_successioni.py
│ ├── investimenti.py
│ ├── dichiarazione_redditi.py
│ ├── varie.py
│ ├── consob.py # cerca_delibere_consob, leggi_delibera_consob, ultime_delibere_consob
│ ├── cerdef.py # cerca_giurisprudenza_tributaria, cerdef_leggi_provvedimento, ultime_sentenze_tributarie
│ ├── giustizia_amm.py # cerca_giurisprudenza_amministrativa, leggi_provvedimento_amm, giurisprudenza_amm_su_norma, ultimi_provvedimenti_amm
│ ├── cgue.py # cerca_giurisprudenza_cgue, leggi_sentenza_cgue, giurisprudenza_cgue_su_norma, ultime_sentenze_cgue
│ ├── gazzetta.py # cerca_gazzetta_ufficiale, leggi_atto_gazzetta, sommario_gazzetta, ultime_gazzette, scarica_pdf_gazzetta
│ ├── corte_cost.py # cerca_pronuncia_costituzionale, leggi_pronuncia_costituzionale, pronunce_cost_su_norma, ultime_pronunce_cost
│ ├── parlamento.py # cerca_ddl, iter_ddl, ddl_su_norma
│ ├── gpdp.py # cerca_provvedimenti_garante, leggi_provvedimento_garante, ultimi_provvedimenti_garante
│ ├── orientamento.py # orientamento_su_norma, orientamento_su_principio, mappa_orientamento
│ ├── eu_implementation.py # get_italian_implementation, get_eu_basis, elenco_misure_nazionali
│ ├── giurisprudenza_unificata.py # cerca_giurisprudenza_unificata
│ ├── diritto_lavoro.py # licenziamento, preavviso, NASpI, costo lavoro
│ ├── diritto_societario.py # quorum, soglie organo di controllo, scadenze societarie
│ ├── crisi_impresa.py # test crisi, composizione negoziata, concordato, compenso OCC
│ ├── procedura_civile.py # competenza_giudice, mediazione obbligatoria, gratuito patrocinio
│ ├── modelli_atti.py # genera_modello_atto, esporta_atto_docx, lista_categorie_atti
│ ├── privacy_gdpr.py
│ ├── procure_quotazioni.py # genera_procura_liti_docx, genera_quotazione_docx
│ └── analisi_fornitori.py # verifica_partita_iva_vies, genera_report_fornitori
└── tests/ # 76 file (46 unit + 30 comparison); per il conteggio
# corrente: pytest tests/ --collect-only -q | tail -1
├── unit/ # mock HTTP, nessuna connessione esterna
│ └── test_<modulo>.py # un file per modulo tool o lib
└── comparison/ # valori numerici attesi, senza mock
└── test_privacy_docs.py
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.
- 11d ago First seen · 810 lines · 13,401 tokens per session scan C 5d419c662f57
mcp-legal-it CLAUDE.md is an instructions file published in the GitHub repository capazme/mcp-legal-it (15 stars, last pushed yesterday), licensed Apache-2.0. It adds 13,401 tokens to every session, about $0.0670 per session on Opus 5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
codex AGENTS.md
AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
spec-kit AGENTS.md
AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).