Global law
The law of nearly every country on earth, any date: read it, see what changed it, check citations.
Mexican federal law at any date: articles, reform history, diffs and search over leyes-mx.
Lists are ordered by a usage score (out of 100) built from these parts
| Popularity | 0/80 | GitHub stars or weekly downloads: the larger counts 60, the smaller 20 |
|---|---|---|
| Freshness | 12/12 | Full marks for a release or code change within 30 days |
| Still answering | 0/8 | The cloud endpoint answered at the last check |
| Usage score | 12/100 |
Quality: Passed 3/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)
Pick the AI app you use, then copy the settings.
Let your AI install it with one sentence
Please install Leyes MX: Mexican federal law at any date. Follow https://mcp.popnx.com/i/beg-lag-mcp-leyes.md, show me the commands and wait for my OK before running them.Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads
Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 18, 2026
First: which AI do you use?
Pick your app and the steps appear below.
Works with Claude, with some setup first
Install Docker on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server Leyes MX: Mexican federal law at any date for Claude on this computer, in this order: 1) Check Docker with docker --version. If it is missing, tell me to install it from https://www.docker.com/products/docker-desktop/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "leyes": { "command": "docker", "args": [ "run", "-i", "--rm", "ghcr.io/beg-lag/mcp-leyes:1.0.0" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Leyes MX: Mexican federal law at any date tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Already installed? Check first · Open Terminal, type this command and press Enter
docker --versionMac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: Install Docker Desktop: on Mac open Docker.dmg and drag the icon to Applications (pick Apple silicon or Intel to match your Mac) · on Windows double-click Docker Desktop Installer.exe · then open the Docker Desktop app and leave it running. No curl command needed
Open the Docker download page ↗
When it’s done, close Terminal, open it again and run the same command. You should see a version number: docker --version
Install once; it works for everything that needs Docker
SettingsDeveloperEdit Config
{
"mcpServers": {
"leyes": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/beg-lag/mcp-leyes:1.0.0"
]
}
}
}Use Leyes MX: Mexican federal law at any date and tell me what you can do for me, then show me one thing✓ If Claude says it is using Leyes MX: Mexican federal law at any date or shows a Leyes MX: Mexican federal law at any date tool in the answer, you are connected
The command above works without these. Add them only if you want to change something, following the maker’s description.
MCP_LEYES_REFRESH_HOURS Hours between git fetches of leyes-mx (default 24; 0 never fetches and uses the snapshot in the image). · default 24Descriptions are as written by the maker.
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
ChatGPT cannot connect Leyes MX: Mexican federal law at any date yet
Leyes MX: Mexican federal law at any date runs on your computer, but ChatGPT can only connect servers that run on the web
A · Use an app that can connect Leyes MX: Mexican federal law at any date
B · Others in Law & government data that work with ChatGPT
Picked from the most used in the same category, only ones that connect by address with no key
Works with Claude Code, with some setup first
Install Docker on your computer first (one time)
Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server Leyes MX: Mexican federal law at any date for Claude Code on this computer, in this order: 1) Check Docker with docker --version. If it is missing, tell me to install it from https://www.docker.com/products/docker-desktop/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user leyes -- docker run -i --rm ghcr.io/beg-lag/mcp-leyes:1.0.0 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Leyes MX: Mexican federal law at any date tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Already installed? Check first · Open Terminal, type this command and press Enter
docker --versionMac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: Install Docker Desktop: on Mac open Docker.dmg and drag the icon to Applications (pick Apple silicon or Intel to match your Mac) · on Windows double-click Docker Desktop Installer.exe · then open the Docker Desktop app and leave it running. No curl command needed
Open the Docker download page ↗
When it’s done, close Terminal, open it again and run the same command. You should see a version number: docker --version
Install once; it works for everything that needs Docker
Mac: press Command+Space and type Terminal · Windows: open PowerShell
claude mcp add --scope user leyes -- docker run -i --rm ghcr.io/beg-lag/mcp-leyes:1.0.0You should see Leyes MX: Mexican federal law at any date listed as connected
Use Leyes MX: Mexican federal law at any date and tell me what you can do for me, then show me one thing✓ If Claude Code says it is using Leyes MX: Mexican federal law at any date or shows a Leyes MX: Mexican federal law at any date tool in the answer, you are connected
The command above works without these. Add them only if you want to change something, following the maker’s description.
MCP_LEYES_REFRESH_HOURS Hours between git fetches of leyes-mx (default 24; 0 never fetches and uses the snapshot in the image). · default 24Descriptions are as written by the maker.
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with Cursor, with some setup first
Install Docker on your computer first (one time)
Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server Leyes MX: Mexican federal law at any date for Cursor on this computer, in this order: 1) Check Docker with docker --version. If it is missing, tell me to install it from https://www.docker.com/products/docker-desktop/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "leyes": { "command": "docker", "args": [ "run", "-i", "--rm", "ghcr.io/beg-lag/mcp-leyes:1.0.0" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Leyes MX: Mexican federal law at any date tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Already installed? Check first · Open Terminal, type this command and press Enter
docker --versionMac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: Install Docker Desktop: on Mac open Docker.dmg and drag the icon to Applications (pick Apple silicon or Intel to match your Mac) · on Windows double-click Docker Desktop Installer.exe · then open the Docker Desktop app and leave it running. No curl command needed
Open the Docker download page ↗
When it’s done, close Terminal, open it again and run the same command. You should see a version number: docker --version
Install once; it works for everything that needs Docker
Use Leyes MX: Mexican federal law at any date and tell me what you can do for me, then show me one thing✓ If Cursor says it is using Leyes MX: Mexican federal law at any date or shows a Leyes MX: Mexican federal law at any date tool in the answer, you are connected
The command above works without these. Add them only if you want to change something, following the maker’s description.
MCP_LEYES_REFRESH_HOURS Hours between git fetches of leyes-mx (default 24; 0 never fetches and uses the snapshot in the image). · default 24Descriptions are as written by the maker.
Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with VS Code, with some setup first
Install Docker on your computer first (one time)
Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server Leyes MX: Mexican federal law at any date for VS Code on this computer, in this order: 1) Check Docker with docker --version. If it is missing, tell me to install it from https://www.docker.com/products/docker-desktop/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "leyes": { "type": "stdio", "command": "docker", "args": [ "run", "-i", "--rm", "ghcr.io/beg-lag/mcp-leyes:1.0.0" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Leyes MX: Mexican federal law at any date tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Already installed? Check first · Open Terminal, type this command and press Enter
docker --versionMac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: Install Docker Desktop: on Mac open Docker.dmg and drag the icon to Applications (pick Apple silicon or Intel to match your Mac) · on Windows double-click Docker Desktop Installer.exe · then open the Docker Desktop app and leave it running. No curl command needed
Open the Docker download page ↗
When it’s done, close Terminal, open it again and run the same command. You should see a version number: docker --version
Install once; it works for everything that needs Docker
Use Leyes MX: Mexican federal law at any date and tell me what you can do for me, then show me one thing✓ If VS Code says it is using Leyes MX: Mexican federal law at any date or shows a Leyes MX: Mexican federal law at any date tool in the answer, you are connected
The command above works without these. Add them only if you want to change something, following the maker’s description.
MCP_LEYES_REFRESH_HOURS Hours between git fetches of leyes-mx (default 24; 0 never fetches and uses the snapshot in the image). · default 24Descriptions are as written by the maker.
Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Claude Code
claude mcp add --scope user leyes -- docker run -i --rm ghcr.io/beg-lag/mcp-leyes:1.0.0Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"leyes": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/beg-lag/mcp-leyes:1.0.0"
]
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"leyes": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/beg-lag/mcp-leyes:1.0.0"
]
}
}
}VS Code (mcp.json)
{
"servers": {
"leyes": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/beg-lag/mcp-leyes:1.0.0"
]
}
}
}MCP_LEYES_REFRESH_HOURS envDescriptions are as written by the maker.
These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
oci: ghcr.io/beg-lag/mcp-leyes:1.0.0Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.
Run on your computer in
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
Runs on your computer; the tool list appears in your AI app after you install it.
We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 20, 2026
The registry name was verified with the GitHub account BEG-lag, which owns the repo
Code last changed 2 days ago
Uses MIT
This one runs on your computer; there is no internet endpoint
Runs on your computer and uses local settings instead
Runs on your computer; we can only read tool lists from internet endpoints
Not checked: only npm and PyPI packages with a version can be checked
If you made this, paste this code into your README. The badge links back to this page.
[](https://mcp.popnx.com/en/servers/beg-lag-mcp-leyes)Ask, share a tip or report that it does not work. Sorted by what people marked helpful.
No posts yet. Be the first to ask or share.
Posts here are written by users, not the PopNx team.
No reviews yet
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.
The registry does not list a required key, though some servers ask you to sign in on first use.
It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).
The GitHub repo last changed 2 days ago, and the latest version (1.0.0) reached the registry 2 days ago.
Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Docker on your computer.
In the same category: Global law, Open Legal Data (Germany), LibreJustice, InfraNode, Fedlex Connector
Same category, other makers, commands already checked. Official ones first, then by stars.
Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi
The law of nearly every country on earth, any date: read it, see what changed it, check citations.
German court decisions (Rechtsprechung) and laws (Gesetze) with citation graph and citation checks.
Search French-language and European case law and French legal texts (codes, statutes, treaties).
Keyless open data for 84 German cities: 12 lean read-only MCP tools covering 67 data types.
Search Swiss federal legislation: laws, articles, amendments via the Fedlex SPARQL endpoint.
| This one Leyes MX: Mexican federal law at any date | Global law | Open Legal Data (Germany) | LibreJustice | InfraNode | Fedlex Connector | |
|---|---|---|---|---|---|---|
| Runs where | Installs on your computer | Runs in the cloud, nothing to install | Runs in the cloud, nothing to install | Runs in the cloud, nothing to install | Runs in the cloud, nothing to install | Runs in the cloud, nothing to install |
| Needs a key | No | No | No | No | No | No |
| Add with + in Claude | No | No | No | No | No | No |
| Basic checks | 3/3 | 4/4 | 4/4 | 4/4 | 4/4 | 4/4 |
| License | MIT | NOASSERTION | MIT | Apache-2.0 | Apache-2.0 | MIT |
| Price | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry |
Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.
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.
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. Tool output is in Spanish, like the law.
Article 27 of the Constitution on January 1, 2013, with where the text comes from and what the archive cannot tell:
<!-- get_article(law="CPEUM", article="27", date="2013-01-01") · 0.02 s -->
Constitución Política de los Estados Unidos Mexicanos › Título Primero › Capítulo I · De los Derechos Humanos y sus Garantías
Texto aplicable al 01-01-2013: versión DOF 15-10-2012 (commit 9cdbce4). …
b6d33e0).Advertencias
The same article, 2013 versus today: the energy reforms of 2013 and 2024 to 2025, word by word.
<!-- diff_article(law="CPEUM", article="27", date_from="2013-01-01") · 0.14 s -->
…
…
… … Tratándose [-del petróleo y de los carburos de hidrógeno sólidos, líquidos o gaseosos o-] de minerales [-radioactivos,-] {+radiactivos y litio+} no se otorgarán concesiones [-ni contratos, ni subsistirán los que en su caso se hayan otorgado y la Nación llevará a cabo la explotación de esos productos, en los términos que señale la Ley Reglamentaria respectiva-]. Corresponde exclusivamente a la Nación [-generar, conducir, transformar, distribuir-] {+la planeación+} y [-abastecer-] {+el control del sistema eléctrico nacional en los términos del artículo 28 de esta Constitución, así como el servicio público de transmisión y distribución de+} energía eléctrica …
What the 2019 labor reform changed in the Ley Federal del Trabajo. The archive has no copy between 01-05-2019 and 02-07-2019, so the tool says so and uses the Cámara's editorial notes to tell the articles of this decree from those of the other two:
<!-- diff_reform(law="LFT", reform_date="2019-05-01", limit=3) · 0.03 s -->
… Comparación: versión DOF 22-06-2018 (2ed3ea7) → versión DOF 02-07-2019 (8157e28).
Resumen
transitorios.… Sin esa nota (12; otras reformas de la versión o cambios editoriales): 170 Bis. (añadido), 331 Bis. (añadido), 331 Ter. (añadido), 334 Bis. (añadido), 335., 336 Bis. (añadido), 337 Bis. (añadido), 339., 341., 343., 542., 641-A. …
[-El trabajo es un derecho y un deber sociales. No es artículo de comercio.-] …
And it refuses to over-claim. Asked for article 371 (union bylaws) on June 1, 2019, a month after the reform, it returns the last archived text and flags it as outdated for that date:
<!-- get_article(law="LFT", article="371", date="2019-06-01") · 0.00 s -->
… Texto aplicable al 01-06-2019: versión DOF 22-06-2018 (commit 2ed3ea7). …
The transcript also has the full history of article 27 (10 changes in 44 versions, two of them flagged as editorial corrections), the transitorios of the 2019 decree, a search for subcontrat "servicios especializados", the LFT reform timeline, the LISR reform of 13-11-2026 that is not consolidated yet, and a Código de Comercio version whose source skips article 291.
First sync: 7.0 s from an empty cache on a home connection, cloning leyes-mx from GitHub and indexing 375 versions; the cache then takes 29 MB. Every later call is answered locally, in milliseconds.
Things you can ask once it is connected (example prompts, not recorded answers):
explain_reform prompt)You need uv and git. uvx downloads and runs the server; git is its database.
Claude Code
claude mcp add leyes -- uvx --from git+https://github.com/BEG-lag/mcp-leyes mcp-leyes
Claude Desktop: add this to claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\) and restart:
{
"mcpServers": { "leyes": { "command": "uvx", "args": ["--from", "git+https://github.com/BEG-lag/mcp-leyes", "mcp-leyes"] } } }
The first start clones leyes-mx (about 4 MB) and builds the index in a few seconds; after that it works offline. To do that ahead of time, run uvx --from git+https://github.com/BEG-lag/mcp-leyes mcp-leyes sync.
Docker: every release publishes a multi-arch image (linux/amd64, linux/arm64) to GitHub Container Registry, with git and a snapshot of leyes-mx inside, so it answers even with --network none. In any client config, use "command": "docker" with these arguments:
docker run -i --rm ghcr.io/beg-lag/mcp-leyes:1.0.0
Any other MCP client: run mcp-leyes over stdio, or mcp-leyes --transport http --port 8000 for streamable HTTP at http://127.0.0.1:8000/mcp.
The metadata for the MCP Registry lives in server.json, under the name io.github.BEG-lag/mcp-leyes.
| Tool | What it does |
|---|---|
list_laws() | The catalog: abbreviation, name, last reform, articles, versions in git and the oldest archived version of each law. |
get_article(law, article, date) | 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. |
article_history(law, article) | Every version that added, changed, repealed or dropped the article, with its decree. In grouped versions, the decree named by the editorial note; changes that only touch notes or a few words without a reform note are flagged as editorial. |
diff_article(law, article, date_from, date_to, mode) | What changed between two dates, as a word diff ([-old-] {+new+}) or a unified diff, plus the versions in between that touched it. |
diff_reform(law, reform_date, mode, limit, offset) | What a reform did: articles modified, added and removed, new transitorios and headings, and the diffs, paginated. |
search(query, law, date, limit, include_transitorios) | Full-text search over the laws as they read on a date. Accent and case insensitive, prefix matching, "phrases" and -exclusions. |
reforms(law, since, limit) | Reform decrees of a law (number, DOF date, title, PDF) and which version in git carries each one. |
transitorios(law, decree_date, date, max_chars) | Transitory articles of the original text or of one decree: entry into force, deadlines, repeals. |
Also exposed: the prompts `explain_reform(law, reform_date, audience, language)` and `trace_article(law, article, language)`, and the resources ley://{law}@{date} (the whole law as it stood on a date, Markdown), ley://{law}/articulo/{article}@{date}, leyes://catalogo (JSON) and leyes://estado (sync status). Laws accept the abbreviation (LFT) or slug (lft); articles accept 27, 1o, 3o. Bis, 15-A, 353-Ñ, 29-A Bis or 21 bis 1; dates accept YYYY-MM-DD, DD-MM-YYYY or hoy. All tools are annotated read-only.
flowchart LR
A["Claude or any MCP client"] -- "stdio / HTTP" --> B["mcp-leyes tools, prompts, resources"] B --> C["SQLite index art