Supabase (coleam00)

Databases

Supabase MCP server created in Python.

Your AI app calls the Supabase (coleam00) MCP server, which does the databases work and sends the result back to the chat.

About Supabase (coleam00)

Supabase (coleam00) is a community MCP server from coleam00, filed in our directory under databases. Supabase MCP server created in Python.

At a glance

Publisher
coleam00 (community)
Runs
See the README for setup
Written in
Python
License
MIT
GitHub stars
197

How to set up Supabase (coleam00)

  1. Follow the install steps in the Supabase (coleam00) README; it is written in Python, so have that toolchain ready.
  2. Check the Supabase (coleam00) README for keys or settings; the registry lists none that Supabase (coleam00) requires.
  3. Add Supabase (coleam00) to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Supabase (coleam00) tools to confirm the connection.
  5. Run one read-only task with Supabase (coleam00) first, and keep your app asking before each tool call until the results look right.

Supabase (coleam00) compared with similar servers

  • Superset by aptro has fewer GitHub stars than Supabase (coleam00) (195 against 197); both are community servers, and both run locally.
  • Starrocks by StarRocks has fewer GitHub stars than Supabase (coleam00) (197 against 197); both are community servers, and both run locally.
  • Salt Md by saltmd has fewer GitHub stars than Supabase (coleam00) (190 against 197); both are community servers, and both run locally.

Before you connect Supabase (coleam00)

  • Give Supabase (coleam00) its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Supabase (coleam00) tool call until you trust what it does with them.
  • Treat text that Supabase (coleam00) fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Supabase (coleam00) on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Supabase (coleam00)

How marketing and sales teams put Supabase (coleam00) to work, by company size. Pick the size closest to yours and start Supabase (coleam00) on one use case.

Small business

  • A small business with its own app can ask Supabase (coleam00) plain questions about customers and orders, without writing SQL.
  • Owners can use Supabase (coleam00) to pull a list of customers who haven't bought in 90 days and plan a win-back email.
  • Supabase (coleam00) runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing analysts can connect Supabase (coleam00) to answer campaign questions from the warehouse directly, instead of waiting on the data team's queue.
  • Lifecycle teams can use Supabase (coleam00) to build audience lists from product data and check counts before a send.
  • Start Supabase (coleam00) on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises should point Supabase (coleam00) at a read replica with a read-only role, so agents query freely without risk to production data.
  • Data teams can expose curated views through Supabase (coleam00), so marketing gets self-serve answers without access to raw customer tables.
  • Supabase (coleam00) is a community server, so have security review the code and pin a version before Supabase (coleam00) touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Supabase (coleam00) README

From coleam00/supabase-mcp on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

Supabase MCP Server

A Model Context Protocol (MCP) server that provides tools for interacting with a Supabase database. This server enables AI assistants to perform database operations through a standardized interface.

NOTE: This Supabase MCP server was created as a demonstration of my AI IDE coding workflow. It is still a work in progress which I will expand on in future videos on my channel.

Features

  • Read Table Rows: Query data from Supabase tables with optional filtering, pagination, and column selection
  • Create Table Records: Insert new records into Supabase tables
  • Update Table Records: Modify existing records in Supabase tables based on filters
  • Delete Table Records: Remove records from Supabase tables based on filters

Prerequisites

  • Docker or Docker Desktop
  • Supabase account and project

Installation

  1. Clone the repository:
    git clone https://github.com/coleam00/supabase-mcp.git
    cd supabase-mcp
    
Docker Setup
  1. Build the Docker image:
    docker build -t mcp/supabase .
    

Usage

Running as an MCP Server with Docker

The Supabase MCP server can be integrated with AI assistants using the Model Context Protocol.

  1. Include the below configuration in your MCP config (in Claude Desktop, Windsurf, etc.)

Be sure to build the container with the installation steps first!

{
  "mcpServers": {
    "supabase": {
      "command": "docker",
      "args": ["run", "--rm", "-i", "-e", "SUPABASE_URL", "-e", "SUPABASE_SERVICE_KEY", "mcp/supabase"],
      "env": {
        "SUPABASE_URL": "YOUR-SUPABASE-URL",
        "SUPABASE_SERVICE_KEY": "YOUR-SUPABASE-SERVICE-ROLE-KEY"
      }
    }
  }
}
  1. Replace YOUR-SUPABASE-URL and YOUR-SUPABASE-SERVICE-ROLE-KEY with your actual Supabase credentials.

  2. The AI assistant can now access the Supabase database through the MCP server using the provided tools.

