Official MCP connector for Legalize: read and search its whole open corpus, at any point in time.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
What a law said on any past date, with the citation and the git commit behind it. Your assistant answers from the corpus instead of from memory.
Connect your AI client (Claude, ChatGPT, Cursor, VS Code, Gemini CLIβ¦) to Legalize and ask about legislation in plain language. Every answer comes back with three things a model cannot invent:
One remote endpoint:
Sign-in required. See it live at legalize.dev/mcp, which always shows the current coverage and allowance.
It is a remote server (Streamable HTTP, stateless). Nothing is installed: you hand the URL to your client, and the client walks you through the sign-in the first time it calls a tool.
Settings β Connectors β Add custom connector β paste https://legalize.dev/mcp.
Or use the one-click link, which pre-fills the name and the address: Add Legalize to Claude. Claude asks you to confirm the address, then to sign in.
In ~/.cursor/mcp.json:
In .vscode/mcp.json:
Developer mode β Settings β Connectors β create a connector and paste https://legalize.dev/mcp.
Any client that speaks remote MCP works. If yours only speaks stdio, bridge it:
All read-only. The connector cannot write anything, anywhere β there is no alerting, no subscription and no state to change. The full descriptions the model reads, with every argument and its type, are published verbatim in tools.json, which is generated from the running server.
| Tool | What it answers |
|---|---|
list_countries | Which countries are in the corpus, and how many laws each one holds. |
search_laws | Find a norm by words in its title or by its official number. Returns the id every other tool takes. |
get_law | Read what a norm says today β the whole text, or one article of it. |
law_at_date | What the norm said on a given day, with the git SHA behind that version. |
diff_law | What changed between two dates, as a unified diff of the two texts. |
reform_history | Which norms amended this one, when, and what each says it touched. |
law_stats | How large a corpus is and how much it moves, before drilling into it. |
Every tool returns the same envelope β data, citation, url, source, note β and every result links back to its page on legalize.dev. A tool-level failure is a successful call whose data is a structured error naming what to do next, so the model can correct itself instead of guessing.
Sign-in required; there is no anonymous access. Every call is tied to an account, and an unauthenticated request gets 401 with the WWW-Authenticate challenge that starts the OAuth flow.
Your client discovers the authorization server from https://legalize.dev/.well-known/oauth-protected-resource, registers itself dynamically, and sends you to sign in once in a browser. After that it holds the token and you never see the handshake again. No API key is pasted anywhere.
There is a free monthly allowance and a per-minute burst guard. Neither number is written here on purpose β they would go stale the day either changes, and a README that quietly lies about a limit is worse than one that points at it. Both are stated, live, on legalize.dev/mcp and legalize.dev/pricing.
What does not change: past the monthly allowance the connector answers quota_exceeded and stops until the month rolls over β nothing is charged and nothing is cut off silently. Every country is included in every tier.
Most of the corpus is consolidated: amendments are folded into the text, so what you read is the law as it stands. Some of it is not. A text published as enacted comes back flagged, with the norms that amend it named, and never as the law in force β but the flag is only useful if you read it before pasting the quote into a brief.
Three more limits worth knowing:
A body is never truncated: a law too large to send whole comes back as its table of contents with instructions for asking again, because half an article reads exactly like a whole one.
Transport is Streamable HTTP, stateless. The handshake, unauthenticated, is the thing to check first:
With a bearer token from the flow above, the same request returns the tool list β the same one this repository publishes in tools.json and the server serves, without a token, at /mcp/tools.json.
Legalize builds one public git repository per country: every law is a Markdown file, and every reform is a dated commit. That is where the SHA in an answer comes from β it is a commit in a public repo, not an identifier minted for the reply.
Ask what the Spanish Companies Act said in March 2023 and the answer carries commit
3b9aea8d5 of legalize-dev/legalize-es:
returns the same bytes. The connector reaches every country Legalize publishes β the live list, with the size of each corpus, is on legalize.dev and from the list_countries tool.
Legalize turns official gazettes into git: consolidated legislation as Markdown, one commit per reform, one repository per country. This repository documents its MCP connector β the read-only surface an AI assistant talks to.
legalize.dev Β· MIT licence
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/legalize-2)<a href="https://allmcps.com/mcp/legalize-2"><img src="https://allmcps.com/api/badge/legalize-2?style=directory" alt="Legalize on AllMCPs" /></a>