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

@sbtools/mcp-server

v0.10.0

Published

MCP server exposing all Migration Studio tools to Claude, Cursor, and VS Code.

Readme

@sbtools/mcp-server

MCP (Model Context Protocol) server for supabase-tools. Exposes all Migration Studio tools and resources over stdio so AI agents (Claude, Cursor, VS Code Copilot) can drive your Supabase backend workflow directly.

Installation

npm install -g @sbtools/mcp-server

Or run without installing:

npx @sbtools/mcp-server

Usage

The server communicates over stdio. Point your MCP client at the binary:

sbtools-mcp [--cwd /path/to/project]
  • --cwd — override the working directory (defaults to process.cwd()). The server walks up from this directory looking for supabase-tools.config.json.

Client Configuration

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "sbtools": {
      "command": "npx",
      "args": ["@sbtools/mcp-server", "--cwd", "/path/to/your/project"]
    }
  }
}

Cursor / VS Code (.cursor/mcp.json or mcp.json)

{
  "mcpServers": {
    "sbtools": {
      "command": "npx",
      "args": ["@sbtools/mcp-server", "--cwd", "/path/to/your/project"]
    }
  }
}

Tools Exposed

All 20 Migration Studio tools are registered as MCP tools:

| Tool | What it does | |------|-------------| | studio-introspect | Introspect live DB schema → studio.schema.snapshot | | studio-sql-parse | Parse migration files → SQL AST artifact | | studio-intent-sync | Score confidence per entity (DB vs migrations) | | studio-intent-init | Build intent graph from sync report | | studio-greenfield-init | Initialize empty intent graph for a new project | | studio-intent-patch | Reclassify an entity (managed / assisted / excluded) | | studio-endpoint-map | Derive PostgREST endpoints from the intent graph | | studio-create-table | Generate CREATE TABLE migration | | studio-add-column | Generate ADD COLUMN migration | | studio-add-rls-policy | Generate CREATE POLICY migration | | studio-add-index | Generate CREATE INDEX migration | | studio-add-constraint | Generate ADD CONSTRAINT migration | | studio-add-function | Generate CREATE OR REPLACE FUNCTION migration | | studio-create-rpc | Generate public-schema RPC function migration | | studio-create-view | Generate CREATE OR REPLACE VIEW migration | | studio-rls-check | Audit RLS coverage across managed entities | | studio-rpc-lint | Audit function security (search_path, definer exposure) | | studio-lint | Lint migration files (destructive ops, naming, lock safety) | | studio-migration-plan | Diff intent graph vs snapshot → ordered change plan | | studio-release-gate | Aggregate all validation findings → pass/fail gate |

Resources Exposed

| URI | Description | |-----|-------------| | sbtools://studio/catalog | Full tool and workflow catalog (JSON) | | sbtools://studio/intent-graph | Current intent graph artifact (JSON) | | sbtools://studio/llm-context | One-call orientation summary: intent graph stats, gate status, migration count, catalog |

Prerequisites

  • Node.js 18+
  • A project with supabase-tools.config.json (or defaults apply)
  • For DB-aware tools (studio-introspect, scaffold tools): a running Supabase/Postgres instance reachable at the configured api.url