For more information on the Model Context Protocol, visit modelcontextprotocol.io.

Available Tools
Read Table Rows
read_table_rows(
    table_name: str,
    columns: Optional[List[str]] = None,
    filters: Optional[Dict[str, Any]] = None,
    limit: Optional[int] = None,
    offset: Optional[int] = None
)

Example:

# Read active users
read_table_rows(
    table_name="users",
    columns=["id", "name", "email"],
    filters={"is_active": True},
    limit=10,
    offset=0
)
Create Table Records
create_table_records(
    table_name: str,
    records: Union[Dict[str, Any], List[Dict[str, Any]]]
)

Example:

# Create a new user
create_table_records(
    table_name="users",
    records={
        "name": "John Doe",
        "email": "john@example.com",
        "is_active": True
    }
)
Update Table Records
update_table_records(
    table_name: str,
    updates: Dict[str, Any],
    filters: Dict[str, Any]
)

Example:

# Update user status
update_table_records(
    table_name="users",
    updates={"status": "premium"},
    filters={"is_active": True}
)
Delete Table Records
delete_table_records(
    table_name: str,
    filters: Dict[str, Any]
)

Example:

# Delete inactive users
delete_table_records(
    table_name="users",
    filters={"is_active": False}
)

Development

Project Structure
supabase-mcp/
├── supabase_mcp/
│   ├── __init__.py
│   ├── server.py              # Main MCP server implementation
│   └── tests/                 # Unit tests
├── Dockerfile                 # Docker configuration for MCP server
├── example_mcp_config.json    # Example MCP configuration
├── requirements.txt           # Python dependencies
├── .env.example               # Example environment variables
├── README.md                  # Project documentation
├── PLANNING.md                # Project planning
└── TASKS.md                   # Task tracking
Running Tests
pytest supabase_mcp/tests/

Model Context Protocol Integration

The Supabase MCP server implements the Model Context Protocol, which allows AI assistants to interact with Supabase databases in a standardized way.

How It Works
  1. The MCP server exposes tools for database operations (read, create, update, delete)
  2. AI assistants connect to the MCP server using the stdio transport
  3. The AI assistant can invoke the tools to perform database operations
  4. The MCP server handles the communication with Supabase and returns the results
MCP Configuration

The example_mcp_config.json file shows how to configure an AI assistant to use the Supabase MCP server:

{
  "mcpServers": {
    "supabase": {
      "command": "docker",
      "args": ["run", "--rm", "-i", "-e", "SUPABASE_URL", "-e", "SUPABASE_SERVICE_KEY", "mcp/supabase"],
      "env": {
        "SUPABASE_URL": "YOUR-SUPABASE-URL",
        "SUPABASE_SERVICE_KEY": "YOUR-SUPABASE-SERVICE-ROLE-KEY"
      }
    }
  }
}

This configuration tells the AI assistant:

  • To use Docker to run the MCP server
  • To pass the Supabase credentials as environment variables
  • To use the mcp/supabase Docker image
Using with AI Assistants

AI assistants that support the Model Context Protocol can use this server to:

  1. Query data from Supabase tables
  2. Insert new records into tables
  3. Update existing records
  4. Delete records

The assistant will have access to the tools documented in the "Available Tools" section above.

Environment Variables

Variable Description
SUPABASE_URL URL of your Supabase project
SUPABASE_SERVICE_KEY Service role key for Supabase authentication

License

This project is licensed under the MIT License - see the LICENSE file for details.

Questions about Supabase (coleam00)

What is the Supabase (coleam00) MCP server?

Supabase MCP server created in Python. Supabase (coleam00) is maintained by coleam00 on GitHub at coleam00/supabase-mcp, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Supabase (coleam00) MCP server?

Supabase (coleam00) doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (coleam00/supabase-mcp). Like most servers, Supabase (coleam00) ends with a command or URL you paste into your AI app's MCP config.

Does Supabase (coleam00) need an API key?

The registry lists no required keys for Supabase (coleam00). Check the Supabase (coleam00) README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Supabase (coleam00) an official MCP server?

No. Supabase (coleam00) is a community server maintained by coleam00. Community servers can be excellent; read the code and the open issues before you give Supabase (coleam00) access to company data.

What license is Supabase (coleam00) under?

Supabase (coleam00) is released under the MIT license, according to its GitHub repository. The license covers the code of Supabase (coleam00); the service it connects to has its own terms.