
Security News
Ruby's Bundler 4.0.18 Extends Cooldown to bundle lock and bundle cache
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.
@ansvar/polish-law-mcp
Advanced tools
Complete Polish law database — 8,943 Acts (Ustawy), 161,705 provisions from the Sejm ELI API covering all parliamentary legislation published in Dziennik Ustaw (1918-2026) with Polish full-text search and EU cross-references
The Sejm alternative for the AI age.
Query 8,943 Polish laws -- from the RODO implementing provisions and Kodeks karny to the KSC, Kodeks spolek handlowych, and more -- directly from Claude, Cursor, or any MCP-compatible client.
If you're building legal tech, compliance tools, or doing Polish legal research, this is your verified reference database.
Built by Ansvar Systems -- Stockholm, Sweden
Polish legal research is scattered across ISAP (Internetowy System Aktow Prawnych), the Dziennik Ustaw, and commercial platforms. Whether you're:
...you shouldn't need dozens of browser tabs and manual PDF cross-referencing. Ask Claude. Get the exact provision. With context.
This MCP server makes Polish law searchable, cross-referenceable, and AI-readable.
Once connected, just ask naturally:
MEDIUM -- dual tier, free database bundled in npm package.
| Tier | Platform | Database | Content |
|---|---|---|---|
| Free | Vercel (Hobby) / npm (stdio) | Core legislation (~100-180 MB) | Key laws (DPA 2018, KSC, Kodeks karny cybercrime, KSH, e-Services Act, Telecommunications Law), FTS search, EU cross-references |
| Professional | Azure Container Apps / Docker / Local | Full database (~500 MB - 900 MB) | + All ustawy and rozporzadzenia, UODO decisions and guidance, Supreme Court/Constitutional Tribunal summaries, NIS2 transposition materials |
The full database is larger due to the comprehensive scope of Polish legislation and supplementary regulatory materials. The free tier contains all key data protection, cybersecurity, cybercrime, commercial, and e-services legislation from ISAP.
| Source | Authority | Method | Update Frequency | License | Coverage |
|---|---|---|---|---|---|
| ISAP | Kancelaria Sejmu RP (Chancellery of the Sejm) | HTML Scrape / API | Weekly | Government Open Data (public domain per Art. 4 Copyright Act) | All Polish legislation published in Dziennik Ustaw and Monitor Polski |
Full provenance metadata:
sources.yml
Connect directly to the hosted version -- zero dependencies, nothing to install.
Endpoint: https://polish-law-mcp.vercel.app/mcp
| Client | How to Connect |
|---|---|
| Claude.ai | Settings > Connectors > Add Integration > paste URL |
| Claude Code | claude mcp add polish-law --transport http https://polish-law-mcp.vercel.app/mcp |
| Claude Desktop | Add to config (see below) |
| GitHub Copilot | Add to VS Code settings (see below) |
Claude Desktop -- add to claude_desktop_config.json:
{
"mcpServers": {
"polish-law": {
"type": "url",
"url": "https://polish-law-mcp.vercel.app/mcp"
}
}
}
GitHub Copilot -- add to VS Code settings.json:
{
"github.copilot.chat.mcp.servers": {
"polish-law": {
"type": "http",
"url": "https://polish-law-mcp.vercel.app/mcp"
}
}
}
npx @ansvar/polish-law-mcp
Claude Desktop -- add to claude_desktop_config.json:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"polish-law": {
"command": "npx",
"args": ["-y", "@ansvar/polish-law-mcp"]
}
}
}
Cursor / VS Code:
{
"mcp.servers": {
"polish-law": {
"command": "npx",
"args": ["-y", "@ansvar/polish-law-mcp"]
}
}
}
| Tool | Description | Free Tier | Professional |
|---|---|---|---|
get_provision | Retrieve a specific article from a Polish law or code | Yes | Yes |
search_legislation | Full-text search across all Polish legislation (Polish) | Yes | Yes |
list_laws | List all available laws with metadata | Yes | Yes |
get_law_structure | Get table of contents / structure of a law or code | Yes | Yes |
get_provision_eu_basis | Cross-reference Polish law to EU directives/regulations | Yes | Yes |
search_rozporzadzenia | Search rozporzadzenia (regulations) and executive instruments | No (upgrade) | Yes |
get_uodo_guidance | Retrieve UODO decisions and guidance | No (upgrade) | Yes |
| Law | Identifier | Domain | Key Topics |
|---|---|---|---|
| DPA 2018 | Ustawa o ochronie danych osobowych (Dz.U. 2018 poz. 1000) | Data Protection | GDPR/RODO implementing provisions, UODO structure and powers, administrative procedures, certification |
| KSC | Ustawa o krajowym systemie cyberbezpieczenstwa (Dz.U. 2018 poz. 1560) | Cybersecurity | National cybersecurity system, CSIRT teams, incident reporting, essential services operators, NIS implementation |
| Kodeks karny (cybercrime) | Art. 267-269b | Cybercrime | Unauthorized access (267), data destruction (268), system sabotage (268a), critical system sabotage (269), hacking tools (269b) |
| KSH | Kodeks spolek handlowych (Dz.U. 2000 nr 94 poz. 1037) | Company Law | Sp. z o.o. and S.A. companies, partnerships, corporate governance, shareholders' rights |
| e-Services Act | Ustawa o swiadczeniu uslug droga elektroniczna (Dz.U. 2002 nr 144 poz. 1204) | e-Commerce | Electronic service providers, hosting liability, commercial communications, consumer information |
| Telecommunications Law | Prawo telekomunikacyjne (Dz.U. 2004 nr 171 poz. 1800) | Telecommunications | Telecom regulation, UKE authority, licensing, data retention, lawful interception |
| Component | Free Tier | Full (Professional) |
|---|---|---|
| Core codes and key laws | ~70-130 MB | ~70-130 MB |
| All ustawy and rozporzadzenia | -- | ~300-500 MB |
| UODO decisions and guidance | -- | ~50-100 MB |
| Case law summaries | -- | ~70-150 MB |
| Cross-references and metadata | ~5 MB | ~15 MB |
| Total | ~100-180 MB | ~500 MB - 900 MB |
Delivery strategy: Free-tier DB bundled in npm package (Strategy A -- fits within Vercel 250 MB function limit). If final size exceeds 250 MB after ingestion, switch to Strategy B (runtime download from GitHub Releases).
# Clone the repository
git clone https://github.com/Ansvar-Systems/polish-law-mcp.git
cd polish-law-mcp
# Install dependencies
npm install
# Build
npm run build
# Run tests
npm test
# Run contract tests
npm run test:contract
# Build database (requires raw data in data/ directory)
npm run build:db
# Build free-tier database
npm run build:db:free
# Run drift detection
npm run drift:detect
# Full validation
npm run validate
polish-law-mcp/
├── .github/
│ ├── workflows/
│ │ ├── ci.yml # Test + lint + security scan
│ │ ├── publish.yml # npm publish on version tags
│ │ ├── check-source-updates.yml # Data freshness monitoring
│ │ └── drift-detect.yml # Upstream drift detection
│ ├── SECURITY.md
│ ├── SECURITY-SETUP.md
│ └── ISSUE_TEMPLATE/
│ └── data-error.md
├── data/
│ └── .gitkeep
├── fixtures/
│ ├── golden-tests.json # 12 contract tests
│ ├── golden-hashes.json # 6 drift detection anchors
│ └── README.md
├── scripts/
│ ├── build-db.ts
│ ├── build-db-free.ts
│ ├── download-free-db.sh
│ ├── ingest.ts
│ ├── drift-detect.ts
│ └── check-source-updates.ts
├── src/
│ ├── server.ts
│ ├── db.ts
│ └── tools/
│ ├── get-provision.ts
│ ├── search-legislation.ts
│ ├── list-laws.ts
│ ├── get-law-structure.ts
│ ├── get-provision-eu-basis.ts
│ ├── search-rozporzadzenia.ts
│ └── get-uodo-guidance.ts
├── __tests__/
│ ├── unit/
│ ├── contract/
│ │ └── golden.test.ts
│ └── integration/
├── sources.yml
├── server.json
├── package.json
├── tsconfig.json
├── vercel.json
├── CHANGELOG.md
├── LICENSE
└── README.md
RODO (GDPR) and the DPA 2018 have distinctive Polish implementation features:
KSC (National Cybersecurity System) is comprehensive:
Kodeks karny cybercrime provisions (Arts. 267-269b) cover:
Poland is the largest economy in Central and Eastern Europe and a key market for EU-wide compliance programs.
Report vulnerabilities to security@ansvar.eu (48-hour acknowledgment SLA).
See SECURITY.md for full disclosure policy.
Maintained by: Ansvar Systems Engineering Contact: hello@ansvar.eu
FAQs
Complete Polish law database — 8,943 Acts (Ustawy), 161,705 provisions from the Sejm ELI API covering all parliamentary legislation published in Dziennik Ustaw (1918-2026) with Polish full-text search and EU cross-references
We found that @ansvar/polish-law-mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.