italy-legislation-mcp-server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Overview
Search Italian state acts in Normattiva, resolve citations to their Gazzetta Ufficiale publications, and read provisions as originally published or in force on a given date. Browse the current consolidated text, its lifecycle, and changes reported by Normattiva. Searches and source text are in Italian. Coverage is Italian state legislation.
Tools
Tool | Description |
| Search by Italian words, act type, number, enactment, publication, or validity |
| Resolve Italian citations, code aliases, URN:NIR, ELI, and Normattiva links |
| Read an article, comma, or letter in a specified version |
| Browse the current act outline or read a selected part |
| List dated act-level events, linked instruments, and parliamentary bills when supplied |
| Find changes reported to consolidated acts and their modifier codes |
| Look up act types, code abbreviations, identifiers, and collection metadata |
Related MCP server: US Code MCP
Capability reference
italylaw_search_acts tool
Use query for Italian words in titles or text, or title_words for titles only. Filter by act type, enactment or publication dates, or in_force_on. The default page size is 25, with a ceiling of 500. Continue with next_offset and the same filters and sort. Results include GU publication coordinates and facets when provided. EU references in titles can carry CELEX identifiers, including legacy references such as direttiva 95/46/CE → 31995L0046.
{"title_words":"procedimento amministrativo","type":"LEGGE","year":1990,"number":241}italylaw_lookup_citation tool
Pass citations in citations. A resolved entry can include an article address or date selector alongside the publication identity. Use exact GU coordinates to disambiguate candidates. When the call's deadline expires, retry the entries in unprocessed.
{"citations":["Legge 7 agosto 1990, n. 241","https://www.normattiva.it/eli/id/1990/08/18/090G0294/ORIGINAL"]}italylaw_get_provision tool
Pass exact GU coordinates or a citation and up to 10 article selectors per call. Select a date with as_of (a Rome calendar date), or send original: true for the text as published. An explicit date and original mode are mutually exclusive. The default is today in Rome. Use outline: true to get addressable comma labels. The ((…)) markers identify wording changed or inserted by amendment. Submit any selectors returned as remaining in a follow-up call.
{"act":{"codice_redazionale":"090G0294","data_gu":"1990-08-18"},"provisions":["art. 1, comma 1"],"as_of":"2024-01-01"}italylaw_get_act tool
Omit part for the current outline. Pass an exact outline path or an unambiguous section, article, preamble, or annex label for text. Use outline: true to browse the selected part. Start without polling by setting wait_seconds: 0.
{"act":{"codice_redazionale":"090G0294","data_gu":"1990-08-18"},"wait_seconds":0}For a pending export, wait the returned retry_after_seconds, then pass its job_token in place of act. Either export tool can resume the job. Tokens expire and are lost on restart. The default polling window is 45 seconds.
{"job_token":"<job_token from the pending response>"}italylaw_list_versions tool
Read dated lifecycle events from the current Akoma Ntoso export, newest first. These dates describe act-level events. Use the provision tool to see which wording was in force for an individual article. Filter with inclusive from and to, and pass next_offset as offset to continue. Pass either act or a pending job_token, using the same continuation flow as italylaw_get_act.
{"act":{"codice_redazionale":"090G0294","data_gu":"1990-08-18"},"limit":5}italylaw_track_changes tool
Supply both from and to (inclusive Rome dates) or omit both for the last seven calendar days. Results reflect changes the feed observed within the window. Modifier codes are preserved when a notice has no associated act or a lookup cannot finish. For historical lifecycle events, use italylaw_list_versions.
{"from":"2024-01-01","to":"2024-01-31","limit":5}italylaw_list_reference tool
Choose act_types, identifiers, codes, collections, coverage, errors, or all (default). Collections list metadata about available bulk datasets and require a Normattiva request.
{"topic":"act_types"}Features
Built on @cyanheads/mcp-ts-core: stdio and Streamable HTTP transports, pluggable auth (none / jwt / oauth), swappable storage (in-memory, filesystem, Supabase, Cloudflare KV/R2/D1), structured logging with optional OpenTelemetry tracing.
Normattiva access requires no API key.
Verified publication coordinates distinguish an act's identity from its enactment date and the validity of any article.
Results carry source attribution and continuation fields for pending jobs, partial calls, and paginated queries.
Getting started
claude mcp add italy-legislation-mcp-server -- npx -y @cyanheads/italy-legislation-mcp-serverFor other clients, add this to the MCP config file.
{
"mcpServers": {
"italy-legislation-mcp-server": {
"command": "npx",
"args": ["-y", "@cyanheads/italy-legislation-mcp-server"]
}
}
}Bun users can run bunx @cyanheads/italy-legislation-mcp-server. For Docker or a source build, see Running the server.
Configuration
Variable | Purpose | Default |
|
|
|
| HTTP bind address |
|
| HTTP port |
|
| MCP endpoint path |
|
|
|
|
| Minimum log level |
|
| Enable OpenTelemetry |
|
| Share a tool-call summary with the maintainer |
|
See .env.example for common framework overrides.
Running the server
The default local HTTP endpoint is http://127.0.0.1:3010/mcp.
MCP_TRANSPORT_TYPE=http npx -y @cyanheads/italy-legislation-mcp-serverLocal development
Requires Bun v1.4.4 or higher for development. The built npm entry point also runs on Node.js v24+.
git clone https://github.com/cyanheads/italy-legislation-mcp-server.git
cd italy-legislation-mcp-server
bun install
cp .env.example .env
bun run rebuild
bun run start:http
# or bun run start:stdioDocker
docker run --rm -p 127.0.0.1:3010:3010 ghcr.io/cyanheads/italy-legislation-mcp-server:latestThe image defaults to HTTP and stateless sessions, with logs in /var/log/italy-legislation-mcp-server. For stdio, configure the client with "command": "docker" and "args": ["run", "-i", "--rm", "-e", "MCP_TRANSPORT_TYPE=stdio", "ghcr.io/cyanheads/italy-legislation-mcp-server:latest"]. Build locally with docker build -t italy-legislation-mcp-server .. Pass --build-arg OTEL_ENABLED=false to omit the OpenTelemetry peer dependencies.
Project structure
Directory | Purpose |
| Seven tool definitions and shared export schemas |
| Normattiva API client, search, provision reads, change feed, and export jobs |
| Legal citations, identifiers, and parsing of Akoma Ntoso and article HTML |
| Domain, service, and tool tests |
See the directory tree.
Development guide
See CLAUDE.md for development guidelines and architectural rules.
Handlers throw and the framework catches and classifies failures.
Use
ctx.logfor logging andctx.statefor tenant-scoped storage.Register tools in
src/index.ts.Validate upstream responses before normalizing to domain types. Omit absent source fields.
Contributing
Issues are welcome. Run checks and tests before submitting.
bun run devcheck
bun run testLicense
The server is licensed under Apache 2.0.
Fonte: Normattiva (www.normattiva.it), Istituto Poligrafico e Zecca dello Stato, CC BY 4.0. The source data are free, non-authentic, and reformatted by this server. The printed Gazzetta Ufficiale prevails. Normattiva Open Data terms · CC BY 4.0
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Search and read UK legislation at any date, resolve citations, list amendments, track changes.
Italy — national legislation, from Normattiva's Open Data service (Istituto Poligrafico e Zecca…
Temporal search and comparison for official Luxembourg and reviewed EU law, with provenance.
Search Brazilian federal legislation, read published and consolidated texts, and trace amendments.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables reading, verifying, and citing Italian legal norms from Normattiva.it through MCP tools for article lookup, Markdown citation generation, source search, and URN resolution.5MIT
- AlicenseAqualityCmaintenanceEnables searching and reading federal statutes with linked legal and inline citations, listing published titles, and retrieving complete sections with bounded pagination through hosted HTTP or local stdio.3MIT
- AlicenseNot gradedqualityNot gradedmaintenanceEnables searching Italian national legislation through Normattiva's Open Data, resolving exact URN:NIR citations, and reading the original-language text of any article as it stood on a given date. Publication, emanation, and in-force dates are returned separately, so historical (multivigenza) versions of laws, decree-laws, legislative decrees, the Constitution, and regulations can be retrieved without hand-building citation suffixes.58 npmMIT
- AlicenseAqualityBmaintenanceEnables users to search Italian legislation and judicial decisions across first-instance, appellate, and supreme/constitutional tiers, retrieve legal documents as Markdown, and verify statutory and case-law citations against official registries.6MIT