MCP connector
Legalize also runs as an MCP server, so an agent (Claude, ChatGPT, Cursor, or any other MCP client) can query the corpus directly instead of calling the REST API. Same data, same auth model, same quota.
Connector calls consume your monthly quota. A tool call through
/mcp counts against the same requests_used counter as a REST call
to /api/v1/*. There is no separate MCP allowance — see
pricing for the limit on your tier.
Connect
Add this endpoint to any MCP client. There's no anonymous mode: every call authenticates via OAuth and is tied to your account.
https://legalize.dev/mcp
For Claude specifically, /mcp has a one-click install link and walks through the sign-in step.
Tools
Seven, all read-only — the connector cannot write anything, anywhere:
list_countries— which countries are in the corpus, and how many laws each holds.search_laws— find a norm by words in its title or its official number.get_law— read what a norm says today, whole text or one article.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 diff of the two texts.reform_history— which norms amended this one, when, and what each says it touched.law_stats— corpus-level counts (laws, reforms, articles) for a country.
Quota exceeded
Past your monthly limit the connector answers a structured quota_exceeded error
instead of running the tool — nothing is charged, nothing is cut off silently, and normal
service resumes when the period rolls over.