Skip to content
MCP server
Registry

rowstile MCP Server

Check, test, prove and review a rowstile policy: access rules for Postgres row-level security

rowstile scores 66 (Good), licensed Apache-2.0 and written in PLpgSQL. It installs as a local process. It does not declare tools yet. Filed under Databases. GitHub shows 7 stars. Package registries report about 169 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by rowstileApache-2.0PLpgSQL7 stars
Trust score
66Good
Trust score 66 of 100, Good

Good trust

66 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: apache-2.0.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 66 comes from

22 + 20 + 3 + 10 + 4 + 7 = 66. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity3 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 3 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs7 / 10

A real summary, a README with depth, listed tools.

Docs: 7 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "rowstile-rowstile": {      "command": "npx",      "args": [        "-y",        "rowstile@0.1.0-beta.5"      ]    }  }}

Environment variables

This server does not declare environment variables.

Tools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.

About

rowstile: access rules in a policy file, enforced by Postgres

Authorization inside your Postgres. Sharing, groups, nested folders and tenants, written in one policy file and compiled to row-level security. There is no authorization service to run beside the database, and no permission data to copy into one and keep in step: the rules read the tables your app already has.

A policy, its tests, a one-word change and what the review says of it, a refused write that says why, and what would grant it

Write who-can-do-what in one small file, next to the data it depends on. The rowstile command compiles it into plain SQL: views, trigger-maintained tables for inheritance, row-level security policies, and functions for app code: checks, sharing, "who has access", "why", access requests, reviews, audit. Each change to the policy ships as a migration for the tool your app already uses (Alembic, Django, Prisma, Drizzle Kit, Rails, Laravel, Ecto, EF Core, sqlx, goose, dbmate, Flyway or plain SQL). Nothing is installed in the database first, and nothing has to run next to it: any Postgres 16, 17 or 18 works, managed or not, and the owner of your tables runs the migrations, no superuser needed.

app role app_user                               -- the Postgres role the app connects as
type user = app.users
type folder = app.folders
  owner  : user   = owner_id                    -- a relation read from a column
  parent : folder = parent_id
  editor : user   = app.folder_editors(folder_id -> user_id)   -- ... or from a link table
  can edit = owner or editor or parent.edit     -- inherited down the tree
  can view = edit
rules app.folders
  select                 : view
  update                 : edit
  update owner_id        : owner                -- only the owner gives it away
  update parent_id after : parent.edit          -- moved only under a folder they may edit

The app says who is asking in each transaction and queries its tables as usual; RLS filters every read and checks every write:

BEGIN;
SELECT authz.act_as('user', '42');         -- a trusted backend, or:
-- SELECT authz.login_key('ak_...');       -- an API key (optionally limited by scopes)
-- SELECT authz.login_jwt('eyJ...');       -- a JWT from your identity provider
SELECT * FROM app.folders;                             -- only the folders 42 may view
SELECT authz.can('folder', 7, 'edit');                 -- ask directly
SELECT * FROM authz.perms_of('folder', ARRAY['7', '8']);  -- a list's buttons, in one call
COMMIT;

Is it for you?

It fits when:

  • your app's data is in one Postgres database;
  • who may see or change a row depends on other rows: its owner, the members of a team (teams inside teams), a folder or a project that passes access down, a tenant, what people share with each other;
  • you were about to add an authorization service and keep it in step with the database, or your hand-written row-level security has become hard to test and to change.

It doesn't when:

  • what decides access is in several databases, or outside Postgres;
  • a browser reads the tables through Supabase's Data API (its roles are not the app role: a backend has to sign in);
  • one tree takes many moves and links a second (they wait for each other);
  • you need an outside audit or a vendor behind it today: rowstile is in beta, with one maintainer.

Status

rowstile 0.1.0 is in beta: complete enough to use before it is released, and it may still change where using it shows a need. Until 1.0, a minor release may change the language, the authz.* functions, the SDKs and the file formats; from the beta on, each release upgrades a database from the one before it, and the changelog says what to do. What a 0.x release promises.

rowstile was called rowfence until 0.1.0-alpha.1; another product had the name first. The changelog says what the alphas were: Before the beta.

Installing

Only pre-releases are published so far: ask for the newest.

npm i -D rowstile@next         # the command with its own Python: a TypeScript app needs none
pip install --pre rowstile     # the command and the Python SDK: rowstile[fastapi], [sqlalchemy], ...
docker run --rm -u "$(id -u):$(id -g)" -v "$PWD:/work" ghcr.io/rowstile/rowstile:0.1.0-beta.5 migrate

npm brings the Python for Linux (glibc and musl, x64 and arm64), macOS (x64 and arm64) and Windows x64. The image is for Linux on x64 and arm64, and runs as root unless told otherwise: -u makes the files it writes yours. Installing has the rest: pre-releases, the extras, the repository.

From this repository, put core/cli on PATH. rowstile init then finds the stack (Next.js, Prisma, Drizzle, FastAPI, SQLAlchemy, Alembic, goose, dbmate, Flyway), writes rowstile.toml for its migration tool, adds the SDK's packages to package.json (for Python, names the one to add) and says which line to change.

Docs

This repository

folderwhat
core/the compiler and the rowstile command, their tests and the benchmarks
sdk/the SDKs: Python (FastAPI, SQLAlchemy, psycopg, asyncpg; Django as a preview) and TypeScript (Next.js, Prisma, Drizzle, pg, postgres.js, React); previews for Go, .NET, Ruby, Java and Kotlin, Rust, Elixir and PHP
integrations/each SDK's conformance suite: a small app and the checks it must pass
examples/complete apps built on rowstile: a file manager, a messenger and a helpdesk
editor/the VS Code and Zed extensions, a Tree-sitter grammar (Helix, Neovim); other editors start rowstile lsp
review-ci/the policy review for pull requests: a GitHub action and a GitLab CI template
docs/the guides and the reference, as Markdown
site/the docs site, rowstile.dev (VitePress): it builds the pages from docs/
playground/rowstile in the browser (Pyodide and PGlite)
packaging/how rowstile is installed: npm, PyPI and a Docker image
demo/the recording at the top of this page: record.sh runs demo.tape on the guide's own app

Contributing

A question, or something you built with rowstile: Discussions. Issues and pull requests are welcome: CONTRIBUTING.md says how a change gets in, and the code of conduct how we work together. What changed in each release: CHANGELOG.md. How releases are numbered and made: RELEASING.md.

Security

rowstile has not been audited by anyone outside the project. The threat model says what it protects and from whom. Report a vulnerability privately: SECURITY.md.

How the project itself is run, as the OpenSSF Scorecard measures it (pinned actions, what each workflow's token may do, known vulnerabilities in dependencies, review, releases): OpenSSF Scorecard

The project's own answers to the OpenSSF Best Practices criteria, at the passing level: how it is documented, changed, tested and secured, each answer with where to check it: OpenSSF Best Practices

License

Apache License 2.0; see LICENSE. Copyright 2026 Salaheddine EL HSSANI.

Frequently asked questions

What is rowstile MCP Server?

Check, test, prove and review a rowstile policy: access rules for Postgres row-level security

How do I install rowstile MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. rowstile MCP Server runs locally from the npm package rowstile with the command npx -y rowstile@0.1.0-beta.5.

Is rowstile MCP Server free and open source?

Yes. rowstile MCP Server is released under the Apache-2.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does rowstile MCP Server support remote (HTTP) connections?

No remote endpoint is listed for rowstile MCP Server. It runs locally on your machine over stdio, started by your MCP client.

How is rowstile MCP Server's trust score calculated?

rowstile MCP Server scores 66 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server