# Legal AI for Claude Code
> Source: https://legalcode.md/integrations/claude-code | [HTML version](https://legalcode.md/integrations/claude-code)

Run legal research, contract review, and compliance checks directly in your terminal with Claude Code and Legalcode.

**For:** Developers and legal engineers who work in the terminal

## Setup

`npx legalcode init --client claude-code`

1. **Run the install command** -- Execute the command in your terminal. The CLI will detect Claude Code and configure the MCP endpoint.
2. **Add the remote MCP URL** -- Open /mcp in Claude Code and add the generated remote URL from the CLI output.
3. **Complete OAuth in browser** -- Sign in to legalcode.md when the browser opens. Verify tool access and you're ready to go.

## Capabilities

- Search law and case law across 24 jurisdictions
- Run 318+ legal skills (contract review, DPIA, NDA triage, and more)
- Cross-reference statutes and case law citations
- Access regulatory guidance from SEC, EBA, EDPB, and other agencies
- Zero data retention — your queries are never stored

## Security

- Your documents never leave your machine
- Search queries are not logged or stored
- OAuth 2.0 authentication with token rotation
- All traffic encrypted via TLS 1.3

## FAQ

### Does Legalcode store my documents?

No. Legalcode serves law to your agent. Your documents, analysis, and work product stay in your local environment. We have zero data retention on searches.

### What jurisdictions are covered?

Legalcode covers 24 jurisdictions including the EU, UK, France, Germany, Switzerland, Iceland, United States, Canada, and more. Sources are updated daily from primary legal databases.

### Is Legalcode free?

The free tier includes laws and case law across 24 jurisdictions. Pro adds all source types, file downloads, and higher throughput at $39/month ($29 billed annually). The full skill library is available on annual Pro plans.

---
*Legalcode -- legalcode.md*
