# Rls Check

> Rls Check is an open-source MCP server for security. Explains in Arabic which Supabase tables anyone can read or change, from a read-only query. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API
- **Repository:** https://github.com/muhandis-online/rls-check
- **MCP Registry name:** io.github.Muhandis-online/rls-check
- **Categories:** [security](https://ai-powered.com/categories/security), [databases](https://ai-powered.com/categories/databases), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-18

## About

Findings arrive table by table, labelled exposed, check it, locked or safe, with an Arabic explanation aimed at non-technical founders and a link to a lesson on each fix. It never reads a row: the query inspects RLS state, policies, grants and column names only, and the server holds no connection details.

The flow is split in two. rls_check_query returns the SQL for you to run in your own Supabase SQL Editor, or for an agent to run through the official Supabase MCP, and rls_check_explain turns the result into the explanation. Personal columns are recognised by name, such as email, phone or user_id, and the README says the tool is the same analyser as the browser version on the maker's site.

It does not replace a test: after using it, sign in with two accounts and confirm each sees only its own rows. A command-line mode exits with 1 when a table is exposed, so it can run in CI, and it is also packaged as a Claude skill. MIT licensed.

## Features

- **Arabic explanations:** Plain-language findings with English status labels.
- **Four-level verdicts:** exposed, check it, locked or safe for each table.
- **No data access:** Reads table descriptions only and needs no key or password.
- **CI exit code:** The CLI exits with 1 if any table is exposed.
- **Skill version:** Also available as a Claude skill with a Python analyser.

## Good for

- Audit a new Supabase project before launch
- Explain RLS gaps to a non-technical founder in Arabic
- Fail a CI step when a table is exposed

## Install

### Claude Code (Terminal)

```sh
claude mcp add rls-check -- npx -y muhandis-rls-check
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "rls-check": {
      "command": "npx",
      "args": [
        "-y",
        "muhandis-rls-check"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "rls-check": {
      "command": "npx",
      "args": [
        "-y",
        "muhandis-rls-check"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "rls-check": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "muhandis-rls-check"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "rls-check": {
      "command": "npx",
      "args": [
        "-y",
        "muhandis-rls-check"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "rls-check": {
      "command": "npx",
      "args": [
        "-y",
        "muhandis-rls-check"
      ]
    }
  }
}
```

## Tools

- `rls_check_query`: Returns the read-only SQL query to run in your Supabase SQL Editor.
- `rls_check_explain`: Explains the query result table by table in Arabic.

## FAQ

### Does it connect to my database?

No. You run the query yourself, or an agent runs it through the Supabase MCP; the server holds no connection details.

### Does it read my customers' data?

No. It reads RLS state, policies, grants and column names, never rows.

### What replaces a manual test?

Nothing does; the README says to sign in with two accounts and confirm each sees only its own rows.

### How do I add it?

Use npx -y muhandis-rls-check mcp in your MCP client config.

### Is Rls Check free?

Yes. Rls Check is open source, so you can use and self-host it for free.

### How do I add Rls Check to Claude Code?

Run this command in your terminal: claude mcp add rls-check -- npx -y muhandis-rls-check

### What are the best alternatives to Rls Check?

The closest alternatives to Rls Check are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

## Where this comes from

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

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/rls-check
