mcpField
A
AILegal — verified legal provisions for agents

AILegal — verified legal provisions for agents

Remote
ailegal.legalLegal & Government0Updated 2w ago

About 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

  1. 01Find applicable provisions for a situation
  2. 02Link each provision to official text
  3. 03Refuse when no provision is verified
  4. 04Support six listed jurisdictions

Use cases

  1. 01Check a workplace pay issue in India
  2. 02Find cited provisions for a legal situation
  3. 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.

Endpointhttps://ailegal.legal/api/mcp/
Copy install command
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

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 README

AILegal MCP server

AILegal 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

Related evidence products (same team)

Comments

Markdown supported

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.