Back to Browse

Legal MCP Server

Developer ToolsLow Risk10.0MCP RegistryRemote
Free

Server data from the Official MCP Registry

Warns developers which Sri Lankan laws apply to what they build. Legal information, not advice.

About

Warns developers which Sri Lankan laws apply to what they build. Legal information, not advice.

Remote endpoints: streamable-http: https://rulewise.victoriousdune-a7b660c5.centralindia.azurecontainerapps.io/mcp

Security Report

10.0
Low Risk10.0Low Risk

Valid MCP server (1 strong, 3 medium validity signals). No known CVEs in dependencies. Imported from the Official MCP Registry.

3 tools verified · Open access · No issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Found in Source Code

Found by scanning the linked source code. This listing connects to a hosted endpoint, so none of this runs on your machine: it describes what the server software does where it is hosted.

env_vars

Applies to the server that hosts this plugin, not to your machine.

file_system

Applies to the server that hosts this plugin, not to your machine.

HTTP Network Access

Connects to external APIs or services over the internet.

How to Connect

Remote Plugin

No local installation needed. Your AI client connects to the remote endpoint directly.

Add this to your MCP configuration to connect:

{
  "mcpServers": {
    "io-github-malithjayasinghe2000-rulewise": {
      "url": "https://rulewise.victoriousdune-a7b660c5.centralindia.azurecontainerapps.io/mcp"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

Rulewise

Legal issue-spotting for people who build software. Connect it to your AI coding tool (Claude Code, Cursor, Codex, VS Code) as an MCP server. While you build, it tells you which laws apply to what you're building, how serious each one is, and what to ask a lawyer. Starts with Sri Lankan law.

It gives legal information, not legal advice.

Use it

Nothing to install. Add the hosted server to your AI tool:

  • Claude Code:
    claude mcp add --transport http rulewise https://rulewise.victoriousdune-a7b660c5.centralindia.azurecontainerapps.io/mcp
    
  • Cursor (~/.cursor/mcp.json, {"mcpServers": {"rulewise": {"url": "<address>"}}}), VS Code (.vscode/mcp.json, {"servers": {"rulewise": {"type": "http", "url": "<address>"}}}), Codex (~/.codex/config.toml, [mcp_servers.rulewise] with url = "<address>"). Codex doesn't follow the server's own instructions, so also add the Rulewise skill (skills/rulewise/SKILL.md), or it only uses Rulewise when asked: npx skills add malithJayasinghe2000/legal-mcp (asks which AI tools to install it into). Without Node.js, add this line to AGENTS.md instead (project, or ~/.codex/AGENTS.md): Before planning or building a product or feature, check it with the Rulewise MCP tools (get_fact_questions, then check_legal_risks).

Prefer to run it on your own computer? Install uv, then:

claude mcp add rulewise -- uvx --from git+https://github.com/malithJayasinghe2000/legal-mcp rulewise

Then just describe what you're building and where your users are. Claude calls the check_legal_risks tool when you plan a feature for a product used in Sri Lanka. The server receives only facts and country codes, never your idea text or code, and stores nothing.

Tools: check_legal_risks, get_fact_questions, get_rule (exact law quote + link).

Check a whole project

Already built something? Ask your AI tool to check the whole project. It reads your code on your computer, sends Rulewise only the facts it found, and writes RULEWISE-REPORT.md: Must, Should and Check with a lawyer items, the file each one applies to, what to fix first and questions for a lawyer.

  • Claude Code plugin (the server, the skill and /rulewise:check in one install; use it instead of the claude mcp add line above):
    /plugin marketplace add malithJayasinghe2000/legal-mcp
    /plugin install rulewise@rulewise
    
    In the VS Code panel /plugin isn't available yet; run this in a terminal instead:
    claude plugin marketplace add malithJayasinghe2000/legal-mcp
    claude plugin install rulewise@rulewise
    
    Then reload the window and run /rulewise:check.
  • Codex, Copilot and others with the Rulewise skill: say "check my project with Rulewise".
  • Tools that show MCP prompts: the server's check_project prompt does the same.
  • Any tool with the server: "Check this project with Rulewise and write a report" works too.

PDPA 2027 checklist

Most of Sri Lanka's data protection law (PDPA) starts on 1 January 2027 (Gazette 2498/16); users' rights and the marketing rule have no start date yet. /rulewise:pdpa (Claude Code plugin), "run the Rulewise PDPA checklist" (skill) or the pdpa_checklist prompt checks your code against the PDPA rules that apply and writes RULEWISE-PDPA-CHECKLIST.md: "X of Y found in your code", each item with the file and line as proof, what is missing, and questions code can't answer. Found means seen in the code, not verified, and there is no score: it never says "compliant".

Develop

uv sync                                                  # install
uv run pytest                                            # tests
uv run --group sources python scripts/fetch_sources.py   # download the law sources
claude mcp add rulewise -- uv run --directory /path/to/legal-check rulewise   # use your local copy

Host it

See docs/DEPLOY-AZURE.md (Docker, Azure Container Apps).

Website

See web/README.md. For now it is a home page with setup steps; the guided check is hidden (brief D21).

Status: Phase 1. 61 draft rules in 11 areas (not yet reviewed by a lawyer). Website: https://legal-mcp.vercel.app. MCP server hosted on Azure. See docs/PROJECT-BRIEF.md and docs/ROADMAP.md.

Licence

MIT. The rules are legal information, not legal advice; they are provided "as is", without warranty (see the licence and the privacy and terms page).

Reviews

No reviews yet

Be the first to review this server!