Skip to content
Back to skills

1297 Setup 3e64c603

ASecurity

Configure Supabase MCP with OAuth authentication

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
ai-agentsgogit

Works with

  • claude code
  • mcp

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 1297-setup_3e64c603 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 1297 Setup 3e64c603?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 1297 Setup 3e64c603
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-1297-setup-3e64c603/badge)](https://www.skillsdirectory.com/skills/tools-only-1297-setup-3e64c603)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
---
description: Configure Supabase MCP with OAuth authentication
---

# Supabase Tools Setup

**Source:** [supabase-community/supabase-mcp](https://github.com/supabase-community/supabase-mcp)

Configure the official Supabase MCP server with OAuth.

## Step 1: Check Current Status

Read the MCP configuration from `${CLAUDE_PLUGIN_ROOT}/.mcp.json`.

Check if Supabase is configured:

- If `supabase.url` contains `REPLACE_WITH_PROJECT_REF`, it needs configuration
- If it contains an actual project reference, already configured

Report status:

- "Supabase MCP is not configured - needs project reference"
- OR "Supabase MCP is configured with project: PROJECT_REF"

## Step 2: Show Setup Guide

Tell the user:

```
To configure Supabase MCP, you need your Supabase project reference.

Quick steps:
1. Go to supabase.com/dashboard
2. Select your project
3. Go to Project Settings > General
4. Copy the "Reference ID" (looks like: abcdefghijklmnop)

The MCP uses OAuth - you'll authenticate via browser when first connecting.
```

## Step 3: Ask for Project Reference

Use AskUserQuestion:

- question: "Do you have your Supabase project reference ready?"
- header: "Project Ref"
- options:
  - label: "Yes, I have it"
    description: "I have my Supabase project reference ready"
  - label: "No, skip for now"
    description: "I'll configure it later"

If user selects "No, skip for now":

- Tell them they can run `/supabase-tools:setup` again when ready
- Remind them they can disable Supabase MCP via `/mcp` if not needed
- Exit

If user selects "Yes" or provides reference via "Other":

- If they provided reference in "Other" response, use that
- Otherwise, ask them to paste the project reference

## Step 4: Validate Reference

Validate the provided reference:

- Must be alphanumeric
- Should be 16-24 characters

If invalid:

- Show error: "Invalid project reference format"
- Ask if they want to try again or skip

## Step 5: Update Configuration

1. Read current `${CLAUDE_PLUGIN_ROOT}/.mcp.json`
2. Create backup at `${CLAUDE_PLUGIN_ROOT}/.mcp.json.backup`
3. Replace `REPLACE_WITH_PROJECT_REF` with the actual project reference in the URL
4. Write updated configuration back to `${CLAUDE_PLUGIN_ROOT}/.mcp.json`

## Step 6: Confirm Success

Tell the user:

```
Supabase MCP configured successfully!

IMPORTANT: Restart Claude Code for changes to take effect.
- Exit Claude Code
- Run `claude` again

On first use, you'll be prompted to authenticate via browser (OAuth).
To verify after restart, run /mcp and check that 'supabase' server is connected.
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…