Legalize — Claude Code MCP server: what it does, how to install
Connects your AI client to a consolidated legal corpus to pull exact statutory wording on any historical date with git commit citations.
claude mcp add --transport http legalize https://legalize.dev/mcpWhat Legalize does
Legalize is a remote Streamable HTTP server hosted at https://legalize.dev/mcp. You do not install local packages. When an agent queries a statute, the server returns complete articles instead of fragmented snippets. Each answer provides the text and the git commit SHA backing the quote.
The underlying legal corpus remains strictly read-only. Calling tools requires signing into Legalize on the first request. You can inspect unified diffs between two historical dates with diff_law or view amending norms via reform_history. Creating alert webhooks or daily email digests requires an active paid account.
What it helps with
- retrieve full statutory text by law title or official number
- look up the exact wording of a law on a historical date
- inspect unified diffs between two versions of legislation
- trace the history of amendments modifying a statute
Example prompts for the agent
- Retrieve the wording of this statute on June 15 2018 with git commit citations.
- Run diff_law to see changes between the 2015 and 2022 versions of this law.
- Show the amendment history for this norm using reform_history.
How to install Legalize
Platform CLI: remote server
claude mcp add --transport http legalize https://legalize.dev/mcpPlatform CLI: remote server
codex mcp add legalize --url https://legalize.dev/mcpConfig file
{
"mcpServers": {
"legalize": {
"url": "https://legalize.dev/mcp"
}
}
}Config file
{
"servers": {
"legalize": {
"type": "http",
"url": "https://legalize.dev/mcp"
}
}
}Platform CLI: remote server
gemini mcp add -t http legalize https://legalize.dev/mcpStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Legalize
How to install Legalize in Claude Code?
Run claude mcp add --transport http legalize https://legalize.dev/mcp in your terminal. Your client will walk you through sign-in on the first tool invocation.
What does Legalize do?
It gives assistants read-only access to an open statutory database, returning whole legal articles for specific dates alongside verifying git commit hashes.
Which Legalize features require a paid plan?
Searching norms and diffing historical dates work without a subscription, but setting up automated change webhooks or daily email digests requires a paid tier.