SupaMCP Server is an MCP server that converts any Supabase project into an AI-compatible tool interface via declarative JSON definitions. It connects directly to Supabase PostgREST endpoints using an anon key and user credentials, eliminating the need to write backend code for each individual tool. Developers and database administrators use this server to expose custom database operations—including select, insert, update, and delete actions—to AI clients like Cursor and Claude Desktop. By handling user-level authentication with automatic JWT token refresh, the server ensures all actions execute under Supabase Row Level Security (RLS) policies. Configurations can be supplied as local JSON files, inline command-line arguments, or Base64-encoded strings, supporting Jinja2-style dynamic templating for parameterized queries. This setup enables AI agents to query structured data, generate complex relational records, and update records safely within user-defined permission boundaries.
Category: Cloud & Infrastructure
Tags: backend, database, postgresql, supabase
bash npm install -g supamcpbuilder Alternatively, run it directly with npx -y supamcpbuilder. 2. Create a JSON tool configuration file (e.g., tools-config.json) defining your custom database actions such as select, insert, update, or delete. 3. Register the server in Claude Desktop by editing your configuration file: json { "mcpServers": { "supamcpbuilder": { "command": "npx", "args": [ "-y", "supamcpbuilder", "--url", "https://your-project.supabase.co", "--anon-key", "your-anon-key", "--email", "your-email@example.com", "--password", "your-password", "--config-path", "/path/to/your/tools-config.json" ] } } } For Cursor IDE, configure ~/.cursor/mcp.json using the same arguments or pass --tools-json-base64 with your Base64-encoded tool schema.Part of MCP Servers
You can install SupaMCP Server globally by running npm install -g supamcpbuilder. You can also run it without installation using npx supamcpbuilder directly in your terminal or inside your MCP client configuration.
SupaMCP Server works with any standard Model Context Protocol client. The official documentation provides explicit configuration examples for Claude Desktop and Cursor IDE using JSON configuration files or Base64-encoded configuration arguments.
SupaMCP Server supports four primary database operations defined through JSON schemas: select to query records, insert to create new rows, update to modify existing data, and delete to remove table entries.
SupaMCP Server relies on Supabase email and password authentication with automated JWT token refresh. Because it operates with user credentials rather than admin or service role keys, all database operations respect your Supabase Row Level Security policies.
Yes, SupaMCP Server is an open source project distributed under the MIT License on GitHub.