Leyes MX: Mexican federal law at any date

● Active

io.github.BEG-lag/mcp-leyes

Mexican federal law at any date: articles, reform history, diffs and search over leyes-mx.

Connect this server

One click to install, or copy the config below. Suits: Claude Desktop · Cursor.

Add to Cursor Add to VS CodeClaude Desktop / Claude Code: paste the config below.

Or add it manually — claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor):

{
  "mcpServers": {
    "mcp-leyes": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/beg-lag/mcp-leyes:1.0.0"
      ],
      "env": {
        "MCP_LEYES_REFRESH_HOURS": "24"
      }
    }
  }
}
One line, from the terminal
Claude Code
claude mcp add --env MCP_LEYES_REFRESH_HOURS=24 --transport stdio mcp-leyes -- docker run -i --rm ghcr.io/beg-lag/mcp-leyes:1.0.0
OpenAI Codex CLI
codex mcp add mcp-leyes --env MCP_LEYES_REFRESH_HOURS=24 -- docker run -i --rm ghcr.io/beg-lag/mcp-leyes:1.0.0
VS Code
code --add-mcp '{"name":"mcp-leyes","type":"stdio","command":"docker","args":["run","-i","--rm","ghcr.io/beg-lag/mcp-leyes:1.0.0"],"env":{"MCP_LEYES_REFRESH_HOURS":"24"}}'

Syntax from each client's docs (Claude Code: claude mcp add; Codex: codex mcp add; VS Code: code --add-mcp). Placeholders in angle brackets are values you fill in.

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

A starting point — check the repository for exact arguments and setup. Restart your client after editing the config.

Category
Legal & Government
Version
1.0.0
Registry
active
Published
11/18/2026
Listed in:Official MCP registry ↗how this is checked

Is it safe? Is it maintained?

Serverdex check: Nov 19, 2026

Looks healthy: Leyes MX: Mexican federal law at any date is maintained, open source.

Maintained
Active
Last commit 4 days ago (Nov 18, 2026), 0 open issues.
Official registry
Active
Published as io.github.BEG-lag/mcp-leyes in the official MCP registry, version 1.0.0.
Source
Open source, MIT
Public repository under the MIT licence, 0 stars, 0 forks.
Runs
On your machine
A local Docker package started by your client; it can reach whatever your user account can.
Credentials
None declared
The registry entry declares no required environment variables.
Owner
Unclaimed
Nobody has claimed this page yet; the data above comes from the registry, GitHub and the live check.

Facts only: last commit and licence from GitHub, the entry's status from the official registry, credentials from the live check. Not a code audit — run the security scan on the endpoint yourself.

On GitHub

read Nov 18, 2026
Stars
0
Forks
0
Last push
Nov 18, 2026
License
MIT

Pythonclaudedoffastmcpgitlawlegal-techlegislationmcpmcp-servermexicomodel-context-protocolpoint-in-timepython

From the README

English · Español mcp-leyes is a Model Context Protocol server that gives Claude and other AI agents point-in-time access to Mexican federal law: the exact text of an article as it stood on any date, every change it went through, word-level diffs of what a reform did, full-text search over the laws as they read on a given day, and the reform timeline of each law. It reads the public leyes-mx repository, where 36 federal laws are Markdown files and each of their 375 archived versions is a git commit dated on its publication in the Diario Oficial de la Federación (DOF). Lawyers ask "what did article 27 say in 2013?" or "what exactly did the 2019 labor reform change?" all the time. Answering from memory is how a model ends up citing a repealed paragraph. This server answers from the archived text, cites the DOF date, the decree and the line on GitHub, and says what the archive cannot know. [!IMPORTANT] Unofficial. Only the DOF is authoritative. Not legal advice. Demo Real output, recorded through a real MCP client over stdio on 2026-11-17, starting from an empty cache. Excerpts below are copied verbatim (… marks omitted lines); the full, unedited transcript is in docs/demo.md.…

Read the full README on GitHub →

The most-starred Legal & Government servers in the index, with their live-check result.

ServerStarsLast pushLive check
Korean Law MCP2,891Nov 2026Working
EdgarTools2,859Nov 2026Local / not checked
Global law2,167Nov 2026Working
MCP Fiscal Brasil433Nov 2026Local / not checked
Legal Data Hunter422Nov 2026Needs sign-in

