
Corpus Iuris
mx.corpusiurisPublished by corpusiuris.mxOfficial publisherv1.0.0Updated Oct 24, 2026
Derecho mexicano verificable: leyes, tesis y precedentes SCJN con vigencia fechada y URL citable
Overview
Corpus Iuris lets an assistant search Mexican federal and state statutes, Supreme Court tesis and precedents, returning dated validity and citable URLs.
- What you can do
- Search Mexican law across statutes, Supreme Court tesis and precedents, with up to five results per source
- Retrieve the full text of a law or document by type and identifier
- Check how many documents the corpus holds and how current it is
- Get each result with its validity status, last reform date, verification date and a public citable URL
- See whether case law is binding jurisprudence or a merely persuasive isolated tesis
- When to use it
- Useful when answering questions about Mexican law and you need verifiable citations rather than model recall: checking whether an article is still in force, finding Supreme Court criteria, or grounding a legal draft in dated sources.
- Requirements
- Remote MCP endpoint reached over streamable HTTP; OAuth 2.0 with dynamic client registration and PKCE is required, and the client discovers it automatically. No API key or environment variables are declared. Network access to the provider's API is needed.
Installation
In SourceWeft
- Open Corpus Iuris in the dashboard and add it to a workspace.
- Connect the required credentials. They are stored privately and never shown on public pages.
- Enable the server for the chats that should use its tools.
Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.
Use with an agent
Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.
Read https://sourceweft.com/mcp/mx.corpusiuris%2Fmexican-law/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.Other MCP clients
Add this to your client's mcpServers config. The client completes OAuth sign-in on first connect.
{
"mcpServers": {
"corpus-iuris": {
"type": "http",
"url": "https://api.corpusiuris.mx/mcp"
}
}
}README
Corpus Iuris — derecho mexicano para agentes de IA
Mexican law for AI agents. Search 6,710 federal and state statutes, 311,701 Supreme Court tesis and 11,708 precedents — with verifiable citations, dated validity and a public URL for every document.
[MCP Registry] [API] [OpenAPI]
El problema
Las IA inventan derecho mexicano. Citan tesis con número de registro que no existe, artículos que fueron derogados, y jurisprudencia que en realidad es una tesis aislada. En un litigio eso cuesta un asunto.
La solución
Un corpus jurídico mexicano consultable por API o por MCP, donde cada resultado trae el texto real, su vigencia con fecha y una URL pública citable.
Conectar en un clic (MCP)
Servidor MCP remoto con OAuth 2.0 (registro dinámico RFC 7591 + PKCE S256):
Claude Desktop / Claude.ai → Ajustes → Conectores → Agregar conector personalizado → pega la URL. El OAuth se descubre solo.
Cualquier cliente MCP — claude_desktop_config.json, Cursor, Windsurf, VS Code:
Tool disponible: buscar_derecho_mexicano(query, fuentes).
Sin registro: la API REST
Sin API key. Sin cuenta. Copia y pega:
Las tres rutas
Contrato completo: openapi.json (OpenAPI 3.1).
Lo que hace citable una respuesta
Y en jurisprudencia, el dato que evita el error clásico:
- Leyes →
vigencia, con la fecha en que un vigilante nocturno comprobó el texto contra la fuente oficial. Una ley abrogada sale conADVERTENCIA. - Tesis →
fuerza: obligatoria o aislada. - Precedentes →
fuerza: son sentencias, no jurisprudencia por sí mismas.
Cuotas
El piso diario del carril anónimo no se agota nunca: una IP nunca queda muerta de forma permanente.
Plataformas verificadas por IP: OpenAI, Anthropic, Google, Perplexity, Meta.
La etiqueta del User-Agent no basta — se comprueba contra el feed oficial.
Dos reglas
- Cita la fuente. «Corpus Iuris (corpusiuris.mx)» + el enlace
urlde cada resultado que uses. Los textos legales son información pública; la búsqueda y la curación son de Corpus Iuris. - No caches. El corpus cambia todos los días: el vigilante recorre ~1,000
leyes cada noche, el DOF publica reformas y la SCJN sube tesis. Las
respuestas se sirven con
Cache-Control: no-storepor esa razón.
Ejemplos
In English
Corpus Iuris is a Mexican legal corpus built for AI agents. Free REST endpoint (no key), native MCP server with one-click OAuth, and a public citable page for every document. Every result carries dated validity and, for case law, whether it is binding jurisprudence or a merely persuasive tesis aislada — the distinction that most often trips up AI in Mexican law.
Docs: https://corpusiuris.mx/agentes · OpenAPI: https://corpusiuris.mx/openapi.json
No sustituye la fuente oficial
Es una herramienta de investigación de carácter referencial. Para un escrito formal, verifica en el DOF, el Semanario Judicial o la gaceta oficial del estado — cada resultado trae el enlace directo.
Operado por AteraSoft (México) · [email protected]
Source: README.md at commit 51ae675
Tools
0Version history
1- v1.0.0LatestSep 16, 2026
Score
75% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 daysRequired25 pts
- Auth declaredRequired10 pts
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Declare a license in the repository or the registry entry.