Back to Home
agiletec-inc icon

airis-mcp-supabase-selfhost

Verified Safe

by agiletec-inc

Overview

MCP (Model Context Protocol) server for self-hosted Supabase with RLS-aware PostgreSQL + PostgREST layers, providing LLM access to database schema and data.

Installation

Run Command
pnpm start

Environment Variables

  • PG_DSN
  • POSTGREST_URL
  • POSTGREST_JWT
  • READ_ONLY
  • FEATURES
  • PORT

Security Notes

The server employs a 'READ_ONLY' mode by default, which blocks most DML/DDL/DCL operations via regex-based SQL validation. While the regex guard is not foolproof, the default read-only posture and recommendation for a dedicated read-only PostgreSQL user significantly enhance safety. Secrets (PG_DSN, POSTGREST_URL, POSTGREST_JWT) are loaded from environment variables, avoiding hardcoded values in production code. The PostgREST layer is RLS-aware, enforcing access policies. Potential risks arise if 'READ_ONLY' mode is disabled or if a powerful 'POSTGREST_JWT' (e.g., service_role key) is used without proper access control on the Supabase side.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassLow
Avg Tokens500
Stars0
Forks0
Last Update2025-11-21

Tags

MCPSupabasePostgreSQLPostgRESTRLS