Forge
Provides tools for working with Supabase, including listing tables, policies, and functions, explaining SQL query plans, proposing RLS policies, and running read-only SQL queries as the authenticated user with RLS enforced.
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., "@ForgeShow me the tables in the public schema and their RLS policies."
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.
Forge
MCP server + assistant de debugging sobre Supabase Edge Functions.
El agente lista schema, explica planes SQL, propone politicas RLS y corre queries de solo lectura respetando el JWT del usuario. Nada de service_role en el cliente.
Proyecto hosted (link, push, deploy, demo de 2 orgs): ver HOSTED.md.
Que demuestra
MCP hospedado en Edge Functions (Deno)
Tools con allowlist (sin DDL destructivo)
RLS como autorizacion, no checks en el frontend
Assistant UI con tool trace y boton Cargar demo RLS
Harness de evals en
evals/Skill para agentes en
skills/supabase-rls.md
Related MCP server: pg-readonly-mcp
Arquitectura
Cursor / Assistant UI
| MCP JSON-RPC
v
Edge Function mcp-server
| user JWT -> Postgres + RLS
v
PostgresEl LLM (Azure OpenAI mini u otro) solo vive en chat. El MCP no habla con el modelo: expone tools.
Setup local
git clone https://github.com/mcontrerasmalpar-pixel/forge-mcp-supabase.git
cd forge-mcp-supabase
npx supabase start
npx supabase db reset
npx supabase secrets set AZURE_OPENAI_ENDPOINT=https://YOUR.openai.azure.com
npx supabase secrets set AZURE_OPENAI_API_KEY=...
npx supabase secrets set AZURE_OPENAI_DEPLOYMENT=gpt-4o-mini
cd apps/web
cp .env.example .env.local
npm install
npm run devDespues del login pulsa Cargar demo RLS: te asigna acme-alpha y crea documentos en beta-shadow que no debes ver.
Cursor: copia .cursor/mcp.json.example a .cursor/mcp.json.
Tools
Tool | Guardrail |
list_tables | catalog only |
list_policies | read only |
list_functions | read only |
explain_query | blocks writes |
propose_rls | draft, does not apply |
run_readonly_sql | SELECT/WITH/EXPLAIN + read-only txn |
Seguridad
Cliente: anon key + user JWT.
run_readonly_sqlrechaza INSERT/UPDATE/DELETE/DROP/ALTER.propose_rlsno aplica migraciones.Rate limit 40 tools/min por
auth.uid().
npm run evalsMIT
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
Your Supabase account in natural language: run SQL, apply migrations, manage tables, storage, edge f
Deterministic safety, correctness & cost gate that vets Postgres SQL before your AI agent runs it.
Generate, fix, explain and run read-only SQL on PostgreSQL, MySQL and SQL Server
Safe, read-only Postgres and MySQL access for AI agents. Audit log + column-level controls.
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceEnables secure read-only interactions with PostgreSQL databases through natural language. Provides database inspection, table listing, and SQL query execution with built-in security validation.-
- FlicenseAqualityCmaintenanceEnables read-only exploration of a Postgres database using natural language, with multiple safety layers to prevent any modifications.5-
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to query PostgreSQL, inspect schemas, and explain queries, designed for local and development databases with read-only safety by default.30MIT
- AlicenseNot gradedqualityCmaintenanceEnables an AI assistant to run guarded, read-only SQL queries against a Postgres database with enforced limits and validation.MIT
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/mcontrerasmalpar-pixel/forge-mcp-supabase'
If you have feedback or need assistance with the MCP directory API, please join our Discord server