Skip to content
Back to search

rulewise

MarketplaceWorks with Claude CodeGitHub

Rulewise: legal issue-spotting for people who build software, starting with Sri Lankan law.

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today

Check it deeper on your machine

It has changed since its scan on 19 Nov 2026.

As a Claude Code plugin, install it and then ask Claude Code:

/plugin marketplace add keithmackay/mackayi/plugin install scanskillsafety@mackayiDo a deep scan of https://github.com/malithJayasinghe2000/legal-mcp with scanskillsafety

Or from a terminal, clone it and run it:

git clone https://github.com/keithmackay/scanskillsafety-skill ~/.claude/skills/scanskillsafetynode ~/.claude/skills/scanskillsafety/cli.cjs --deep 'https://github.com/malithJayasinghe2000/legal-mcp'

It checks the exact commit: every file, its packages against OSV (api.osv.dev), how it compares with this page's scan (findsafeskills.com receives the repository's address), and, if you agree, Claude reading every file with your own Claude subscription. It never runs the code.

Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/malithjayasinghe2000--legal-mcp/badge.svg)](/listings/malithjayasinghe2000--legal-mcp)

HTML

<a href="/listings/malithjayasinghe2000--legal-mcp"><img src="/api/listings/malithjayasinghe2000--legal-mcp/badge.svg" alt="findsafeskills safety rating" /></a>

Install

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

.claude-plugin/marketplace.json · Manifest · 14 lines
  1. {
  2. "name": "rulewise",
  3. "description": "Rulewise: legal issue-spotting for people who build software, starting with Sri Lankan law.",
  4. "owner": { "name": "Malith Jayasinghe", "url": "https://github.com/malithJayasinghe2000" },
  5. "plugins": [
  6. {
  7. "name": "rulewise",
  8. "source": "./",
  9. "description": "Rulewise MCP server, the Rulewise skill and /rulewise:check (project report).",
  10. "category": "legal",
  11. "tags": ["legal", "sri-lanka", "privacy", "compliance"]
  12. }
  13. ]
  14. }
README.md · README · 91 lines
  1. # Rulewise
  2. Legal issue-spotting for people who build software. Connect it to your AI
  3. coding tool (Claude Code, Cursor, Codex, VS Code) as an MCP server. While you build, it
  4. tells you which laws apply to what you're building, how serious each one is, and
  5. what to ask a lawyer. Starts with Sri Lankan law.
  6. It gives legal information, not legal advice.
  7. ## Use it
  8. Nothing to install. Add the hosted server to your AI tool:
  9. - **Claude Code:**
  10. ```sh
  11. claude mcp add --transport http rulewise https://rulewise.victoriousdune-a7b660c5.centralindia.azurecontainerapps.io/mcp
  12. ```
  13. - **Cursor** (`~/.cursor/mcp.json`, `{"mcpServers": {"rulewise": {"url": "<address>"}}}`),
  14. **VS Code** (`.vscode/mcp.json`, `{"servers": {"rulewise": {"type": "http", "url": "<address>"}}}`),
  15. **Codex** (`~/.codex/config.toml`, `[mcp_servers.rulewise]` with `url = "<address>"`).
  16. Codex doesn't follow the server's own instructions, so also add the Rulewise skill
  17. ([skills/rulewise/SKILL.md](skills/rulewise/SKILL.md)), or it only uses Rulewise when asked:
  18. `npx skills add malithJayasinghe2000/legal-mcp` (asks which AI tools to install it into).
  19. Without Node.js, add this line to `AGENTS.md` instead (project, or `~/.codex/AGENTS.md`):
  20. `Before planning or building a product or feature, check it with the Rulewise MCP tools (get_fact_questions, then check_legal_risks).`
  21. Prefer to run it on your own computer? Install [uv](https://docs.astral.sh/uv/getting-started/installation/), then:
  22. ```sh
  23. claude mcp add rulewise -- uvx --from git+https://github.com/malithJayasinghe2000/legal-mcp rulewise
  24. ```
  25. Then just describe what you're building and where your users are. Claude calls the `check_legal_risks` tool
  26. when you plan a feature for a product used in Sri Lanka. The server receives only
  27. facts and country codes, never your idea text or code, and stores nothing.
  28. Tools: `check_legal_risks`, `get_fact_questions`, `get_rule` (exact law quote + link).
  29. ### Check a whole project
  30. Already built something? Ask your AI tool to check the whole project. It reads your code on
  31. your computer, sends Rulewise only the facts it found, and writes `RULEWISE-REPORT.md`: Must,
  32. Should and Check with a lawyer items, the file each one applies to, what to fix first and
  33. questions for a lawyer.
  34. - **Claude Code plugin** (the server, the skill and `/rulewise:check` in one install; use it
  35. instead of the `claude mcp add` line above):
  36. ```
  37. /plugin marketplace add malithJayasinghe2000/legal-mcp
  38. /plugin install rulewise@rulewise
  39. ```
  40. In the VS Code panel `/plugin` isn't available yet; run this in a terminal instead:
  41. ```sh
  42. claude plugin marketplace add malithJayasinghe2000/legal-mcp
  43. claude plugin install rulewise@rulewise
  44. ```
  45. Then reload the window and run `/rulewise:check`.
  46. - **Codex, Copilot and others with the Rulewise skill:** say "check my project with Rulewise".
  47. - **Tools that show MCP prompts:** the server's `check_project` prompt does the same.
  48. - **Any tool with the server:** "Check this project with Rulewise and write a report" works too.
  49. ### PDPA 2027 checklist
  50. Sri Lanka's data protection law (PDPA) starts in 2027. `/rulewise:pdpa` (Claude Code plugin), "run the
  51. Rulewise PDPA checklist" (skill) or the `pdpa_checklist` prompt checks your code against the PDPA rules
  52. that apply and writes `RULEWISE-PDPA-CHECKLIST.md`: "X of Y found in your code", each item with the file
  53. and line as proof, what is missing, and questions code can't answer. Found means seen in the code, not
  54. verified, and there is no score: it never says "compliant".
  55. ## Develop
  56. ```sh
  57. uv sync # install
  58. uv run pytest # tests
  59. uv run --group sources python scripts/fetch_sources.py # download the law sources
  60. claude mcp add rulewise -- uv run --directory /path/to/legal-check rulewise # use your local copy
  61. ```
  62. ## Host it
  63. See [docs/DEPLOY-AZURE.md](docs/DEPLOY-AZURE.md) (Docker, Azure Container Apps).
  64. ## Website
  65. See [web/README.md](web/README.md). For now it is a home page with setup steps; the guided check is hidden (brief D21).
  66. 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](docs/PROJECT-BRIEF.md) and [docs/ROADMAP.md](docs/ROADMAP.md).
  67. ## Licence
  68. [MIT](LICENSE). The rules are legal information, not legal advice; they are provided "as is",
  69. without warranty (see the licence and the [privacy and terms page](https://legal-mcp.vercel.app/privacy)).

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.