MCP Marketplace
BrowseHow It WorksFor CreatorsDocs
Sign inSign up
MCP Marketplace

The curated, security-first marketplace for AI tools.

Product

Browse ToolsSubmit a ToolDocumentationHow It WorksBlogFAQChangelog

Legal

Terms of ServicePrivacy PolicyCommunity Guidelines

Connect

support@mcp-marketplace.ioTwitter / XDiscord

MCP Marketplace © 2026. All rights reserved.

Back to Browse

Mexican Law MCP Server

M
by Mortalus
Developer ToolsLow Risk9.3Local
Free

Mexican legislation via MCP — full-text search across statutes and provisions

About

Mexican legislation via MCP — full-text search across statutes and provisions

Security Report

9.3
Low Risk9.3Low Risk

Valid MCP server (2 strong, 2 medium validity signals). 1 known CVE in dependencies (0 critical, 1 high severity) Package registry verified. Imported from the Official MCP Registry. Trust signals: trusted author (138/139 approved).

4 files analyzed · 2 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

file_system

Check that this permission is expected for this type of plugin.

env_vars

Check that this permission is expected for this type of plugin.

database

Check that this permission is expected for this type of plugin.

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "eu-ansvar-mexican-law-mcp": {
      "args": [
        "-y",
        "@ansvar/mexican-law-mcp"
      ],
      "command": "npx"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

Mexican Law MCP Server

The DOF (Diario Oficial de la Federación) alternative for the AI age.

npm version MCP Registry License GitHub stars CI Database Provisions

Consulte 317 leyes federales mexicanas -- desde la LFPDPPP (Ley Federal de Protección de Datos Personales en Posesión de los Particulares) y el Código Penal Federal hasta el Código Civil Federal, la Ley Federal del Trabajo, y más -- directamente desde Claude, Cursor o cualquier cliente compatible con MCP.

If you're building legal tech, compliance tools, or doing Mexican legal research, this is your verified reference database.

Built by Ansvar Systems -- Stockholm, Sweden


Por qué existe esto

La investigación jurídica federal mexicana está dispersa entre dof.gob.mx, diputados.gob.mx, ordenjuridico.gob.mx, y las publicaciones de la Cámara de Diputados. Ya sea que usted sea:

  • Un abogado validando citas en un escrito o contrato
  • Un oficial de cumplimiento verificando las obligaciones de la LFPDPPP o regulaciones del INAI
  • Un desarrollador legaltech construyendo herramientas sobre el derecho mexicano
  • Un investigador rastreando legislación federal a través de 317 leyes

...no debería necesitar docenas de pestañas en el navegador y búsqueda manual de PDFs. Pregúntele a Claude. Obtenga la disposición exacta. Con contexto.

Este servidor MCP hace que el derecho mexicano sea consultable, referenciable y legible por IA.


Quick Start

Use Remotely (No Install Needed)

Connect directly to the hosted version -- zero dependencies, nothing to install.

Endpoint: https://mcp.ansvar.eu/law-mx/mcp

ClientHow to Connect
Claude.aiSettings > Connectors > Add Integration > paste URL
Claude Codeclaude mcp add mexican-law --transport http https://mcp.ansvar.eu/law-mx/mcp
Claude DesktopAdd to config (see below)
GitHub CopilotAdd to VS Code settings (see below)

Claude Desktop -- add to claude_desktop_config.json:

{
  "mcpServers": {
    "mexican-law": {
      "type": "url",
      "url": "https://mcp.ansvar.eu/law-mx/mcp"
    }
  }
}

GitHub Copilot -- add to VS Code settings.json:

{
  "github.copilot.chat.mcp.servers": {
    "mexican-law": {
      "type": "http",
      "url": "https://mcp.ansvar.eu/law-mx/mcp"
    }
  }
}

Use Locally (npm)

npx @ansvar/mexican-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": {
    "mexican-law": {
      "command": "npx",
      "args": ["-y", "@ansvar/mexican-law-mcp"]
    }
  }
}

Cursor / VS Code:

{
  "mcp.servers": {
    "mexican-law": {
      "command": "npx",
      "args": ["-y", "@ansvar/mexican-law-mcp"]
    }
  }
}

Ejemplos de Consultas

Una vez conectado, pregunte naturalmente:

  • "Buscar 'protección de datos personales' en la LFPDPPP"
  • "¿Qué dice el Código Penal Federal sobre delitos informáticos?"
  • "Encontrar disposiciones sobre rescisión del contrato de trabajo en la Ley Federal del Trabajo"
  • "¿El Código Civil Federal sigue en vigor?"
  • "¿Cuáles son las obligaciones del responsable bajo la LFPDPPP?"
  • "Buscar derechos ARCO (acceso, rectificación, cancelación y oposición) en la LFPDPPP"
  • "¿Cómo se alinea la LFPDPPP con los principios internacionales de protección de datos?"
  • "Validar la cita: LFPDPPP, Artículo 16"
  • "Construir una posición jurídica sobre las obligaciones de privacidad en México"
  • "Encontrar disposiciones sobre protección al consumidor en la LFPC"

What's Included

CategoryCountDetails
Federal Laws317 lawsComprehensive Mexican federal legislation
Provisions45,179 sectionsFull-text searchable with FTS5
Agency Guidance73,287 documentsINAI, COFECE, CNBV regulatory guidance
Database Size~0.7 MBOptimized SQLite, portable
LanguageSpanishOfficial language of Mexican federal law
Freshness ChecksAutomatedDrift detection against DOF and Cámara de Diputados

Key Laws Included

LawDescription
LFPDPPPLey Federal de Protección de Datos Personales en Posesión de los Particulares
Código Penal FederalFederal Criminal Code
Código Civil FederalFederal Civil Code
Ley Federal del Trabajo (LFT)Federal Labour Law
LFPC (Ley Federal de Protección al Consumidor)Federal Consumer Protection Law
Ley FinTech (Ley para Regular las ITF)Financial Technology Law
Ley Federal de Telecomunicaciones y Radiodifusión (LFTR)Telecommunications Law
Ley General de Protección de Datos Personales en Posesión de Sujetos ObligadosPublic sector data protection

Verified data only -- every citation is validated against official sources (dof.gob.mx, diputados.gob.mx). Zero LLM-generated content.


Why This Works

Verbatim Source Text (No LLM Processing):

  • All statute text is ingested from diputados.gob.mx and dof.gob.mx official sources
  • Provisions are returned unchanged from SQLite FTS5 database rows
  • Zero LLM summarization or paraphrasing -- the database contains law text, not AI interpretations

Smart Context Management:

  • Search returns ranked provisions with BM25 ranking (safe for context)
  • Provision retrieval gives exact text by law name + article number
  • Cross-references help navigate without loading everything at once

Technical Architecture:

DOF / Cámara de Diputados --> Parse --> SQLite --> FTS5 snippet() --> MCP response
                                 ^                        ^
                          Provision parser         Verbatim database query

Traditional Research vs. This MCP

Enfoque TradicionalEste Servidor MCP
Buscar en dof.gob.mx por nombre de leyBuscar en español: "protección datos personales consentimiento"
Navegar manualmente en códigos de varios artículosObtener la disposición exacta con contexto
Referencias cruzadas manuales entre leyesbuild_legal_stance agrega de múltiples fuentes
"¿Esta ley sigue en vigor?" -- verificar manualmenteHerramienta check_currency -- respuesta en segundos
Comparar con estándares OCDE -- buscar manualmenteget_eu_basis -- marcos internacionales vinculados al instante
Sin API, sin integraciónProtocolo MCP -- nativo para IA

Tradicional: Buscar en diputados.gob.mx --> Descargar PDF --> Ctrl+F en español --> Referencias cruzadas con otra ley --> Verificar lineamientos del INAI --> Repetir

Este MCP: "¿Cuáles son las bases legales para el tratamiento de datos personales bajo la LFPDPPP y cómo se comparan con los estándares de la OCDE?" --> Listo.


Available Tools (13)

Core Legal Research Tools (8)

