New advertisers: 50% off your first month with code FIRSTMONTHSee slots
beg-lag avatar

Leyes MX: Mexican federal law at any date

beg-lag/mcp-leyes

Point-in-time access to Mexican federal law: article texts, reform history, diffs, and search by date.

tools
8
transport
STDIO
env var
1
last updated
Nov 18, 2026
View on GitHub

What it does

  • Reads article text and history with get_article, article_history, and transitorios, each answer dated to the DOF version in force on a chosen day
  • Compares versions with diff_article and diff_reform, and searches the laws as they read on a date with search, reforms, and list_laws
  • Runs locally over stdio, cloning the public leyes-mx repository on first use; no account or API key is needed
  • Designed for lawyers and researchers who need to know what a provision said on a past date and which reform changed it

Tools

8 tools

Public tool metadata for what this MCP can expose to an agent.

list_lawsThe catalog: abbreviation, name, last reform, articles, versions in git and the oldest archived version of each law.

The catalog: abbreviation, name, last reform, articles, versions in git and the oldest archived version of each law.

No parameter schema in public metadata yet.

get_articleExact text of an article as it stood on a date (default today): version DOF date and commit, the decrees that version reflects, since when the article reads that way, the editorial notes, a link to the exact lines on GitHub at that commit, and every caveat that applies.

Exact text of an article as it stood on a date (default today): version DOF date and commit, the decrees that version reflects, since when the article reads that way, the editorial notes, a link to the exact lines on GitHub at that commit, and every caveat that applies.

No parameter schema in public metadata yet.

article_historyEvery version that added, changed, repealed or dropped the article, with its decree.

Every version that added, changed, repealed or dropped the article, with its decree.

No parameter schema in public metadata yet.

diff_articleWhat changed between two dates, as a word diff or a unified diff, plus the versions in between that touched it.

What changed between two dates, as a word diff or a unified diff, plus the versions in between that touched it.

No parameter schema in public metadata yet.

diff_reformWhat a reform did: articles modified, added and removed, new transitorios and headings, and the diffs, paginated.

What a reform did: articles modified, added and removed, new transitorios and headings, and the diffs, paginated.

No parameter schema in public metadata yet.

searchFull-text search over the laws as they read on a date. Accent and case insensitive, prefix matching, phrases and exclusions.

Full-text search over the laws as they read on a date. Accent and case insensitive, prefix matching, phrases and exclusions.

No parameter schema in public metadata yet.

reformsReform decrees of a law (number, DOF date, title, PDF) and which version in git carries each one.

Reform decrees of a law (number, DOF date, title, PDF) and which version in git carries each one.

No parameter schema in public metadata yet.

transitoriosTransitory articles of the original text or of one decree: entry into force, deadlines, repeals.

Transitory articles of the original text or of one decree: entry into force, deadlines, repeals.

No parameter schema in public metadata yet.

Configuration

MCP_LEYES_REFRESH_HOURSdefault: 24

Hours between git fetches of leyes-mx (default 24; 0 never fetches and uses the snapshot in the image).

Readme

mcp-leyes: Mexican federal law as it stood on any date, as tools for your AI agent

English · Español

CI Python 3.12+ MCP Data: leyes-mx License: MIT MCP Registry: io.github.BEG-lag/mcp-leyes


View the full README on GitHub

Details

Repository
github.com/beg-lag/mcp-leyes
Website
github.com/BEG-lag/mcp-leyes
Categories
Business, Legal & HR, Docs & Knowledge Bases
Package
ghcr.io/beg-lag/mcp-leyes:1.0.0
Transport
STDIO
Registry
MCP registry, active

More from beg-lag

All 2

Similar to Leyes MX: Mexican federal law at any date

More Business, Legal & HR