Skip to main content
Glama

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
Postgres

El 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 dev

Despues 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

  1. Cliente: anon key + user JWT.

  2. run_readonly_sql rechaza INSERT/UPDATE/DELETE/DROP/ALTER.

  3. propose_rls no aplica migraciones.

  4. Rate limit 40 tools/min por auth.uid().

npm run evals

MIT

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.

Maintenance

ActivityMaintained
ResponsivenessNo issues

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

Related MCP Servers

  • -
    license
    Not graded
    quality
    Not graded
    maintenance
    Enables secure read-only interactions with PostgreSQL databases through natural language. Provides database inspection, table listing, and SQL query execution with built-in security validation.
    -
  • F
    license
    A
    quality
    C
    maintenance
    Enables read-only exploration of a Postgres database using natural language, with multiple safety layers to prevent any modifications.
    5
    -
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI assistants to query PostgreSQL, inspect schemas, and explain queries, designed for local and development databases with read-only safety by default.
    30
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables an AI assistant to run guarded, read-only SQL queries against a Postgres database with enforced limits and validation.
    MIT

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/mcontrerasmalpar-pixel/forge-mcp-supabase'

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