Italy Parliament MCP Server
by cyanheads
README.md
<div align="center">
<h1>@cyanheads/italy-parliament-mcp-server</h1>
<p><b>Trace bills, votes, members, questions, and debates in both chambers of Italy’s Parliament via MCP. STDIO or Streamable HTTP.</b>
<div>10 Tools</div>
</p>
</div>
<div align="center">
[](./CHANGELOG.md) [](./LICENSE) [](https://github.com/users/cyanheads/packages/container/package/italy-parliament-mcp-server) [](https://modelcontextprotocol.io/) [](https://www.npmjs.com/package/@cyanheads/italy-parliament-mcp-server) [](https://www.typescriptlang.org/) [](https://bun.sh/)
</div>
<div align="center">
[](https://github.com/cyanheads/italy-parliament-mcp-server/releases/latest/download/italy-parliament-mcp-server.mcpb) [](https://cursor.com/en/install-mcp?name=italy-parliament-mcp-server&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBjeWFuaGVhZHMvaXRhbHktcGFybGlhbWVudC1tY3Atc2VydmVyIl19) [](https://vscode.dev/redirect?url=vscode:mcp/install?%7B%22name%22%3A%22italy-parliament-mcp-server%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40cyanheads%2Fitaly-parliament-mcp-server%22%5D%7D)
[](https://www.npmjs.com/package/@cyanheads/mcp-ts-core)
</div>
---
## Overview
Search the official linked open data of the Camera dei deputati and Senato della Repubblica. Follow a bill between chambers, inspect its votes, and look up who served, signed, or spoke. The server needs no upstream API keys.
### Tools
| Tool | Description |
| --- | --- |
| `itparl_search_bills` | Find legislative proceedings (*iter*) by title, term, origin, status, or signatory |
| `itparl_get_bill` | Trace chamber phases, published text references, committee assignments, and votes |
| `itparl_search_votes` | Find electronic votes by bill, date, kind, outcome, or member |
| `itparl_get_vote` | Read the published tally and member positions, with counts by parliamentary group |
| `itparl_search_members` | Find deputies and senators by name, chamber, legislature, or group |
| `itparl_get_member` | Read a member’s mandates, group and committee history, and activity by term |
| `itparl_search_questions` | Find parliamentary oversight acts, including questions and interpellations |
| `itparl_search_debates` | Find Camera discussions and Senate interventions with links to proceedings |
| `itparl_query_sparql` | Run a read-only SELECT or ASK against one chamber |
| `itparl_list_reference` | Look up valid keys, vocabularies, coverage, and query constraints |
## Capability reference
Search pages default to 25 results. Pass `next_cursor` as `cursor` with the same tool and filters. `limit_applied` gives the effective page size, and `legislature_applied` identifies the term when one was selected. Read `notices` for source coverage and check `sources` for attribution. Use Italian terms for titles and published labels.
If one chamber is unavailable during a two-chamber search, a partial page identifies the missing chamber in `notices`. Its continuation stays with the original sources. Start a fresh search to query both chambers again.
### `itparl_search_bills` <sub>tool</sub>
- Defaults to the current legislature. From legislature 13 onward, each result groups chamber phases using the Senate iter index. Earlier terms return Camera acts.
- Filter by Italian title terms, origin, nature, latest status, first-phase presentation date, initiative, or signatory. Up to 100 per page.
### `itparl_get_bill` <sub>tool</sub>
- Accepts a phase key such as `19:S.1822`, a bill number such as `S. 1822`, or a recognized official phase URI. An unqualified number defaults to the current term unless you specify `legislature`.
- Returns ordered phases, text URLs or URNs, signatories, rapporteurs, committee referrals, available status history, and key votes. Set `include: ["all_votes"]` for a separate page of associated votes, including amendment votes, up to 100 per page.
### `itparl_search_votes` <sub>tool</sub>
- Electronic voting records begin with legislature 13. Filter by chamber, legislature, date, bill phase, kind, outcome, or member. Up to 500 per page.
- With `member_id`, rows carry that member’s position and the response counts positions across the matching set. Senate vote kinds use published labels. Check notices for limits on classification and cross-chamber member coverage.
### `itparl_get_vote` <sub>tool</sub>
- Accepts a vote key or recognized official vote URL. Returns the tally, published and normalized member positions, and group counts based on membership on the vote date. Set `group_breakdown: false` to skip group counts.
- The Senate roster excludes senators absent without leave. Check notices for unresolved group assignments and tally discrepancies.
### `itparl_search_members` <sub>tool</sub>
- Find current or former members by case-insensitive name terms, legislature, chamber, or group key. An unfiltered call lists sitting members. Up to 100 per page.
- Verified links between chamber records can identify one member across both chambers. Pass a returned `member_id` to the profile or activity tools.
### `itparl_get_member` <sub>tool</sub>
- Returns available biography, mandates, groups, committees, and Camera government posts for a member key or recognized official URI.
- Supply `legislature` to add counts of signed bills and oversight acts, and counts by recorded vote position.
### `itparl_search_questions` <sub>tool</sub>
- Filter by chamber, legislature, published act type, signatory, or presentation date. Recipient office and completion filters apply to Camera records. Up to 100 per page.
- Coverage starts with legislature 7 for Camera oversight acts and legislature 13 for Senate acts. Results link to the published text where available.
### `itparl_search_debates` <sub>tool</sub>
- Filter by legislature, sitting date, bill, or speaker. Title and sitting-key filters apply to Camera records. Up to 100 per page.
- Camera results group identified speakers by discussion. Senate results describe individual interventions. Follow the official sitting, transcript, or bulletin links for the speech text. Camera coverage is sparse in legislatures 11–12, skips legislature 13, and may lag for recent sittings.
### `itparl_query_sparql` <sub>tool</sub>
- Run SELECT or ASK against `camera` or `senato`. Returns typed RDF bindings or an ASK boolean, alongside the executed query and source.
- SELECT defaults to 100 rows when the query omits LIMIT. Pass `limit` for a server-added limit up to 1,000 or use an explicit LIMIT up to 10,000. ASK takes no `limit`. Read the `query_constraints` and `prefixes` reference topics for dialect and paging rules.
### `itparl_list_reference` <sub>tool</sub>
- Topics are `chambers`, `vote_positions`, `identifiers`, `query_constraints`, `prefixes`, `search_syntax`, `legislatures`, `groups`, `committees`, `bill_statuses`, and `question_types`.
- Sourced lists page up to 100 rows. Bundled tables return in full.
## Getting started
```sh
claude mcp add italy-parliament-mcp-server -- npx -y @cyanheads/italy-parliament-mcp-server
```
For clients that accept an `mcpServers` config:
```json
{
"mcpServers": {
"italy-parliament-mcp-server": {
"command": "npx",
"args": ["-y", "@cyanheads/italy-parliament-mcp-server"]
}
}
}
```
Try a published Senate bill and roll call:
| Tool | Arguments | What to look for |
| --- | --- | --- |
| `itparl_get_bill` | `{"key":"19:S.1822"}` | Ordered phases and links to the original bill records |
| `itparl_get_vote` | `{"key":"senato:19-469-6"}` | Published tally, individual positions, and group counts |
| `itparl_get_member` | `{"member_id":"senato:32600","legislature":19}` | The presiding member’s published profile and term activity |
| `itparl_list_reference` | `{"topic":"legislatures"}` | Published legislature keys and coverage by chamber |
## Configuration
Stdio is the default. For local Streamable HTTP:
```sh
MCP_TRANSPORT_TYPE=http npx -y @cyanheads/italy-parliament-mcp-server
claude mcp add --transport http italy-parliament-mcp-server http://127.0.0.1:3010/mcp
```
Run the second command in a separate terminal. See [`.env.example`](.env.example) for HTTP, authentication, logging, and telemetry settings. Usage reports are off by default. Set `MCP_USAGE_REPORTING=true` to share tool-call summaries, or `DO_NOT_TRACK=1` to disable reports regardless of the opt-in.
## Running the server
Use Node.js ≥24 for the npm package. Building from source requires Bun ≥1.4.4.
```sh
git clone https://github.com/cyanheads/italy-parliament-mcp-server.git
cd italy-parliament-mcp-server
bun install
bun run rebuild
bun run start:stdio
```
Run `bun run start:http` for Streamable HTTP. Run `bun run devcheck` and `bun run test` before submitting changes.
### Docker
```sh
docker run --rm -p 127.0.0.1:3010:3010 ghcr.io/cyanheads/italy-parliament-mcp-server:latest
```
The image serves HTTP at `/mcp` and health checks at `/healthz`. For stdio clients, use:
```sh
docker run --rm -i -e MCP_TRANSPORT_TYPE=stdio ghcr.io/cyanheads/italy-parliament-mcp-server:latest
```
## Sources and licensing
- Camera dei deputati linked open data and ontology documentation. [Camera data portal](https://dati.camera.it/ocd-rappresentazione-semantica-e-documentazione), [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/).
- Senato della Repubblica linked open data and ontology documentation. [Senate data license](https://dati.senato.it/sito/19?testo_generico=24), [Senate ontology](https://dati.senato.it/sito/21), [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/).
Bill texts, oversight documents, and proceedings are available through the published links or URNs. Coverage and freshness follow each chamber’s publication. The server code is licensed under [Apache 2.0](LICENSE).
## Development
See the [developer protocol](AGENTS.md), [design notes](docs/design.md), and [project tree](docs/tree.md). Report bugs or request features using the [issue forms](https://github.com/cyanheads/italy-parliament-mcp-server/issues/new/choose). Report vulnerabilities using the [security policy](.github/SECURITY.md).
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues