{
  "markdown": "# Romanian Law MCP Server\n\n<!-- ANSVAR-CTA-BEGIN -->\n> **The Romanian law corpus is now served through the Ansvar Gateway.** Connect your AI assistant (Claude, Copilot, Cursor, custom MCP client) to `https://gateway.ansvar.eu/mcp` — one OAuth connection, free tier available, covering this corpus plus EU regulations, national law across 28 audited jurisdictions, and CVE/security intelligence, every result with a verbatim source citation. Start at https://ansvar.eu/docs/quickstart\n\n### Connect\n\n**Claude Code** (one line):\n\n```bash\nclaude mcp add ansvar --transport http https://gateway.ansvar.eu/mcp\n```\n\n**Claude Desktop / Cursor** — add to `claude_desktop_config.json` (or `mcp.json`):\n\n```json\n{\n  \"mcpServers\": {\n    \"ansvar\": {\n      \"type\": \"url\",\n      \"url\": \"https://gateway.ansvar.eu/mcp\"\n    }\n  }\n}\n```\n\n**Claude.ai** — Settings → Connectors → Add custom connector → paste `https://gateway.ansvar.eu/mcp`\n\nFirst request opens an OAuth signup flow (setup details: [ansvar.eu/docs/quickstart](https://ansvar.eu/docs/quickstart)). After signup, your client is bound to your account; tier (free / premium / team / company) determines fan-out, quota, and which downstream MCPs are reachable.\n\n---\n\n## Self-host this MCP\n\nYou can also clone this repo and build the corpus yourself. The schema,\nfetcher, and tool implementations all live here. What is not in the repo is\nthe pre-built database — TDM and standards-licensing constraints on the\nupstream sources mean we host the corpus on Ansvar infrastructure rather\nthan redistribute it as a public artifact.\n\nBuild your own: run this repo's ingestion script (entry-point varies per\nrepo — typically `scripts/ingest.sh`, `npm run ingest`, or `make ingest`;\ncheck the repo root).\n<!-- ANSVAR-CTA-END -->\n\n\n**The Monitorul Oficial alternative for the AI age.**\n\n[![MCP Registry](https://img.shields.io/badge/MCP-Registry-blue)](https://registry.modelcontextprotocol.io)\n[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n[![GitHub stars](https://img.shields.io/github/stars/Ansvar-Systems/Romanian-law-mcp?style=social)](https://github.com/Ansvar-Systems/Romanian-law-mcp)\n[![CI](https://github.com/Ansvar-Systems/Romanian-law-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/Ansvar-Systems/Romanian-law-mcp/actions/workflows/ci.yml)\n[![Daily Data Check](https://github.com/Ansvar-Systems/Romanian-law-mcp/actions/workflows/check-updates.yml/badge.svg)](https://github.com/Ansvar-Systems/Romanian-law-mcp/actions/workflows/check-updates.yml)\n[![Database](https://img.shields.io/badge/database-pre--built-green)](docs/EU_INTEGRATION_GUIDE.md)\n[![Provisions](https://img.shields.io/badge/provisions-112%2C257-blue)](docs/EU_INTEGRATION_GUIDE.md)\n\nQuery **12,001 Romanian statutes** -- from the Legea privind protecția datelor and Codul Penal to the Codul Civil, Codul Muncii, and more -- directly from Claude, Cursor, or any MCP-compatible client.\n\nIf you're building legal tech, compliance tools, or doing Romanian legal research, this is your verified reference database.\n\nBuilt by [Ansvar Systems](https://ansvar.eu) -- Stockholm, Sweden\n\n---\n\n## Why This Exists\n\nRomanian legal research means navigating legislatie.just.ro, monitoruloficial.ro, and EUR-Lex for EU implementation status -- across one of the largest national legislation corpora in Central and Eastern Europe. Whether you're:\n\n- A **lawyer** validating citations before the Înalta Curte de Casație și Justiție (ICCJ) or Curtea Constituțională\n- A **compliance officer** checking GDPR implementation under Legea 190/2018 or NIS2 requirements\n- A **legal tech developer** building tools on Romanian law\n- A **researcher** tracing EU directive transposition across 12,001 statutes\n\n...you shouldn't need dozens of browser tabs and manual cross-referencing. Ask Claude. Get the exact provision. With context.\n\nThis MCP server makes Romanian law **searchable, cross-referenceable, and AI-readable**.\n\n---\n\n## Example Queries\n\nOnce connected, just ask naturally:\n\n- *\"Ce prevede Legea 190/2018 privind protecția datelor cu caracter personal despre consimțământ?\"*\n- *\"Este Codul Penal în vigoare?\"*\n- *\"Caută 'protecția datelor cu caracter personal' în legislația română\"*\n- *\"Ce directive EU stau la baza Codului Muncii?\"*\n- *\"Care legi române implementează Directiva NIS2?\"*\n- *\"Ce prevede art. 325 din Codul Penal despre delapidare?\"*\n- *\"Caută cerințe de notificare a incidentelor de securitate în legislația română\"*\n- *\"Validează citatul 'art. 5, Legea 190/2018'\"*\n- *\"Compară cerințele de protecție a datelor prin implementările NIS2 în dreptul român\"*\n\n---\n\n## What's Included\n\n| Category | Count | Details |\n|----------|-------|---------|\n| **Statutes** | 12,001 statutes | Comprehensive Romanian legislation from legislatie.just.ro |\n| **Provisions** | 112,257 articles | Full-text searchable with FTS5 |\n| **Database Size** | 258 MB | Optimized SQLite, portable |\n| **Daily Updates** | Automated | Freshness checks against official sources |\n\n**Verified data only** -- every citation is validated against official sources (legislatie.just.ro, Monitorul Oficial). Zero LLM-generated content.\n\nRomanian is one of the largest corpora in the fleet: 12,001 statutes reflecting Romania's comprehensive civil law tradition and full EU acquis transposition.\n\n---\n\n## See It In Action\n\n### Why This Works\n\n**Verbatim Source Text (No LLM Processing):**\n- All statute text is ingested from legislatie.just.ro (Ministry of Justice portal) and Monitorul Oficial\n- Provisions are returned **unchanged** from SQLite FTS5 database rows\n- Zero LLM summarization or paraphrasing -- the database contains statute text, not AI interpretations\n\n**Smart Context Management:**\n- Search returns ranked provisions with BM25 scoring (safe for context)\n- Provision retrieval gives exact text by statute identifier + article number\n- Cross-references help navigate without loading everything at once\n\n**Technical Architecture:**\n```\nlegislatie.just.ro / monitoruloficial.ro --> Parse --> SQLite --> FTS5 snippet() --> MCP response\n                                              ^                        ^\n                                       Provision parser         Verbatim database query\n```\n\n### Traditional Research vs. This MCP\n\n| Traditional Approach | This MCP Server |\n|---------------------|-----------------|\n| Search legislatie.just.ro by statute name | Search by plain Romanian: *\"protecția datelor consimțământ\"* |\n| Navigate multi-article codes manually | Get the exact provision with context |\n| Manual cross-referencing between laws | `build_legal_stance` aggregates across sources |\n| \"Este această lege în vigoare?\" -- check manually | `check_currency` tool -- answer in seconds |\n| Find EU basis -- dig through EUR-Lex | `get_eu_basis` -- linked EU directives instantly |\n| No API, no integration | MCP protocol -- AI-native |\n\n**Traditional:** Caută pe legislatie.just.ro --> Navighează coduri multi-articol --> Ctrl+F --> Compară cu directive UE --> Repetă\n\n**This MCP:** *\"Ce act UE stă la baza art. 5 din Legea 190/2018 privind consimțământul?\"* --> Done.\n\n---\n\n## Available Tools (13)\n\n### Core Legal Research Tools (8)\n\n| Tool | Description |\n|------|-------------|\n| `search_legislation` | FTS5 full-text search across 112,257 provisions with BM25 ranking. Supports Romanian, quoted phrases, boolean operators, prefix wildcards |\n| `get_provision` | Retrieve specific provision by statute identifier + article (e.g., \"Legea 190/2018\" + \"5\") |\n| `check_currency` | Check if a statute is in force, amended, or repealed |\n| `validate_citation` | Validate citation against database -- zero-hallucination check |\n| `build_legal_stance` | Aggregate citations from multiple statutes for a legal topic |\n| `format_citation` | Format citations per Romanian conventions (full/short/pinpoint) |\n| `list_sources` | List all available statutes with metadata, coverage scope, and data provenance |\n| `about` | Server info, capabilities, dataset statistics, and coverage summary |\n\n### EU Law Integration Tools (5)\n\n| Tool | Description |\n|------|-------------|\n| `get_eu_basis` | Get EU directives/regulations for a Romanian statute |\n| `get_romanian_implementations` | Find Romanian laws implementing a specific EU act |\n| `search_eu_implementations` | Search EU documents with Romanian implementation counts |\n| `get_provision_eu_basis` | Get EU law references for a specific provision |\n| `validate_eu_compliance` | Check implementation status (future, requires EU MCP) |\n\n---\n\n## EU Law Integration\n\nRomania joined the EU on 1 January 2007. All EU regulations apply directly; directives require transposition into Romanian law.\n\n| Metric | Value |\n|--------|-------|\n| **EU Membership** | Since 1 January 2007 |\n| **Acquis communautaire** | Full EU legal order applies |\n| **GDPR** | Implemented via Legea 190/2018 |\n| **NIS2** | Transposed via Legea 362/2023 privind securitatea rețelelor și sistemelor informatice |\n| **AML5** | Implemented via Legea 129/2019 privind prevenirea și combaterea spălării banilor |\n| **EUR-Lex Integration** | Cross-references link Romanian statutes to source EU acts |\n\n### Key EU-Derived Romanian Legislation\n\n1. **Legea 190/2018** -- GDPR implementation (Regulation 2016/679)\n2. **Legea 362/2023** -- NIS2 transposition (Directive 2022/2555)\n3. **Legea 297/2004** (updated via MiFID II legislation) -- Capital markets\n4. **Legea 129/2019** -- AML directive transposition\n5. **Legea 506/2004** -- ePrivacy Directive transposition\n\nSee [EU_INTEGRATION_GUIDE.md](docs/EU_INTEGRATION_GUIDE.md) for detailed documentation and [EU_USAGE_EXAMPLES.md](docs/EU_USAGE_EXAMPLES.md) for practical examples.\n\n---\n\n## Data Sources & Freshness\n\nAll content is sourced from authoritative Romanian legal databases:\n\n- **[legislatie.just.ro](https://legislatie.just.ro/)** -- Ministry of Justice consolidated legislation portal\n- **[Monitorul Oficial](https://www.monitoruloficial.ro/)** -- Official Gazette of Romania\n- **[EUR-Lex](https://eur-lex.europa.eu/)** -- Official EU law database (cross-reference metadata)\n\n### Data Provenance\n\n| Field | Value |\n|-------|-------|\n| **Authority** | Ministry of Justice of Romania |\n| **Languages** | Romanian (sole official legislative language) |\n| **Coverage** | All national Romanian legislation; EU regulations apply directly |\n| **Source** | legislatie.just.ro |\n\n### Automated Freshness Checks (Daily)\n\nA [daily GitHub Actions workflow](.github/workflows/check-updates.yml) monitors official sources for changes:\n\n| Check | Method |\n|-------|--------|\n| **Statute amendments** | Drift detection against known provision anchors |\n| **New statutes** | Comparison against legislatie.just.ro index |\n| **Repealed statutes** | Status change detection |\n| **EU reference staleness** | Flagged if >90 days old |\n\n**Verified data only** -- every citation is validated against official sources. Zero LLM-generated content.\n\n---\n\n## Security\n\nThis project uses multiple layers of automated security scanning:\n\n| Scanner | What It Does | Schedule |\n|---------|-------------|----------|\n| **CodeQL** | Static analysis for security vulnerabilities | Weekly + PRs |\n| **Semgrep** | SAST scanning (OWASP top 10, secrets, TypeScript) | Every push |\n| **Gitleaks** | Secret detection across git history | Every push |\n| **Trivy** | CVE scanning on filesystem and npm dependencies | Daily |\n| **Socket.dev** | Supply chain attack detection | PRs |\n| **Dependabot** | Automated dependency updates | Weekly |\n\nSee [SECURITY.md](SECURITY.md) for the full policy and vulnerability reporting.\n\n---\n\n## Important Disclaimers\n\n### Legal Advice\n\n> **THIS TOOL IS NOT LEGAL ADVICE**\n>\n> Statute text is sourced from legislatie.just.ro (Ministry of Justice portal). However:\n> - This is a **research tool**, not a substitute for professional legal counsel\n> - **Court case coverage is not included** -- do not rely solely on this for case law research; consult the ICCJ database and Curtea Constituțională directly\n> - **Verify critical citations** against primary sources for court filings\n> - **EU cross-references** are derived from statute text, not EUR-Lex full text analysis\n> - **Consolidated versions** on legislatie.just.ro may differ from Monitorul Oficial originals -- verify against the official gazette for legal proceedings\n\n**Before using professionally, read:** [DISCLAIMER.md](DISCLAIMER.md) | [PRIVACY.md](PRIVACY.md)\n\n### Client Confidentiality\n\nQueries go through the Claude API. For privileged or confidential matters, use on-premise deployment. Consult Uniunea Națională a Barourilor din România (UNBR) guidelines on the use of AI tools in legal practice.\n\n---\n\n## Development\n\n### Setup\n\n```bash\ngit clone https://github.com/Ansvar-Systems/Romanian-law-mcp\ncd Romanian-law-mcp\nnpm install\nnpm run build\nnpm test\n```\n\n### Running Locally\n\n```bash\nnpm run dev                                       # Start MCP server\nnpx @anthropic/mcp-inspector node dist/index.js   # Test with MCP Inspector\n```\n\n### Data Management\n\n```bash\nnpm run ingest                    # Ingest statutes from legislatie.just.ro\nnpm run ingest:full-laws          # Full law ingestion pipeline\nnpm run ingest:indexed-laws       # Ingest from index\nnpm run pipeline:full-corpus      # Run full corpus pipeline\nnpm run build:db                  # Rebuild SQLite database\nnpm run drift:detect              # Run drift detection against anchors\nnpm run check-updates             # Check for amendments\n```\n\n### Performance\n\n- **Search Speed:** <100ms for most FTS5 queries\n- **Database Size:** 258 MB (optimized, portable)\n- **Reliability:** 100% ingestion success rate across 12,001 statutes\n\n---\n\n## More Ansvar MCPs\n\nFull fleet coverage at [ansvar.eu/coverage](https://ansvar.eu/coverage).\n## Contributing\n\nContributions welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.\n\nPriority areas:\n- Court case law expansion (ICCJ, Curtea Constituțională decisions)\n- EU cross-reference expansion (full directive-to-statute mapping)\n- Historical statute versions and amendment tracking\n- Lower court decisions (Curte de Apel, Tribunal archives)\n\n---\n\n## Roadmap\n\n- [x] Core statute database with FTS5 search\n- [x] Full corpus ingestion (12,001 statutes, 112,257 provisions)\n- [x] EU law integration tools\n- [x] Vercel Streamable HTTP deployment\n\n- [ ] Court case law expansion (ICCJ, Curtea Constituțională)\n- [ ] Lower court coverage (Curte de Apel archives)\n- [ ] Historical statute versions (amendment tracking)\n- [ ] Web API for programmatic access\n\n---\n\n## Citation\n\nIf you use this MCP server in academic research:\n\n```bibtex\n@software{romanian_law_mcp_2026,\n  author = {Ansvar Systems AB},\n  title = {Romanian Law MCP Server: AI-Powered Legal Research Tool},\n  year = {2026},\n  url = {https://github.com/Ansvar-Systems/Romanian-law-mcp},\n  note = {12,001 Romanian statutes with 112,257 provisions and EU law cross-references}\n}\n```\n\n---\n\n## License\n\nApache License 2.0. See [LICENSE](./LICENSE) for details.\n\n### Data Licenses\n\nAnsvar attribution code: **`Romanian-Legea-8-1996-Art-9`**. Basis: Legea\nnr. 8/1996 privind dreptul de autor și drepturile conexe, Art. 9(b) —\nbroad statutory-PD carve-out.\n\n- **Statutes & Legislation:** Ministry of Justice of Romania via Portal\n  Legislativ (`legislatie.just.ro`). Reused under Legea 8/1996 Art. 9(b).\n- **EU Metadata:** EUR-Lex (EU public-domain notice).\n\n### Coverage scope (broad)\n\nLegea 8/1996 Art. 9(b) is broad — it covers political, legislative,\nadministrative, and judicial texts (`textele oficiale de natură\npolitică, legislativă, administrativă, judiciară`) plus their official\ntranslations.\n\nSee `docs/audits/2026-05-17-eu-copyright-statutory-works-batch-2-HU-LU-PT-RO-GR.md`\nin the Ansvar architecture-documentation repo for the verbatim Art. 9(b)\ntext and the coverage analysis.\n\n---\n\n## About Ansvar Systems\n\nWe build AI-accelerated compliance and legal research tools for the European market. This MCP server started as our internal reference tool for Romanian law -- turns out everyone building for the CEE and EU markets has the same research frustrations.\n\nSo we're open-sourcing it. Navigating 12,001 statutes and their EU source directives shouldn't require a law degree.\n\n**[ansvar.eu](https://ansvar.eu)** -- Stockholm, Sweden\n\n---\n\n<p align=\"center\">\n  <sub>Built with care in Stockholm, Sweden</sub>\n</p>\n",
  "bytes": 16413,
  "sha": "517aeade066a3682063c65b42e66282fcf88ef6bf7cde66fd8d239f37f0a53c6",
  "repo_slug": "ansvar-systems/romanian-law-mcp",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_eu_ansvar_romanian_law_mcp_3ba3ef0e/readme"
}