ToolDescription
search_legislationFTS5 full-text search across 45,179 provisions with BM25 ranking. Supports Spanish full-text queries
get_provisionRetrieve specific provision by law name + article number
check_currencyCheck if a law is in force, amended, or repealed
validate_citationValidate citation against database -- zero-hallucination check
build_legal_stanceAggregate citations from multiple laws for a legal topic
format_citationFormat citations per Mexican conventions (full/short/pinpoint)
list_sourcesList all available laws with metadata, coverage scope, and data provenance
aboutServer info, capabilities, dataset statistics, and coverage summary

International Law Integration Tools (5)

ToolDescription
get_eu_basisGet international frameworks (USMCA, OECD, OAS) that a Mexican law aligns with
get_mexican_implementationsFind Mexican laws implementing a specific international instrument
search_eu_implementationsSearch international documents with Mexican implementation counts
get_provision_eu_basisGet international law references for a specific provision
validate_eu_complianceCheck alignment status of Mexican laws against international frameworks

International Law Alignment

Mexico is not an EU member state. Mexican law aligns with international frameworks through:

  • USMCA (T-MEC) -- Mexico, United States, and Canada trade agreement; Chapter 19 on Digital Trade includes data protection and cross-border data flow provisions aligned with international standards
  • OECD -- Mexico is an OECD member since 1994; the LFPDPPP was developed in alignment with OECD Privacy Guidelines and the OECD Guidelines on the Security of Information Systems
  • OAS (OEA) -- Organization of American States frameworks for cybersecurity and data protection
  • Council of Europe Convention 108 -- Mexico's LFPDPPP aligns with Convention 108 principles on personal data protection, even though Mexico is not a signatory
  • Ilustre y Nacional Colegio de Abogados de México (INCAM) / Barra Mexicana - Colegio de Abogados -- Professional legal practice regulated by INCAM and the Barra Mexicana

The international bridge tools allow you to explore these alignment relationships -- checking which Mexican provisions correspond to USMCA, OECD, or international data protection principles, and vice versa.

Note: International cross-references reflect alignment and treaty obligation relationships. Mexico adopts its own legislative approach, and the tools help identify where Mexican and international law address the same domains.


Data Sources & Freshness

All content is sourced from authoritative Mexican legal databases:

  • Diario Oficial de la Federación (DOF) -- Official federal gazette, primary source for enacted legislation
  • Cámara de Diputados -- Chamber of Deputies consolidated law library (primary source for this database)
  • Orden Jurídico Nacional -- Secretaría de Gobernación legal framework portal

Data Provenance

FieldValue
AuthorityCámara de Diputados del H. Congreso de la Unión
LanguageSpanish
Coverage317 federal laws across all legislative areas
Agency Guidance73,287 INAI, COFECE, CNBV regulatory documents
Last ingested2026-02-28

Automated Freshness Checks

A GitHub Actions workflow monitors all data sources:

CheckMethod
Law amendmentsDrift detection against known provision anchors
New lawsComparison against Cámara de Diputados index
Repealed lawsStatus 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:

ScannerWhat It DoesSchedule
CodeQLStatic analysis for security vulnerabilitiesWeekly + PRs
SemgrepSAST scanning (OWASP top 10, secrets, TypeScript)Every push
GitleaksSecret detection across git historyEvery push
TrivyCVE scanning on filesystem and npm dependenciesDaily
Socket.devSupply chain attack detectionPRs
DependabotAutomated dependency updatesWeekly

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 the Cámara de Diputados and the Diario Oficial de la Federación. 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 (jurisprudencia) research
  • Verify critical citations against primary sources (dof.gob.mx) for official proceedings
  • International cross-references reflect alignment relationships, not formal transposition
  • State-level legislation is not included -- this covers federal Acts only
  • For professional legal advice in Mexico, consult a member of the Ilustre y Nacional Colegio de Abogados de México (INCAM) or the Barra Mexicana - Colegio de Abogados

Before using professionally, read: DISCLAIMER.md | SECURITY.md

Client Confidentiality

Queries go through the Claude API. For privileged or confidential matters, use on-premise deployment.


Development

Setup

git clone https://github.com/Ansvar-Systems/mexican-law-mcp
cd mexican-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 laws from DOF/Cámara de Diputados
npm run build:db            # Rebuild SQLite database
npm run check-updates       # Check for amendments and new laws

