up-law-argleg-mcp
This server provides access to a comprehensive Argentine legal corpus — national legislation, Supreme Court (CSJN) jurisprudence, and international treaties — enabling verifiable legal research with full provenance tracking.
Legislation (Normas)
buscar_normas— Search laws, decrees, and other norms by free text, type, issuing body, and date rangeobtener_norma— Retrieve full metadata, captured texts, article index, modification history, and InfoLEG observationsleer_articulos— Read literal text of specific articles (individual, range, or list) with per-article provenance; supports current vs. original versionsmodificaciones— Explore a norm's modification graph (incoming, outgoing, or both)buscar_articulos— Hybrid semantic + full-text search across ~1.2 million articles to find which norm regulates a given topic
Supreme Court Jurisprudence (CSJN)
buscar_fallos— Hybrid search over case summaries and full ruling texts, filterable by thematic descriptors and year rangeobtener_fallo— Retrieve a full case profile: caption, date, volume/page, summaries, topics, holdings, and PDF provenanceleer_fallo— Read the full literal text of a ruling, paginated, with citation verification support
International Treaties (Cancillería)
buscar_tratados— Search bilateral/multilateral treaties by free text, subject, counterpart, signing dates, status, or constitutional hierarchy (CN art. 75 inc. 22)obtener_tratado— Retrieve a treaty's full lifecycle (signing, ratification, entry into force, denunciation), parties, hierarchy status, and linked approval normsleer_tratado— Read the full literal text of a treaty from official sources, paginated with sha256 + URL provenance
Verification & System Status
verificar_cita— Verify that any quoted text exists literally in the corpus; returns VERIFIED (with location and source), NOT FOUND, or NOT FOUND WITH SIMILAR (showing a diff against the closest real passage); supports strict and tolerant modesestado_corpus— Check corpus freshness and coverage: last ingestion timestamps, document counts, and embedding coverage
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@up-law-argleg-mcpbuscar la Ley 27.078 de Tecnologías de la Información"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
up-law-argleg-mcp
Servidor MCP que expone el corpus legal de la base up_law_argleg_db (legislacion
nacional argentina + jurisprudencia CSJN + tratados internacionales de
Cancilleria) a Claude, con proveniencia
verificable en cada respuesta: el abogado puede rastrear cada texto al
documento oficial capturado (sha256 + fecha + URL de InfoLEG) y auditar
cualquier cita textual con el tool verificar_cita.
Requisitos
Docker Desktop (Postgres 16 + pgvector via docker compose del proyecto infoleg)
Python >= 3.12 y uv
La base
up_law_argleg_dbcargada (ver proyecto hermano../infoleg)
Related MCP server: bora-mcp
Instalacion (macOS / Windows)
# 1. base con pgvector (en el proyecto infoleg)
cd ../infoleg && docker compose up -d
# 2. dependencias
cd ../mcp-v2 && uv sync
# 3. schema mcp + roles (idempotente)
uv run up-law-argleg-mcp setup-db
# 4. embeddings (primera vez: 2-4 h; incrementales: minutos)
uv run up-law-argleg-mcp index
# 5. smoke
uv run up-law-argleg-mcp statusClaude Desktop
Agregar a claude_desktop_config.json
(macOS: ~/Library/Application Support/Claude/,
Windows: %APPDATA%\Claude\):
{
"mcpServers": {
"up_law_argleg": {
"command": "uv",
"args": ["run", "--directory", "/RUTA/ABSOLUTA/a/mcp-v2", "up-law-argleg-mcp", "serve"]
}
}
}En Windows la ruta usa barras invertidas escapadas: C:\\Users\\...\\mcp-v2.
Servidor HTTP (clientes remotos)
Ademas del modo stdio, el servidor puede exponerse por Streamable HTTP
(el transporte que aceptan los conectores remotos de claude.ai y el parametro
mcp_servers de la API):
uv run up-law-argleg-mcp serve-http # 127.0.0.1:8000
uv run up-law-argleg-mcp serve-http --host 0.0.0.0 --port 9000El endpoint MCP queda en http://HOST:PORT/mcp, en modo stateless (apto para
escalar horizontalmente). Configuracion via .env:
HTTP_HOST,HTTP_PORT: interfaz y puerto de escucha.HTTP_ALLOWED_HOSTS: lista JSON de dominios publicos aceptados en el headerHostal desplegar detras de un proxy (p.ej.'["mcp.ejemplo.ar"]'); vacia = solo localhost, proteccion DNS-rebinding default del SDK.HTTP_RATE_RPM,HTTP_RATE_BURST: rate limit por IP (token bucket, default 120 rpm / burst 20;HTTP_RATE_RPM=0lo desactiva). Al exceder responde 429 conRetry-After.DB_POOL_MAX: conexiones simultaneas maximas del pool de lectura (default 10).
Las consultas a la base van por un pool de conexiones (psycopg_pool), asi que
multiples clientes concurrentes se atienden en paralelo.
Operacion
Tras cada sync mensual del ETL infoleg:
uv run up-law-argleg-mcp index.uv run up-law-argleg-mcp statusmuestra frescura y cobertura.Tests:
uv run pytest(unit) |uv run pytest -m live(requiere base) |uv run pytest -m model(carga el modelo de embeddings).
Garantia de fidelidad
El servidor se conecta con un rol de solo lectura (
mcp_reader).Los tools devuelven texto verbatim; el servidor jamas resume.
Cada texto viaja con bloque
fuente(sha256 del documento oficial, fecha de captura, URL, offsets).verificar_citaconfirma si una cita existe literalmente en el corpus, y detecta citas casi-correctas mostrando el diff contra el texto real.La base no determina vigencia: expone el grafo de modificaciones y las observaciones de InfoLEG; el analisis juridico es del profesional.
Créditos
Proyecto de la Facultad de Derecho de la Universidad de Palermo — Palermo E-Law / Innovation Hub.
Equipo: Hernán Quadri, Juan Cruz Romano, Aníbal Ramírez y Guido Barosio.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceRemote MCP server that provides access to over 285K Argentine court rulings and user's own case files via Streamable HTTP transport.
- AlicenseAqualityCmaintenanceMCP server for searching and extracting official announcements, decrees, and resolutions from the Argentine Official Gazette (Boletín Oficial de la República Argentina). It enables LLMs to perform real-time searches and retrieve verbatim legal text with complete juridical fidelity.14193MIT
- AlicenseNot gradedqualityDmaintenanceA specialized MCP server for Argentine legal professionals, enabling legal research, document processing, case analysis, and practice management through integration with official Argentine legal databases.8MIT
- FlicenseNot gradedqualityCmaintenanceMCP server that enables searching and retrieving judicial decisions from the Uruguayan National Public Jurisprudence Database (BJN).
Related MCP Connectors
Resolve, search and verify legal citations against the official sources, with provenance.
MCP for CanLII: Canadian case law and legislation metadata (federal, provincial, territorial).
MCP server for Brazilian Federal Senate open data (legislative, administrative, e-Cidadania).
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/UPDerechoIA/up-law-argleg-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server