AILegal — verified legal provisions for agents
RemoteAbout AILegal — verified legal provisions for agents
AILegal is an MCP server for agents that need legal answers tied to verified provisions and official texts. It covers six jurisdictions and returns a refusal when its corpus has no applicable provision.
Key features
- 01Find applicable provisions for a situation
- 02Link each provision to official text
- 03Refuse when no provision is verified
- 04Support six listed jurisdictions
Use cases
- 01Check a workplace pay issue in India
- 02Find cited provisions for a legal situation
- 03Avoid unsupported article numbers in agent responses
MCP support
Exposes `legal_breakdown`, which sends a situation and jurisdiction to the public AILegal API and returns applicable provisions, source links, and refusal status.
Configuration
Remote servers need no local install. Pick your client, then copy the config or install in one click.
https://ailegal.legal/api/mcp/claude mcp add --transport http mrpkk-ailegal https://ailegal.legal/api/mcp/{"mcpServers":{"mrpkk-ailegal":{"type":"http","url":"https://ailegal.legal/api/mcp/"}}}Open in Cursor{"servers":{"mrpkk-ailegal":{"type":"http","url":"https://ailegal.legal/api/mcp/"}}}Open in VS Code{"mcpServers":{"mrpkk-ailegal":{"type":"http","url":"https://ailegal.legal/api/mcp/"}}}{"mcpServers":{"mrpkk-ailegal":{"serverUrl":"https://ailegal.legal/api/mcp/"}}}Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.
Tools
Details
From the project READMEAILegal MCP server
Web product: https://ailegal.legal — same corpus, same refusal when no provision is verified.
MCP tool for agents that need an answer grounded in law, not in a model's memory.
legal_breakdown sends a situation to the public AILegal API and returns the provisions
that apply, each with a link to the official text. When the verified corpus has no provision
for the question, the tool returns an honest refusal (no_norms) instead of inventing an
article number.
Jurisdictions: Russia (ru), India (in), the US (us), the UK (uk), Canada (ca),
Hong Kong (hk). 20 India situation pages are available in Hindi in the web product.
Install
pip install "mcp>=2"
Claude Desktop / Cursor / Continue
{
"mcpServers": {
"ailegal": {
"command": "python",
"args": ["/absolute/path/ailegal_server.py"]
}
}
}
Tool
{"text": "My employer has not paid my salary in India", "jurisdiction": "in", "locale": "en"}
Response: {answer, norms: [{code, article, title, source_url, verified}], jurisdiction, refused, coverage}.
Why it refuses
A citation that does not exist is worse than no answer: the reader stops looking for the right provision. The server is deliberately limited to the verified corpus.
Links
- Product: https://ailegal.legal
- Example report: https://ailegal.legal/sample
- Legal information, not legal advice.
Related evidence products (same team)
- Deny evidence — a signed, append-only log of refusals (who asked, which policy, why): https://attest.rta.lat/deny-evidence
- EU AI Act evidence pack — audit log, deny log, human oversight, model card, risk assessment and data-flow map, from $1,500: https://attest.rta.lat/eu-ai-act-evidence
- Agent Spend Audit — five days on one month of agent logs, $500 in USDC:
https://rta.lat/audit/ (note the domain:
rta.lat/audit/, notattest.rta.lat/audit)
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.