Performance

  • Search Speed: <100ms for most FTS5 queries
  • Database Size: ~0.7 MB (efficient, portable)
  • Reliability: 100% ingestion success rate

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/security-controls-mcp

Query 261 security frameworks -- ISO 27001, NIST CSF, SOC 2, CIS Controls, SCF, and more. npx @ansvar/security-controls-mcp

@ansvar/sanctions-mcp

Offline-capable sanctions screening -- OFAC, EU, UN sanctions lists. pip install ansvar-sanctions-mcp

70+ national law MCPs covering Australia, Brazil, Canada, China, Denmark, Finland, France, Germany, Ghana, Iceland, India, Ireland, Israel, Italy, Japan, Kenya, Netherlands, Nigeria, Norway, Singapore, Slovenia, South Korea, Sweden, Switzerland, Thailand, UAE, UK, and more.


Contributing

Contributions welcome! See CONTRIBUTING.md for guidelines.

Priority areas:

  • Court case law expansion (SCJN jurisprudencia, Tesis)
  • INAI and COFECE regulatory resolutions
  • State-level legislation summaries
  • Historical law versions and amendment tracking

Roadmap

  • Core law database with FTS5 search
  • Full corpus ingestion (317 laws, 45,179 provisions)
  • Agency guidance (73,287 documents from INAI, COFECE, CNBV)
  • International law alignment tools (USMCA, OECD, OAS)
  • Vercel Streamable HTTP deployment
  • npm package publication
  • Court case law expansion (SCJN jurisprudencia)
  • INAI resolution and guideline coverage expansion
  • Historical law versions (amendment tracking)
  • State-level legislation

Citation

If you use this MCP server in academic research:

@software{mexican_law_mcp_2026,
  author = {Ansvar Systems AB},
  title = {Mexican Law MCP Server: AI-Powered Legal Research Tool},
  year = {2026},
  url = {https://github.com/Ansvar-Systems/mexican-law-mcp},
  note = {317 Mexican federal laws with 45,179 provisions and 73,287 agency guidance documents}
}

License

Apache License 2.0. See LICENSE for details.

Data Licenses

  • Statutes & Legislation: Cámara de Diputados del H. Congreso de la Unión (public domain)
  • Agency Guidance: INAI, COFECE, CNBV (public domain)
  • International References: OECD, OAS (public domain)

About Ansvar Systems

We build AI-accelerated compliance and legal research tools for the global market. This MCP server started as our internal reference tool for Mexican legal research -- turns out everyone building compliance tools for the Latin American market has the same research frustrations.

So we're open-sourcing it. Navigating 317 federal laws across the DOF and Cámara de Diputados shouldn't take hours.

ansvar.eu -- Stockholm, Sweden


Reviews

No reviews yet

Be the first to review this server!

0

installs

New

no ratings yet

Links

Source Codenpm Package

Details

Published February 24, 2026
Version 1.0.1
0 installs
Local Plugin

More Developer Tools MCP Servers

Git

Free

by Modelcontextprotocol · Developer Tools

Read, search, and manipulate Git repositories programmatically

80.0K
Stars
3
Installs
6.5
Security
No ratings yet
Local

Toleno

Free

by Toleno · Developer Tools

Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.

114
Stars
404
Installs
8.0
Security
4.8
Local

mcp-creator-python

Free

by mcp-marketplace · Developer Tools

Create, build, and publish Python MCP servers to PyPI — conversationally.

-
Stars
55
Installs
10.0
Security
5.0
Local

MarkItDown

Free

by Microsoft · Content & Media

Convert files (PDF, Word, Excel, images, audio) to Markdown for LLM consumption

89.9K
Stars
15
Installs
6.0
Security
5.0
Local

mcp-creator-typescript

Free

by mcp-marketplace · Developer Tools

Scaffold, build, and publish TypeScript MCP servers to npm — conversationally

-
Stars
14
Installs
10.0
Security
5.0
Local

FinAgent

Free

by mcp-marketplace · Finance

Free stock data and market news for any MCP-compatible AI assistant.

-
Stars
13
Installs
10.0
Security
No ratings yet
Local