Skip to content

Claude Code Plugin

The @butterbase/plugin is a Claude Code plugin that auto-configures the Butterbase MCP server and provides guided skills for common workflows.

Terminal window
# Add the Butterbase marketplace
claude plugin marketplace add https://github.com/NetGPT-Inc/butterbase-plugin
# Install the plugin
claude plugin install butterbase

Set your API key:

Terminal window
export BUTTERBASE_API_KEY=bb_sk_your_key_here

The plugin includes a .mcp.json that automatically configures the Butterbase MCP server connection. All 42+ MCP tools are available immediately — no manual configuration needed.

The plugin provides Claude with always-on context about Butterbase:

  • Environment variables (BUTTERBASE_API_KEY, VITE_API_URL, etc.)
  • Core workflow (init → schema → RLS → auth → deploy)
  • Important patterns (storage objectId, function Response objects, RLS roles)
  • Documentation reference (all butterbase_docs topics)

6 guided skills for common Butterbase workflows:

SkillSlash commandDescription
Build App/butterbase:build-appEnd-to-end guide: create app, design schema, set up RLS, configure auth, deploy functions, deploy frontend
Schema Design/butterbase:schemaDatabase schema DSL reference with column types, indexes, and 4 complete data model patterns
Deploy Frontend/butterbase:deploy7-step deployment workflow for React, Next.js, and static HTML frontends
Debug RLS/butterbase:debug-rlsSystematic Row-Level Security debugging with role simulation
Function Dev/butterbase:functionServerless function development with handler signatures, triggers, and working examples
Contributing/butterbase:contributingContributor guide for the Butterbase monorepo

If you only need the MCP connection (without skills), use the CLI:

Terminal window
butterbase plugin setup

Or during project initialization:

Terminal window
butterbase init react-vite

Both generate a .mcp.json file that configures the MCP server connection.

When running the Butterbase monorepo locally, the MCP server URL defaults to http://localhost:4000/mcp. Set this in your environment:

Terminal window
export CONTROL_API_URL=http://localhost:4000

Load the plugin from a local directory for development:

Terminal window
claude --plugin-dir /path/to/butterbase-plugin