project-supabase-api
Provides a controlled AI-to-Supabase integration layer with safety-bounded operations, including read-only queries, gated writes, schema inspection, storage access, migration tooling, and capability auditing for a shared Supabase project.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@project-supabase-apiList tables in the shared Supabase project and show their row counts."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
project-supabase-api
Controlled AI-to-Supabase integration layer for the AI Projects portfolio.
Not a generic Supabase client library. The official SDKs (@supabase/supabase-js, supabase-py) already solve that. This repo adds the AI adapter layer: safety-bounded operations, agent-purpose-built MCP server, migration tooling, and reusable schema contracts.
Canonical Architecture: API-149 (Supabase API Integration Layer)
What It Does
Bounded client — Wraps
@supabase/supabase-jswith table allowlists, row limits, query validation, and write confirmation gatesMCP server — Thin transport over application layer; exposes read-only (default) and gated-write tools for AI agent consumption
Python CLI — Zero-dependency CLI for agent scripts where Node isn't available
Migration tooling — Standardized DDL with prefix validation, collision detection, dry-run, and planning
Schema contracts — Typed table interfaces for the shared project's 50+ tables
Capability reporting — Doctor command qualifies supported/unavailable/plan-gated/experimental capabilities
Security audit — RLS status, grants inspection, protected schema validation
Project/environment targeting — Every operation requires explicit project reference; production never inferred
Related MCP server: Supabase MCP Server
Scope
This repo targets the shared Supabase project (buobojrsaanekrbobgwc) used by:
project-dashboard
project-setness-consulting
project-cpe
project-munoz
project-politics
(future) Albert ledger, LevelBest, Nathan
Quick Start
TypeScript
npm install
npm run verifyPython
pip install -e ".[dev]"
python -m pytestSafety Model
Operation | Default | Write Gate |
SELECT queries | Allowed | Bounded (max rows, timeout) |
Schema inspection | Allowed | Read-only |
Storage read | Allowed | Bounded |
INSERT/UPDATE/DELETE | Allowed with token |
|
DDL (migrations) | Owner-gated | Separate confirmation, dry-run default |
Edge Function invoke | Allowed with scope | Function allowlist |
Realtime subscribe | Allowed | Channel allowlist |
Repository Structure
src/
├── ts/ # TypeScript source (primary)
│ ├── client/ # Bounded client wrapper
│ ├── auth/ # Session/token management, RLS
│ ├── database/ # Query builder, schema inspector, contracts
│ ├── storage/ # Storage adapter
│ ├── edge-functions/ # Functions adapter
│ ├── realtime/ # Realtime adapter
│ ├── migrations/ # DDL runner, naming validation
│ ├── safety/ # Allowlists, write gates, audit
│ └── mcp/ # MCP server and tools
└── python/ # Python CLI (zero-dep)
└── supabase_api/Documentation
ARCHITECTURE.md — Module layout, dependency direction, trust boundaries
SECURITY.md — Token handling, write gates, incident response
STATUS.md — Current lifecycle state and verification results
AGENTS.md — Agent instructions and hard rules
CHANGELOG.md — Versioned changes
docs/PLATFORM-COMPATIBILITY.md — Current Supabase platform requirements
docs/CONSUMER-ADOPTION.md — Adoption guide for consumer repositories
docs/ARCHITECTURAL-DECISION-API149-CANONICAL.md — API-149 canonical, API-128 superseded
Architecture Principles
MCP is a thin transport — Business logic lives in the application layer, not in MCP tools
Project/environment targeting — Every operation requires explicit project reference
Read-first authority — Read operations default; mutations require explicit enablement
Dry-run before mutations — Migrations default to dry-run
Post-change read-back — Mutations return evidence of applied changes
No arbitrary REST, shell, SQL, or filesystem passthrough — All operations validated against allowlists
License
Private — AI Projects portfolio internal use.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Safe, read-only Postgres and MySQL access for AI agents. Audit log + column-level controls.
Deterministic safety, correctness & cost gate that vets Postgres SQL before your AI agent runs it.
Your Supabase account in natural language: run SQL, apply migrations, manage tables, storage, edge f
Query 40 databases from Claude, ChatGPT, or Cursor — on any device. Read-only, encrypted, audited.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables Cursor and Windsurf to safely interact with Supabase databases by providing tools for database management, SQL query execution, and Supabase Management API access with built-in safety controls.10Apache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to perform CRUD operations on Supabase databases through natural language. Supports advanced filtering, pagination, and safety checks for seamless database interaction.MIT
- AlicenseNot gradedqualityDmaintenanceConnects AI assistants to Supabase projects, enabling them to manage tables, query data, deploy Edge Functions, handle migrations, and access project resources through natural language commands.Apache 2.0
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to access and manage Supabase projects through the Model Context Protocol, supporting database operations, edge functions, storage, and documentation search. It provides a complete toolset for SQL execution, migration management, and real-time project debugging.-
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/andrewsetness/project-supabase-api'
If you have feedback or need assistance with the MCP directory API, please join our Discord server