# Rulewise

> Rulewise is a free MCP server for legal and government. MCP server that flags Sri Lankan laws relevant to software you plan or build. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** API, CLI, vscode, Web
- **Website:** https://legal-mcp.vercel.app
- **Repository:** https://github.com/malithjayasinghe2000/legal-mcp
- **MCP Registry name:** io.github.malithJayasinghe2000/rulewise
- **Categories:** [legal and government](https://ai-powered.com/categories/legal-and-government), [compliance and regulation](https://ai-powered.com/categories/compliance-and-regulation)
- **Listing updated:** 2026-11-18

## About

Rulewise connects to an AI coding assistant such as Claude Code, Cursor, Codex or VS Code and checks feature plans against Sri Lankan law while you work. The README says it spots legal issues, rates how serious each one is, and suggests questions to take to a lawyer.

The server asks a few short factual questions, such as whether a feature collects phone numbers, and then returns matching rules. Each rule quotes the official text, links to the source and shows when it was last checked. Results also state what they do not cover.

The project is aimed at developers and product builders who ship software used in Sri Lanka. The README describes the output as legal information rather than legal advice, and notes that the 61 draft rules have not yet been reviewed by a lawyer.

## Features

- **Plan-time legal checks:** Runs a legal check from inside the AI assistant while a feature is being planned or built.
- **Severity ratings:** Shows how serious each matched rule is, along with the law and section behind it.
- **Quoted official text:** Each rule includes the exact law quote and a link to the source.
- **Lawyer question prompts:** Suggests what to ask a lawyer about each warning.
- **Privacy-preserving queries:** Sends only short facts and country codes, not the feature idea or code, and stores nothing.
- **Get rule tool:** Exposes a tool to fetch a single rule with its quote and link.

## Good for

- Checking whether a new feature that collects personal data needs consent or a privacy notice
- Reviewing SMS or marketing features against Sri Lankan telecom and data rules before launch
- Spotting online safety, contract or consumer issues early in product planning
- Preparing specific questions to bring to a Sri Lankan lawyer

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http rulewise https://rulewise.victoriousdune-a7b660c5.centralindia.azurecontainerapps.io/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://rulewise.victoriousdune-a7b660c5.centralindia.azurecontainerapps.io/mcp
```

### Cursor (~/.cursor/mcp.json)

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

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "rulewise": {
      "type": "http",
      "url": "https://rulewise.victoriousdune-a7b660c5.centralindia.azurecontainerapps.io/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "rulewise": {
      "serverUrl": "https://rulewise.victoriousdune-a7b660c5.centralindia.azurecontainerapps.io/mcp"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "rulewise": {
      "type": "http",
      "url": "https://rulewise.victoriousdune-a7b660c5.centralindia.azurecontainerapps.io/mcp"
    }
  }
}
```

## Tools

- `check_legal_risks`: Checks a feature against Sri Lankan laws and returns warnings.
- `get_fact_questions`: Returns the short factual questions used before a legal check.
- `get_rule`: Returns an exact law quote and link for a rule.

## FAQ

### Is Rulewise legal advice?

No. The README and website describe it as legal information, not legal advice, and say the rules have not yet been reviewed by a lawyer.

### Does it cost money or require sign-up?

The website says it is free with no sign-up, and it stores nothing you send.

### Which AI tools does it work with?

The README lists Claude Code, Cursor, Codex and VS Code, and says any MCP-compatible tool can connect.

### What tools does the server expose?

The README lists check_legal_risks, get_fact_questions and get_rule.

### Is Rulewise free?

Yes. Rulewise is free to use.

### How do I add Rulewise to Claude Code?

Run this command in your terminal: claude mcp add --transport http rulewise https://rulewise.victoriousdune-a7b660c5.centralindia.azurecontainerapps.io/mcp

### What are the best alternatives to Rulewise?

The closest alternatives to Rulewise are Wanhe AI Compliance Checker, LexLint: a lint for the law that governs software, TwinEthos Lite, ClevSec EU compliance tools and ComplyEdge TrustLint: offline AI law checks.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Wanhe AI Compliance Checker](https://ai-powered.com/mcp/wanhe-ai-compliance-checker): Wanhe AI Compliance Checker is an open-source MCP server for security.
- [LexLint: a lint for the law that governs software](https://ai-powered.com/mcp/lexlint-a-lint-for-the-law-that-governs-software): LexLint: a lint for the law that governs software is an MCP server for legal and government.
- [TwinEthos Lite](https://ai-powered.com/mcp/twinethos-lite): TwinEthos Lite is a free MCP server for legal and government.
- [ClevSec EU compliance tools](https://ai-powered.com/mcp/clevsec-eu-compliance-tools): ClevSec EU compliance tools is a freemium MCP server for security.
- [ComplyEdge TrustLint: offline AI law checks](https://ai-powered.com/mcp/complyedge-trustlint-offline-ai-law-checks): ComplyEdge TrustLint: offline AI law checks is an open-source MCP server for legal and government.
- [Eu Ai Act](https://ai-powered.com/mcp/eu-ai-act): Eu Ai Act is a free MCP server for legal and government.
- [RegAI Legal MCP (Taiwan)](https://ai-powered.com/mcp/regai-legal-mcp-taiwan): RegAI Legal MCP (Taiwan) is a freemium MCP server for legal and government.
- [MCP](https://ai-powered.com/mcp/mcp-mwen0zs7): MCP is a freemium MCP server for legal and government.

---
Source: https://ai-powered.com/mcp/rulewise
