eu.ansvar/uruguayan-law-mcp
Uruguayan legislation via MCP — full-text search across statutes and provisions
Ask AI about eu.ansvar/uruguayan-law-mcp
Powered by Claude · Grounded in docs
I know everything about eu.ansvar/uruguayan-law-mcp. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
Uruguayan Law MCP Server
The IMPO alternative for the AI age.
Query Uruguayan legislation -- from the Ley 18.331 de Protección de Datos Personales and Código Penal to the Código Civil, Ley de Comercio Electrónico, and more -- directly from Claude, Cursor, or any MCP-compatible client.
Si estás construyendo herramientas legales, herramientas de cumplimiento normativo, o haciendo investigación jurídica uruguaya, esta es tu base de datos de referencia verificada.
Built by Ansvar Systems -- Stockholm, Sweden
Por qué existe esto / Why This Exists
La investigación jurídica uruguaya está dispersa entre IMPO (impo.com.uy), el Diario Oficial, y bases de datos de jurisprudencia. Ya seas:
- Un abogado validando citas en un escrito o contrato
- Un oficial de cumplimiento verificando obligaciones bajo la Ley 18.331 de protección de datos
- Un desarrollador legal tech construyendo herramientas sobre derecho uruguayo
- Un investigador trazando la armonización del MERCOSUR a través de la legislación uruguaya
...no deberías necesitar docenas de pestañas del navegador y referencias cruzadas manuales. Pregunta a Claude. Obtén la disposición exacta. Con contexto.
This MCP server makes Uruguayan law searchable, cross-referenceable, and AI-readable.
Quick Start
Use Remotely (No Install Needed)
Connect directly to the hosted version -- zero dependencies, nothing to install.
Endpoint: https://uruguayan-law-mcp.vercel.app/mcp
| Client | How to Connect |
|---|---|
| Claude.ai | Settings > Connectors > Add Integration > paste URL |
| Claude Code | claude mcp add uruguayan-law --transport http https://uruguayan-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": {
"uruguayan-law": {
"type": "url",
"url": "https://uruguayan-law-mcp.vercel.app/mcp"
}
}
}
GitHub Copilot -- add to VS Code settings.json:
{
"github.copilot.chat.mcp.servers": {
"uruguayan-law": {
"type": "http",
"url": "https://uruguayan-law-mcp.vercel.app/mcp"
}
}
}
Use Locally (npm)
npx @ansvar/uruguayan-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": {
"uruguayan-law": {
"command": "npx",
"args": ["-y", "@ansvar/uruguayan-law-mcp"]
}
}
}
Cursor / VS Code:
{
"mcp.servers": {
"uruguayan-law": {
"command": "npx",
"args": ["-y", "@ansvar/uruguayan-law-mcp"]
}
}
}
Example Queries
Una vez conectado, pregunta de forma natural (consultas en español):
- "¿Qué dice la Ley 18.331 sobre protección de datos personales respecto al consentimiento?"
- "¿Está vigente el Código Penal en su versión actual?"
- "Buscar disposiciones sobre 'responsabilidad civil' en el Código Civil"
- "¿Qué dice la Ley de Comercio Electrónico sobre firma digital?"
- "¿Cuál es la equivalencia entre la Ley 18.331 y el RGPD europeo?"
- "Buscar 'sociedad anónima' en la legislación societaria uruguaya"
- "¿Qué leyes uruguayas implementan estándares equivalentes al GDPR?"
- "Validar la cita 'art. 9 de la Ley 18.331'"
What's Included
| Category | Count | Details |
|---|---|---|
| Statutes | Ingestion in progress | Laws from IMPO (impo.com.uy) and Diario Oficial |
| Provisions | Ingestion in progress | Full-text searchable with FTS5 |
| Language | Spanish | Uruguay's official language |
| Daily Updates | Automated | Freshness checks against IMPO |
Coverage note: The Uruguayan law database is actively being built. The MCP server infrastructure is production-ready. Provision counts will be updated as ingestion completes. The remote endpoint is live and returns available data.
Verified data only -- every citation is validated against official sources (IMPO). Zero LLM-generated content.
See It In Action
Why This Works
Verbatim Source Text (No LLM Processing):
- All statute text is ingested from IMPO (Dirección Nacional de Impresiones y Publicaciones Oficiales)
- Provisions are returned unchanged from SQLite FTS5 database rows
- Zero LLM summarization or paraphrasing -- the database contains statute text, not AI interpretations
Smart Context Management:
- Search returns ranked provisions with BM25 scoring (safe for context)
- Provision retrieval gives exact text by law number and article
- Cross-references help navigate without loading everything at once
Technical Architecture:
IMPO / Diario Oficial --> Parse --> SQLite --> FTS5 snippet() --> MCP response
^ ^
Provision parser Verbatim database query
Traditional Research vs. This MCP
| Traditional Approach | This MCP Server |
|---|---|
| Buscar en IMPO por número de ley | Buscar en español: "protección de datos consentimiento" |
| Navegar artículos manualmente | Obtener la disposición exacta con contexto |
| Referencias cruzadas manuales entre leyes | build_legal_stance agrega de múltiples fuentes |
| "¿Está esta ley vigente?" -- verificar manualmente | check_currency -- respuesta en segundos |
| Buscar equivalencias UE -- revisar documentos del RGPD | get_eu_basis -- instrumentos EU vinculados |
| Sin API, sin integración | Protocolo MCP -- nativo para IA |
Tradicional: Buscar en IMPO --> Descargar PDF --> Ctrl+F --> Buscar en Diario Oficial --> Repetir
This MCP: "¿Cuáles son los requisitos de notificación de brechas de datos bajo la Ley 18.331?" --> Done.
Available Tools (13)
Core Legal Research Tools (8)
| Tool | Description |
|---|---|
search_legislation | FTS5 full-text search across provisions with BM25 ranking |
get_provision | Retrieve specific provision by law number and article |
validate_citation | Validate citation against database (zero-hallucination check) |
build_legal_stance | Aggregate citations from statutes for a legal topic |
format_citation | Format citations per Uruguayan conventions (full/short/pinpoint) |
check_currency | Check if a law is in force, amended, or repealed |
list_sources | List all available statutes with metadata and data provenance |
about | Server info, capabilities, dataset statistics, and coverage summary |
EU/International Law Integration Tools (5)
| Tool | Description |
|---|---|
get_eu_basis | Get EU directives/regulations that Uruguayan laws align with (GDPR adequacy) |
get_uruguayan_implementations | Find Uruguayan laws aligning with a specific EU act |
search_eu_implementations | Search EU documents with Uruguayan alignment counts |
get_provision_eu_basis | Get EU law references for a specific Uruguayan provision |
validate_eu_compliance | Check alignment status of Uruguayan laws against EU standards |
EU Law Integration
Uruguay holds EU adequacy status under GDPR Article 45 -- one of only a handful of non-EU/EEA countries to have received this determination.
| Topic | Status |
|---|---|
| EU Adequacy Decision | Uruguay holds GDPR Article 45 adequacy for personal data transfers from the EU (Commission Decision C(2012)5704, confirmed under GDPR) |
| Ley 18.331 | Uruguay's data protection law aligns with GDPR principles on consent, data subject rights, and cross-border transfers |
| MERCOSUR | Uruguay participates in MERCOSUR data protection harmonization discussions |
The EU bridge tools let you explore the alignment between Uruguayan law (especially Ley 18.331) and EU regulatory requirements, helping with cross-border data transfer compliance and GDPR-equivalent analysis.
Note: EU adequacy means personal data can flow from the EU to Uruguay without additional safeguards under GDPR Article 46. The EU tools help identify where Uruguayan and EU law address the same domains, and where gaps may exist.
Data Sources & Freshness
All content is sourced from authoritative Uruguayan legal databases:
- IMPO -- Dirección Nacional de Impresiones y Publicaciones Oficiales (official consolidated legislation)
- Diario Oficial -- Official Gazette
Data Provenance
| Field | Value |
|---|---|
| Authority | IMPO / Poder Legislativo de Uruguay |
| Retrieval method | IMPO consolidated statute database |
| Language | Spanish |
| License | Open access (official government sources) |
Automated Freshness Checks (Daily)
A daily GitHub Actions workflow monitors IMPO for changes:
| Check | Method |
|---|---|
| Law amendments | Drift detection against known provision anchors |
| New laws | Comparison against IMPO index |
| Repealed laws | Status change detection |
Verified data only -- every citation is validated against official sources. Zero LLM-generated content.
Security
This project uses multiple layers of automated security scanning:
| Scanner | What It Does | Schedule |
|---|---|---|
| CodeQL | Static analysis for security vulnerabilities | Weekly + PRs |
| Semgrep | SAST scanning (OWASP top 10, secrets, TypeScript) | Every push |
| Gitleaks | Secret detection across git history | Every push |
| Trivy | CVE scanning on filesystem and npm dependencies | Daily |
| Docker Security | Container image scanning + SBOM generation | Daily |
| Socket.dev | Supply chain attack detection | PRs |
| OSSF Scorecard | OpenSSF best practices scoring | Weekly |
| Dependabot | Automated dependency updates | Weekly |
See SECURITY.md for the full policy and vulnerability reporting.
Important Disclaimers
Legal Advice
THIS TOOL IS NOT LEGAL ADVICE
Statute text is sourced from IMPO (official Uruguayan legal publications). However:
- This is a research tool, not a substitute for professional legal counsel
- Court case coverage is not included -- do not rely solely on this for case law research
- Verify critical citations against primary sources (IMPO / Diario Oficial) for court filings
- EU adequacy means regulatory alignment, not identical legal text -- verify specific requirements against both sources
Before using professionally, read: DISCLAIMER.md | PRIVACY.md
Client Confidentiality
Queries go through the Claude API. For privileged or confidential matters, use on-premise deployment.
For guidance from your bar association: Colegio de Abogados del Uruguay
Documentation
- EU Integration Guide -- EU adequacy and alignment documentation
- Security Policy -- Vulnerability reporting and scanning details
- Disclaimer -- Legal disclaimers and professional use notices
- Privacy -- Client confidentiality and data handling
Development
Setup
git clone https://github.com/Ansvar-Systems/Uruguayan-law-mcp
cd Uruguayan-law-mcp
npm install
npm run build
npm test
Running Locally
npm run dev # Start MCP server
npx @anthropic/mcp-inspector node dist/index.js # Test with MCP Inspector
Data Management
npm run ingest # Ingest statutes from IMPO
npm run build:db # Rebuild SQLite database
npm run drift:detect # Run drift detection against anchors
npm run check-updates # Check for amendments and new laws
Performance
- Search Speed: <100ms for most FTS5 queries
- Database Size: Optimized SQLite (efficient, portable)
- Reliability: Production-ready ingestion pipeline
Related Projects: Complete Compliance Suite
This server is part of Ansvar's Compliance Suite -- MCP servers that work together for end-to-end compliance coverage:
@ansvar/eu-regulations-mcp
Query 49 EU regulations directly from Claude -- GDPR, AI Act, DORA, NIS2, MiFID II, eIDAS, and more. Full regulatory text with article-level search. npx @ansvar/eu-regulations-mcp
@ansvar/uruguayan-law-mcp (This Project)
Query Uruguayan legislation directly from Claude -- Ley 18.331, Código Civil, Código Penal, and more. Full provision text with EU adequacy cross-references. npx @ansvar/uruguayan-law-mcp
@ansvar/argentinian-law-mcp
Query Argentine legislation -- Código Civil y Comercial, Ley de Protección de Datos Personales, and more.
@ansvar/chilean-law-mcp
Query Chilean legislation -- Ley 19.628, Código Civil, Código Penal, and more. npx @ansvar/chilean-law-mcp
@ansvar/security-controls-mcp
Query 261 security frameworks -- ISO 27001, NIST CSF, SOC 2, CIS Controls, SCF, and more. npx @ansvar/security-controls-mcp
70+ national law MCPs covering Africa, the Americas, Europe, Asia, and more.
Contributing
Contributions welcome! See CONTRIBUTING.md for guidelines.
Priority areas:
- Full statute corpus ingestion from IMPO
- Supreme Court (Suprema Corte de Justicia) case law
- MERCOSUR cross-reference mapping
- Historical statute versions and Diario Oficial amendment tracking
Roadmap
- MCP server infrastructure (production-ready)
- EU/international law alignment tools (GDPR adequacy)
- Vercel Streamable HTTP deployment
- npm package publication
- Full statute corpus ingestion from IMPO
- Court case law (Suprema Corte de Justicia)
- Historical statute versions (amendment tracking)
- MERCOSUR harmonization cross-references
- Expanded GDPR adequacy mapping
Citation
If you use this MCP server in academic research:
@software{uruguayan_law_mcp_2026,
author = {Ansvar Systems AB},
title = {Uruguayan Law MCP Server: AI-Powered Legal Research Tool},
year = {2026},
url = {https://github.com/Ansvar-Systems/Uruguayan-law-mcp},
note = {Uruguayan legislation sourced from IMPO -- EU GDPR adequacy jurisdiction}
}
License
Apache License 2.0. See LICENSE for details.
Data Licenses
- Statutes: IMPO / Poder Legislativo de Uruguay (public access)
- EU Metadata: EUR-Lex (EU public domain)
About Ansvar Systems
We build AI-accelerated compliance and legal research tools for the global market. This MCP server brings Uruguay's official legislation into any AI client -- no browser tabs, no PDFs, no manual cross-referencing.
ansvar.eu -- Stockholm, Sweden
Built with care in Stockholm, Sweden
