mcp-supabase

Execute SQL queries, migrations, and TypeScript type generation on Supabase.

1|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/mshaheerz/hive-mind --skill mcp-supabase-mshaheerz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mcp-supabase
Source: https://github.com/mshaheerz/hive-mind/tree/main/agent-skills/mcp-supabase
Command: npx skills add https://github.com/mshaheerz/hive-mind --skill mcp-supabase-mshaheerz

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines and secures database operations on Supabase, allowing for efficient execution of queries, data modifications, migrations, and type generation while enforcing best practices.

Core Features & Use Cases

  • Database Operations: Execute SQL queries, perform data inserts, updates, and deletes.
  • Schema Management: Apply database migrations and generate TypeScript types from your schema.
  • Monitoring & Diagnostics: Access database logs and performance recommendations.
  • Use Case: You need to add a new index to your users table to improve query performance. This Skill can generate and apply the necessary migration script safely.

Quick Start

Use the mcp-supabase skill to list all tables in the public schema.

Frequently Asked Questions about mcp-supabase

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run secure SQL queries on Supabase without risking unintended data modification?

To run secure SQL queries on Supabase safely, this Skill enforces built-in security rules for data modifications and DDL operations, ensuring that writes, deletes, and schema changes are gated and protected against accidental execution.

Can I generate TypeScript types directly from my Supabase database schema?

Yes, you can generate TypeScript types directly from your Supabase database schema. This Skill automates type generation by introspecting your schema, providing strongly typed interfaces for seamless integration with TypeScript workflows.

What's the best way to apply database migrations to a Supabase database?

The best way to apply database migrations to Supabase is through a gated process that safely executes migration scripts. This Skill manages schema changes securely, such as adding indexes to improve query performance, while enforcing necessary DDL security rules.

Does this Supabase database management approach work for monitoring query performance and accessing logs?

Yes, this Supabase database management approach supports monitoring and diagnostics by providing access to database logs and generating performance recommendations, allowing you to identify slow queries and optimize schema operations effectively.

What are the limitations when executing data operations and DDL changes on Supabase?

The primary limitation when executing data operations and DDL changes on Supabase is that all modifications are strictly governed by enforced security rules and gates, which may restrict certain automated workflows if the operations do not meet safety compliance checks.

When do I need to generate types and apply migrations for my Supabase database?

You need to generate types and apply migrations for your Supabase database when modifying your schema, such as adding new tables or indexes. This Skill securely manages the migration process and updates TypeScript types to reflect the latest structural changes.