npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

pi-supabase

v0.1.0

Published

Pi extension for the official Supabase MCP server

Readme

pi-supabase

A Pi extension for the official Supabase MCP server.

It handles Supabase OAuth, discovers the remote MCP tools, and registers them in Pi as first-class tools such as supabase_list_tables, supabase_execute_sql, and supabase_search_docs.

Install

pi install git:github.com/paxtonhare/pi-supabase

For local development:

pi install /absolute/path/to/pi-supabase

Then restart Pi or run /reload.

Connect

/supabase connect

Pi opens Supabase's OAuth page in your browser. Tokens are stored at ~/.pi/agent/supabase-mcp-auth.json with mode 0600 and refreshed by the official MCP SDK.

For SSH or headless sessions:

/supabase manual

Open the saved authorization URL on another machine, approve access, and paste the failed localhost redirect URL back into Pi.

The management tools are always available:

  • supabase_mcp_connect
  • supabase_mcp_status
  • supabase_mcp_disconnect — preserves OAuth credentials
  • supabase_mcp_logout — deletes OAuth credentials

Safe defaults

The extension defaults to:

  • Read-only mode
  • Automatic scoping to .supabase/.temp/project-ref when the current project is linked
  • Confirmation before write-capable MCP tools when read-write mode is enabled
  • Filtering write-only tools out of the model's tool list in read-only mode
  • 50 KB / 2,000-line result truncation, with full output saved to a temporary file

Supabase explicitly recommends using MCP only with development or test projects. Do not connect it to production data unless you understand the prompt-injection and data-exposure risks.

Configuration

Create ~/.pi/agent/supabase.json for global settings or .pi/supabase.json in a trusted project:

{
  "projectRef": "your-project-ref",
  "readOnly": true,
  "features": ["database", "debugging", "development", "docs"],
  "confirmWrites": true,
  "autoConnect": true
}

All fields:

| Field | Default | Purpose | | --- | --- | --- | | url | https://mcp.supabase.com/mcp | Hosted or local MCP endpoint | | projectRef | linked project | Scope access to one Supabase project | | readOnly | true | Force database queries into read-only mode | | features | server defaults | Restrict MCP feature groups | | confirmWrites | true | Confirm write-capable calls in read-write mode | | autoConnect | true | Reconnect when saved credentials exist | | toolPrefix | supabase_ | Prefix for discovered MCP tools | | callbackPort | 54324 | Local OAuth callback port | | requestTimeoutMs | 120000 | MCP request timeout | | authFile | ~/.pi/agent/supabase-mcp-auth.json | OAuth storage path |

Environment variables override JSON configuration:

  • SUPABASE_MCP_URL
  • SUPABASE_PROJECT_REF
  • SUPABASE_MCP_READ_ONLY
  • SUPABASE_MCP_FEATURES (comma-separated)
  • SUPABASE_MCP_CONFIRM_WRITES
  • SUPABASE_MCP_AUTO_CONNECT
  • SUPABASE_MCP_TOOL_PREFIX
  • SUPABASE_MCP_CALLBACK_PORT
  • SUPABASE_MCP_TIMEOUT_MS
  • SUPABASE_MCP_AUTH_FILE

For CI, set SUPABASE_ACCESS_TOKEN. It is sent as a bearer token and is never written by this extension.

For local Supabase CLI development:

{
  "url": "http://localhost:54321/mcp",
  "readOnly": true
}

Commands

/supabase connect
/supabase manual
/supabase status
/supabase disconnect
/supabase logout

Development

npm install
npm run check
npm run pack:check