mcp-supabase
БесплатноБез исполняемых скриптовНе проверенExecute database operations via Supabase MCP (query/write/migration/logs/type generation). Triggers…
от enuno★ 17 звёзд на GitHubОб этом скилле
Supabase MCP Skill
Interact with Supabase database via MCP tools, execute queries, writes, migrations, and diagnostics.
Scope
Applies to:
- Need to perform "database actions" on Supabase: query/statistics/export, write (after confirmation), migration (DDL), type generation, query logs/advisors
Does not apply to:
- Need to complete "integration implementation" in Next.js project (env/client code/minimal data access layer/project structure)
→ Useworkflow-ship-faster(Step 6: Supabase integration) for project-side setup; this skill only handles DB-side actions and gates
Called by:
workflow-ship-fasteruses this skill as DB operation foundation;workflow-ship-fasterhandles project-side integration, this skill handles DB-side actions and security gates
Postgres Best Practices (Bundled)
Ship Faster vendors Supabase's Postgres best practices inside the supabase skill (install supabase alongside this skill if you want these references available locally):
- Full guide:
supabase/references/postgres-best-practices/AGENTS.md - Individual rules:
supabase/references/postgres-best-practices/rules/*.md
Consult it when:
- Writing/reviewing/optimizing SQL queries
- Designing indexes, schema changes, or RLS policies
- Diagnosing performance, locking, or connection issues
When proposing changes, cite the relevant rule file path (for example: supabase/references/postgres-best-practices/rules/query-missing-indexes.md) and keep changes minimal.
File-based Pipeline (Pass Paths Only)
When integrating database operations into multi-step workflows, persist all context and artifacts to disk, passing only paths between agents/sub-agents.
Recommended directory structure (within project): runs/<workflow>/active/<run_id>/
- Input:
01-input/goal.md(requirements),01-input/context.json(known tables/fields/IDs) - Plan:
03-plans/sql.md(SQL to execute; write operations must be written here before confirmation) - Output:
05-final/result.md(conclusion + key numbers + SQL + truncated results) - Logs:
logs/events.jsonl(summary of each tool call; do not log sensitive field values)
Tool Reference
| Tool | Parameters | Purpose |
|---|---|---|
list_tables |
{"schemas":["public"]} |
List all tables in specified schema |
execute_sql |
{"query":"SELECT ..."} |
Execute SQL (query or DML) |
apply_migration |
{"name":"snake_case_name","query":"-- DDL"} |
Apply database migration |
list_migrations |
{} |
View existing migrations |
generate_typescript_types |
{} |
Generate TypeScript type definitions |
get_project_url |
{} |
Get project URL |
get_publishable_keys |
{} |
Get public API keys |
get_logs |
{"service":"postgres|api|auth|storage|realtime|edge-function|branch-action"} |
Query service logs |
get_advisors |
{"type":"security|performance"} |
Get security/performance recommendations |
Optional tools (if enabled):
- Edge Functions:
list_edge_functions,get_edge_function,deploy_edge_function - Branching:
create_branch,list_branches,merge_branch,reset_branch,rebase_branch,delete_branch
Security Rules (Must Follow)
- Read first: Always check schema before any operation
- Default LIMIT 50: All SELECT queries default to
LIMIT 50, unless user explicitly requests more - Write operation confirmation: INSERT/UPDATE/DELETE must before execution:
- Display the SQL to be executed
- State expected number of affected rows
- Await explicit user confirmation
- No bare writes: UPDATE/DELETE without WHERE condition → refuse directly, do not execute
- Batch threshold: Affecting > 100 rows → force double confirmation + suggest
SELECT count(*)first - DDL via migration: Schema changes must use
apply_migration,execute_sqlcannot run DDL directly - Production environment: Write disabled by default; only allow when user explicitly says "execute on prod" and double confirms
- Sensitive fields: email/phone/token/password are masked or not returned by default, unless user explicitly requests
Operation Flow
1. Parse requirements → restate objective
2. Unsure about tables/fields → first list_tables or execute_sql to query information_schema
3. Plan SQL → present to user
4. Read-only → execute directly
5. Write operation → confirm before execution → verify affected rows → report result
Output Format
- Language: English
- Structure: Conclusion → Key numbers → Executed SQL → Result table (max 50 rows)
- Overflow handling: Truncate + show total count + optional export/pagination
Example output:
✅ Query complete: 142 new users in the last 7 days
Executed SQL:
SELECT DATE(created_at) as date, COUNT(*) as count
FROM user_profiles
WHERE created_at > NOW() - INTERVAL '7 days'
GROUP BY DATE(created_at) ORDER BY date DESC;
| date | count |
|------------|-------|
| 2025-01-09 | 23 |
| 2025-01-08 | 3
Установить mcp-supabase в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл mcp-supabase?
Execute database operations via Supabase MCP (query/write/migration/logs/type generation). Triggers: query/statistics/export/insert/update/delete/fix/backfill/migrate/logs/alerts/type generation. Does not trigger for: pure architecture discussion or code planning. Write operations require confirmation; UPDATE/DELETE without WHERE is refused.
Как установить скилл mcp-supabase?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mcp-supabase запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic