← Registry
MCP Official

PostgREST MCP Server (@supabase/mcp-server-postgrest)

Official MCP server that lets LLMs perform CRUD operations over a Supabase/PostgREST REST API and convert SQL queries to PostgREST syntax, ideal for connecting end users to your app's data.

Install

npx -y @supabase/mcp-server-postgrest@latest --apiUrl https://<project-ref>.supabase.co/rest/v1 --apiKey <anon-key> --schema public
$

A focused MCP server that lets an LLM perform CRUD operations on your app's data through a PostgREST REST API - it works with Supabase projects or any standalone PostgREST server. Its postgrestRequest tool issues GET/POST/PATCH/DELETE calls against a configured endpoint, and a sqlToRest tool translates SQL into the equivalent PostgREST method and path for queries the model would otherwise struggle to express. Point it at an apiUrl with an optional apiKey and schema; it is well suited to connecting end users to your application's data.