Leyes MX: Mexican federal law at any date: questions people ask

Is Leyes MX: Mexican federal law at any date a remote or a local MCP server?
According to its entry in the official MCP registry, Leyes MX: Mexican federal law at any date ships as a local package (Docker) that your client starts on your machine.
Is Leyes MX: Mexican federal law at any date safe to use?
Looks healthy: Leyes MX: Mexican federal law at any date is maintained, open source. In detail — maintained: Active; official registry: Active; source: Open source, MIT; runs: On your machine; credentials: None declared. Serverdex check of Nov 19, 2026. This is a reading of the repository, the registry entry and the live check, not a code audit; run the Serverdex security scan on the endpoint before trusting it with real data.
Is Leyes MX: Mexican federal law at any date still maintained?
Active: the repository's last commit 4 days ago. Last push Nov 18, 2026, 0 GitHub stars, MIT licence. Read from GitHub on Nov 18, 2026.
How do I add Leyes MX: Mexican federal law at any date to Claude, Cursor or VS Code?
Copy the config in "Connect this server" into your client's MCP config file (claude_desktop_config.json, ~/.cursor/mcp.json or .vscode/mcp.json), or use the one-click Add to Cursor / Add to VS Code buttons and the one-line commands for Claude Code and Codex; then restart the client.
  1. DOF: Diario Oficial de la FederaciónMexico's official gazette (DOF): daily editions, full texts, title search, FIX, UDIS and TIIE.
Browse all Legal & Government →

Add the badge to your site

Show visitors that Leyes MX: Mexican federal law at any date is listed here — it’s also the link we check for a free listing.

Leyes MX: Mexican federal law at any date — listed on Serverdex

HTML — for your website

<a href="https://serverdex.io/server/io-github-beg-lag-mcp-leyes?utm_source=badge"><img src="https://serverdex.io/brand/badge.svg" alt="Leyes MX: Mexican federal law at any date — listed on Serverdex" width="123" height="40" loading="lazy"></a>

Recommended. A dofollow link from your own domain is the one that counts for search engines, and it's the link we check for a free listing.

Markdown — for your README

[![Leyes MX: Mexican federal law at any date — listed on Serverdex](https://serverdex.io/brand/badge.svg)](https://serverdex.io/server/io-github-beg-lag-mcp-leyes?utm_source=badge)

Nice for visibility, but GitHub marks README links nofollow, so it doesn't pass authority. Use the HTML badge on your site as well.

Add to CursorAdd to VS CodeOpen in Claude Code

Install buttons — for your README

[![Add to Cursor](https://serverdex.io/brand/install-cursor.svg)](https://serverdex.io/install/cursor/io-github-beg-lag-mcp-leyes) [![Add to VS Code](https://serverdex.io/brand/install-vscode.svg)](https://serverdex.io/install/vscode/io-github-beg-lag-mcp-leyes) [![Open in Claude Code](https://serverdex.io/brand/install-claude-code.svg)](https://serverdex.io/install/claude-code/io-github-beg-lag-mcp-leyes)

One click opens Cursor or VS Code with this server's config prefilled; the Claude Code button lands on the one-line command. The links point at Serverdex, so when your config changes the buttons keep working.

Install buttons — HTML for your docs

<a href="https://serverdex.io/install/cursor/io-github-beg-lag-mcp-leyes"><img src="https://serverdex.io/brand/install-cursor.svg" alt="Add to Cursor — via Serverdex" width="140" height="28"></a>
<a href="https://serverdex.io/install/vscode/io-github-beg-lag-mcp-leyes"><img src="https://serverdex.io/brand/install-vscode.svg" alt="Add to VS Code — via Serverdex" width="147" height="28"></a>
<a href="https://serverdex.io/install/claude-code/io-github-beg-lag-mcp-leyes"><img src="https://serverdex.io/brand/install-claude-code.svg" alt="Open in Claude Code — via Serverdex" width="180" height="28"></a>

Same buttons as plain links for a docs page or website.

Prefer a live badge with the score, stars and live check? Score badge (links to a page that explains the number and back to this listing).