Skip to main content
Glama
jryski

Supabase User MCP

by jryski

Supabase User MCP

Project status: M0 active Documentation CI License: Apache 2.0

Give every human and agent its own database identity boundary.

Supabase User MCP is an independent, security-first data-plane MCP server for applications built on Supabase. It is designed to let AI clients work with application data as a specific user or agent while PostgreSQL Row Level Security (RLS) remains the final authorization authority.

WARNING

This repository is in active M0 development. It contains only a zero-authority protocol probe—not a deployable user-data server—and must not be connected to production data.

Why this exists

Supabase's hosted MCP server is a developer control-plane tool. It manages projects, schemas, migrations, functions, and operational resources under a developer's authority. Supabase explicitly recommends using that server for development and testing rather than exposing it to customers or production data.

Supabase User MCP explores the complementary data-plane problem:

Supabase hosted MCP

Supabase User MCP

Primary user

Developer

Application user or bounded agent

Plane

Project control plane

Application data plane

Typical actions

Schema, migration, project operations

Domain-specific reads and writes

Authorization

Developer account and project scope

User, client, tenant, capability, and row

Database boundary

Administrative tooling

RLS must remain effective

Intended environment

Development and test

Production only after the security gates pass

The goal is not to make prompt injection impossible. The goal is to ensure that a compromised model cannot exceed the authority of the identity and capability it was given.

Related MCP server: agent-sudo-mcp

Security thesis

MCP client
    │ authenticated request
    ▼
Supabase User MCP
    ├── validates identity and request context
    ├── exposes a small, allowlisted tool surface
    ├── enforces limits, approval states, and audit metadata
    ▼
Supabase Data API / PostgREST
    ▼
PostgreSQL + RLS
    ├── caller and OAuth-client policy
    ├── tenant and capability policy
    └── row and operation policy

The project follows six non-negotiable principles:

  1. No master key in the MCP request path. A public tool handler must never use a service_role or secret key to perform user actions.

  2. The database makes the final decision. Application checks improve usability; RLS and database constraints enforce authorization.

  3. Tools are capabilities, not a generic REST console. The initial server will not expose arbitrary SQL, tables, schemas, RPC names, URLs, or HTTP methods.

  4. Reads and writes are different authorities. Canonical or irreversible changes use a database-enforced proposal and approval workflow.

  5. Untrusted content stays data. Tool results are bounded and marked as untrusted; prompt injection is tested as a containment problem.

  6. Claims require evidence. A milestone is complete only when its positive, negative, cross-identity, and adversarial tests pass.

Planned product surface

The first useful release is deliberately narrow:

  • memory_search — bounded full-text or semantic search over authorized records

  • memory_get — retrieve one authorized memory record by opaque identifier

  • memory_list_recent — list authorized recent records with a hard page limit

  • memory_append_observation — append non-canonical information idempotently

  • memory_propose_change — stage a canonical mutation for human review

  • memory_get_proposal — inspect approval status without applying the change

The names describe the reference sovereign-memory implementation. Adapters may later map the same capability model to other Supabase application schemas. See the complete feature catalog.

Current phase

The project is in M0: protocol and policy foundation. Before server code is treated as viable, M0 must resolve two identity questions:

  • How a remote HTTP MCP server obtains a downstream Supabase token without violating MCP audience-binding and token-transit requirements.

  • How durable non-human principals are provisioned and revoked, given that Supabase's OAuth server currently documents authorization-code and refresh-token grants rather than a client_credentials grant.

These are architecture gates, not implementation details. The local stdio proof and the remote HTTP service are tracked as separate deployment profiles until the remote identity chain is demonstrated end to end.

The executable M0 spike now proves a strict TypeScript workspace, MCP 2026-07-28 stdio negotiation, structured input/output validation, and a deliberately non-authoritative tool. It has no Supabase client, credentials, network access, or data operations. See the compatibility evidence.

Try the M0 compatibility probe

Prerequisites: Node.js 22.20.0 and npm 11.19.0.

npm ci
npm run check
npm run build
npm start

npm start launches a JSON-RPC stdio server for an MCP 2026-07-28 client; it is not an interactive terminal application. The only exposed tool is system_compatibility_probe, which performs no network or data operation. Exact versions and verification commands are documented in the development guide.

Roadmap

Milestone

Outcome

Release gate

M0

Protocol, identity, policy, and threat-model decisions

Architecture review is complete

M1

Local policy laboratory with representative principals and records

Access matrix passes

M2

Read-only stdio reference server

RLS isolation is proven end to end

M3

Idempotent writes and canonical approval workflow

Direct canonical mutation is impossible

M4

Standards-compliant remote HTTP and OAuth profile

Audience and downstream-token chain pass review

M5

Fleet operations, observability, and adversarial hardening

Revocation and containment drills pass

M6

Stable v1 contract

Independent security review and release checklist pass

Each milestone has deliverables, dependencies, exclusions, and measurable exit criteria in the development roadmap.

Documentation

Contributing

The highest-value contributions today are adversarial reviews, prior art, policy-test cases, and small documentation corrections. Please read CONTRIBUTING.md and GOVERNANCE.md before opening a pull request. Security reports belong in the private process described in SECURITY.md, not in a public issue.

Project status and independence

Supabase User MCP is an independent open-source project. It is not an official Supabase product and is not endorsed by Supabase, Inc. “Supabase” is used to identify compatibility with the Supabase platform.

Licensed under the Apache License 2.0.

A
license - permissive license
-
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    D
    maintenance
    Enables AI agents to interact with PostgreSQL databases through schema intelligence, query execution, and DBA tooling including index analysis and health monitoring. Features configurable access levels and audit logging for secure database operations.
    539
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    Local zero-trust permission gateway for AI agents. Enforces policy-based tool authorization, human approvals, scoped permissions, and cryptographically verifiable audit logs.
    4
    5
    Apache 2.0
  • A
    license
    -
    quality
    C
    maintenance
    Enables AI agents to securely interact with multiple databases (MySQL, PostgreSQL) via natural language queries, with cross-database querying and enterprise-grade security.
    15
    MIT
  • A
    license
    -
    quality
    B
    maintenance
    Enables AI assistants to securely interact with PostgreSQL databases, offering 30+ tools, role-based access control, and security guardrails.
    1
    MIT

View all related MCP servers

Related MCP Connectors

  • Runtime permission, approval, and audit layer for AI agent tool execution.

  • Shared, permission-aware company context for AI agents, with provenance, approvals and audit.

  • See, price, and control every tool call your AI agents make: policy checks, cost, and audit tools.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jryski/Supabase_user_MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server