Parliament of Poland 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.

Parliament of Poland MCP Server
An MCP server for the Polish Parliament public API: the Sejm API (MPs, votings, legislative processes, ...) and the ELI API of legal acts published in Dziennik Ustaw and Monitor Polski.
Usage
This server is designed to be run with npx, allowing you to use it as a tool provider for LLM clients without a global installation. It requires Node.js 22 or newer.
Running with npx
To start the server, run the following command:
npx parliament-poland-mcp-serverConfiguration for LLM Clients
To integrate this server with an LLM client (like LM Studio or others that support MCP), you can configure it to spawn the server process. Here is an example configuration:
{
"mcpServers": {
"parliament-poland-mcp-server": {
"command": "npx",
"args": [
"-y",
"parliament-poland-mcp-server"
]
}
}
}This configuration tells the client how to start the tool server.
Related MCP server: Bundestag MCP Server
Tools
Every tool is read-only (readOnlyHint: true) and queries the public Sejm API (openWorldHint: true).
term is optional in every Sejm tool and defaults to the current term of the Sejm; the legal act tools do not use it.
Tools that return data (all except the text tools get-interpellation-text, get-statement and get-act-text) declare an outputSchema and return the data as structuredContent too; lists come as { "items": [...] }.
Lists that the API returns whole (MPs, votings of a sitting, clubs, committees, plenary sittings, terms, keywords of legal acts) are filtered and paginated by the server and come as { "total", "offset", "nextOffset", "items" }, where nextOffset is absent on the last page.
Tool | What it returns |
| Terms (kadencje) of the Sejm with their dates; the current one is the default |
| MPs (posłowie) of a term with their ID, club and district, filtered by club, name, district, voivodeship or active; 100 per page |
| Details of one MP |
| An MP's attendance in votings for each sitting day |
| How an MP voted in every voting on one sitting day |
| Parliamentary clubs and circles (kluby i koła) |
| Details of one club |
| Committees (komisje) with their codes, without members |
| Details of one committee, with members |
| Sittings of a committee, filtered by date, with the agenda as text |
| One committee sitting with its agenda and videos |
| Interpellations (interpelacje), filtered by title, MP, recipient, date or delay |
| Details of one interpellation, with its replies |
| Text of an interpellation or of a reply to it |
| Written questions (zapytania), filtered like interpellations |
| Prints (druki: bills, reports and other documents) |
| Details of one print |
| Plenary sittings (posiedzenia) with their numbers and dates |
| One plenary sitting with its agenda as text |
| The current or next plenary sitting with its agenda as text |
| Legislative processes, filtered by title or document type |
| Legislative processes that ended with a passed act |
| One legislative process with its stages, identified by its print number |
| Statements in the transcript of one sitting day |
| Text of one statement |
| Video transmissions of a term |
| Video transmissions of one day (today by default) |
| Votings of one plenary sitting, filtered by day or title; 50 per page |
| Result of one voting with a breakdown by club, optionally with each MP's vote |
| Votings found by title, sitting or date range |
| Bilateral groups (parliamentary friendship groups) |
| Legal acts in Dziennik Ustaw and Monitor Polski, by title, type, keywords, status or dates |
| Details of one legal act, with references to other acts (amending acts, consolidated texts…) |
| Text of a legal act or of one of its articles, in pages |
| Keywords that |
Legal acts come from the ELI API, which works independently of the Sejm API. An act is identified by its ELI: publisher (DU for Dziennik Ustaw, MP for Monitor Polski), year and position, e.g. DU/2024/1. The ELI field of a legislative process from get-process or get-passed-processes leads from a bill passed by the Sejm to the act as published, and the prints of an act lead back to the process.
Upgrading from 1.x
Version 2.0 makes the tools easier for LLMs to use and contains breaking changes:
Tool names. Tools are registered under short kebab-case names, e.g.
get-membersinstead ofGet-a-list-of-MPs-for-a-given-term. Update any client configuration, allow-lists or prompts that refer to the old names:2.0
1.x
get-termsGet-a-list-of-Sejm-termsget-membersGet-a-list-of-MPs-for-a-given-termget-memberGet-information-about-a-member-of-Parliamentget-mp-voting-statsGet-voting-attendance-statistics-of-an-MP-for-each-sitting-dayget-mp-votingsGet-how-an-MP-voted-on-a-given-sitting-dayget-clubsGet-a-list-of-clubs-for-a-given-termget-clubGet-detailed-information-about-a-specific-clubget-committeesGet-a-list-of-committees-for-a-given-termget-committeeGet-detailed-information-about-a-specific-committeeget-committee-sittingsGet-a-list-of-sittings-of-a-committeeget-committee-sittingGet-details-about-a-single-committee-sittingget-interpellationsGet-a-list-of-interpellations-for-a-given-termget-interpellationGet-detailed-information-about-a-specific-interpellationget-interpellation-textGet-the-text-of-an-interpellation-or-of-a-reply-to-itget-printsGet-a-list-of-prints-for-a-given-termget-printGet-detailed-information-about-a-specific-printget-proceedingsGet-a-list-of-proceedings-for-a-given-termget-current-proceedingGet-the-current-or-next-sitting-of-the-Sejm-with-its-agendaget-processGet-information-about-a-specific-legislative-processget-processesGet-a-list-of-legislative-processes-for-a-given-termget-passed-processesGet-a-list-of-passed-legislative-processes-for-a-given-termget-transcriptsGet-the-list-of-transcript-statements-for-a-Sejm-sitting-dayget-statementGet-the-text-of-a-single-statement-from-a-Sejm-sitting-transcriptget-videosGet-a-list-of-video-recordings-for-a-given-termget-videos-by-dateGet-video-transmissions-from-a-given-dayget-votingsGet-a-list-of-votings-for-a-given-termget-votingGet-the-results-of-a-single-voting-with-a-breakdown-by-clubsearch-votingsSearch-for-votings-in-a-given-termget-written-questionsGet-a-list-of-written-questions-for-a-given-termget-bilateral-groupsGet-a-list-of-bilateral-groups-in-the-Sejmsearch-actsSearch-Polish-legal-acts-in-Dziennik-Ustaw-and-Monitor-Polskiget-actGet-details-of-a-Polish-legal-actget-act-textGet-the-text-of-a-Polish-legal-act-or-of-one-of-its-articlesget-act-keywordsList-keywords-used-to-classify-Polish-legal-actstermis optional everywhere and defaults to the current term.Responses contain compact JSON (no indentation) instead of pretty-printed JSON, and JSON tools also return
structuredContentmatching theiroutputSchema. The text messages before the data are unchanged.get-interpellationssends its filters to the API under the names the API supports, sodateFrom,dateToandmpnow actually filter the results. Thenumber,clubandstatusparameters, which the API never supported, are removed; useget-interpellationfor a single interpellation anddelayed: truefor interpellations with an overdue answer. New parameters:recipient,modifiedSince,delayed.get-written-questionsaccepts only an MP ID infromand gainsdelayed.get-proceedingsno longer returns the agenda and schedules of each sitting as HTML, which made the list about 700 KB; it returns the number, title, dates andcurrentflag. The newget-proceedingtool returns one sitting with its agenda as plain text.get-membersreturns 100 MPs per page withid,firstLastName,club,districtNum,districtName,voivodeshipandactive(about 14 KB instead of 240 KB for all 494 MPs of the 10th term). Ask for more fields withfields(e.g.["profession", "birthDate"]);get-memberreturns everything about one MP. New filters:club,name(ignores case and Polish diacritics),active,district(number or name) andvoivodeship.get-votingsreturns 50 votings per page (the 147 votings of the first sitting of the 10th term were 87 KB) without the PDF link and the term. New filters:date(a day of the sitting) andtitle(words in the title, topic or description).search-votingsreturns the same fields.get-committeesno longer returns the members of each committee, which made the list of the 40 committees of the 10th term 173 KB instead of 28 KB;get-committeereturns the members of one committee.Pagination of whole lists.
offsetandlimitofget-members,get-votings,get-clubs,get-committees,get-proceedingsandget-termsare applied by the server, because the API does not document them for these lists. These tools now returntotalandnextOffsetwith the items.get-clubs,get-committees,get-proceedingsandget-termsstill return the whole list by default.get-printsreturns 50 prints by default and paginates the list itself if the API returns more thanlimit.get-printtakesprintNumberas a string, so additional prints such as1070-Acan be fetched.get-processesgains thetitleanddocumentTypefilters ofget-passed-processes.Parameters with a fixed format are validated: dates (
YYYY-MM-DD), club IDs, print numbers and sort fields.
Development
To run the server in a development environment:
Clone the repository.
Install dependencies:
npm installRun unit tests:
npm testRun live API integration tests (requires internet access):
npm run test:live-apiBuild the project:
npm run buildRun the server:
npm start
Author
Piotr Kolawa (@pkolawa) / (Linkedin)
License
This project is licensed under the MIT License - see the LICENSE file for details.
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
Verified Polish open data for AI agents: debt, budget, 460 MPs, votings, judiciary search, RAG.
Polish Sejm (term 10) votes, MPs, bills, legislative processes and interpellations, with sources.
Polish legal data for AI assistants: full-text search across 2.94M+ court rulings (common courts, Supreme Court, Constitutional Tribunal, KIO, NSA/WSA), statute text and version history from the official ELI register (164k+ acts), rulings citing a provision and citations between rulings, a citation verifier for case numbers, case-outcome and duration statistics, KIS tax interpretations, CJEU rulings applied in Poland, UODO decisions, KRS company lookup, court competence, official bank accounts and legal calculators. Works without an API key (daily limit).
Polish statutes (Dziennik Ustaw, ELI) and court rulings (SAOS) for AI agents. Runs on Apify.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables AI-powered legal research and analysis of Polish legal acts from the Sejm API. Provides comprehensive search, document retrieval, metadata analysis, and content access for legal documents from Dziennik Ustaw and Monitor Polski.1323MIT
- AlicenseNot gradedqualityDmaintenanceProvides programmatic access to official German Bundestag parliamentary data, enabling LLMs to answer questions about legislation, voting records, and members.1MIT
- AlicenseNot gradedqualityCmaintenanceEnables querying UK Parliament data including MPs, Lords, bills, Hansard debates, and divisions.72 npmMIT
- AlicenseAqualityDmaintenanceEnables searching Polish parliamentary prints and retrieving the full legislative process history, including links to final legal acts, via the official Sejm API.3MIT