Butterbase
AI-native, open-source backend-as-a-service with a built-in Model Context Protocol (MCP) server. Postgres data plane, auth, storage, serverless functions, AI gateway, RAG, realtime, and durable objects — all drivable by an AI agent via MCP tools.
This repo ships the open-source runtime. The managed offering at butterbase.ai adds multi-region orchestration, billing, and ops.
What the MCP server can do
40+ tools across the platform's surface area, including:
- Apps & regions —
init_app, manage_app (actions: list/delete/pause/get_config/update_access_mode/secure/update_cors/set_visibility/preview_clone_env_vars/clone/get_clone_job/find_templates/set_clone_webhook/link_substrate/unlink_substrate/move/move_status/teardown_source_replica), list_regions
- Schema —
manage_schema (declarative DSL, dry-run diffs), manage_migrations
- Auth —
manage_auth_config, manage_auth_users, manage_oauth
- Data —
select_rows, insert_row, seed_database
- Functions —
deploy_function, invoke_function, manage_function
- Storage —
manage_storage (presigned URLs, ACLs)
- Frontends —
create_frontend_deployment, manage_frontend, manage_edge_ssr
- RAG —
manage_rag_content, rag_query
- Realtime & Durable Objects —
manage_realtime, manage_durable_objects
- AI gateway —
manage_ai (chat, embeddings, BYOK)
- Row-Level Security —
manage_rls
- Integrations —
manage_integrations (Composio: email, Slack, GitHub, Notion, Linear, CRM)
- Billing —
manage_billing (Stripe Connect)
- KV, API keys, audit logs, and more
Install
Option 1 — Claude Code plugin (recommended)
claude plugin marketplace add https://github.com/butterbase-ai/butterbase-skills
claude plugin install butterbase
Plugin includes 30+ guided skills (/butterbase-skills:journey, /butterbase-skills:build-app, …) and auto-configures the MCP server.
Option 2 — Hosted MCP (any client)
Add to your MCP config:
{
"mcpServers": {
"butterbase": {
"url": "https://api.butterbase.ai/mcp",
"headers": {
"Authorization": "Bearer ${BUTTERBASE_API_KEY}"
}
}
}
}
Option 3 — Local stdio MCP
npx @butterbase/mcp
Or wire it up in your MCP config:
{
"mcpServers": {
"butterbase": {
"command": "npx",
"args": ["-y", "@butterbase/mcp"],
"env": { "BUTTERBASE_API_KEY": "bb_sk_..." }
}
}
}
Option 4 — Self-host the whole stack
See the Quickstart in README.md. Requires Docker + Node 22+.
Get an API key
Sign up at butterbase.ai and generate a key, or self-host and use the CLI:
butterbase keys generate
Keys are prefixed bb_sk_….
Supported AI assistants
Any MCP-capable client works. Tested with: Claude Code, Claude Desktop, Cursor, Windsurf, Codex CLI.
Related
License
Apache-2.0
Source: butterbase-ai/butterbase-oss — distributed by TomeVault.
1---2name: butterbase3description: AI-native, open-source backend-as-a-service with a built-in Model Context Protocol server. Postgres, auth, storage, functions, AI gateway. Use when this capability is needed.4---56# Butterbase78**AI-native, open-source backend-as-a-service** with a built-in Model Context Protocol (MCP) server. Postgres data plane, auth, storage, serverless functions, AI gateway, RAG, realtime, and durable objects — all drivable by an AI agent via MCP tools.910This repo ships the open-source runtime. The managed offering at [butterbase.ai](https://butterbase.ai) adds multi-region orchestration, billing, and ops.1112## What the MCP server can do131440+ tools across the platform's surface area, including:1516- **Apps & regions** — `init_app`, `manage_app` (actions: list/delete/pause/get_config/update_access_mode/secure/update_cors/set_visibility/preview_clone_env_vars/clone/get_clone_job/find_templates/set_clone_webhook/link_substrate/unlink_substrate/move/move_status/teardown_source_replica), `list_regions`17- **Schema** — `manage_schema` (declarative DSL, dry-run diffs), `manage_migrations`18- **Auth** — `manage_auth_config`, `manage_auth_users`, `manage_oauth`19- **Data** — `select_rows`, `insert_row`, `seed_database`20- **Functions** — `deploy_function`, `invoke_function`, `manage_function`21- **Storage** — `manage_storage` (presigned URLs, ACLs)22- **Frontends** — `create_frontend_deployment`, `manage_frontend`, `manage_edge_ssr`23- **RAG** — `manage_rag_content`, `rag_query`24- **Realtime & Durable Objects** — `manage_realtime`, `manage_durable_objects`25- **AI gateway** — `manage_ai` (chat, embeddings, BYOK)26- **Row-Level Security** — `manage_rls`27- **Integrations** — `manage_integrations` (Composio: email, Slack, GitHub, Notion, Linear, CRM)28- **Billing** — `manage_billing` (Stripe Connect)29- **KV, API keys, audit logs**, and more3031## Install3233### Option 1 — Claude Code plugin (recommended)3435```bash36claude plugin marketplace add https://github.com/butterbase-ai/butterbase-skills37claude plugin install butterbase38```3940Plugin includes 30+ guided skills (`/butterbase-skills:journey`, `/butterbase-skills:build-app`, …) and auto-configures the MCP server.4142### Option 2 — Hosted MCP (any client)4344Add to your MCP config:4546```json47{48 "mcpServers": {49 "butterbase": {50 "url": "https://api.butterbase.ai/mcp",51 "headers": {52 "Authorization": "Bearer ${BUTTERBASE_API_KEY}"53 }54 }55 }56}57```5859### Option 3 — Local stdio MCP6061```bash62npx @butterbase/mcp63```6465Or wire it up in your MCP config:6667```json68{69 "mcpServers": {70 "butterbase": {71 "command": "npx",72 "args": ["-y", "@butterbase/mcp"],73 "env": { "BUTTERBASE_API_KEY": "bb_sk_..." }74 }75 }76}77```7879### Option 4 — Self-host the whole stack8081See the [Quickstart](./README.md#quickstart-self-host) in `README.md`. Requires Docker + Node 22+.8283## Get an API key8485Sign up at [butterbase.ai](https://butterbase.ai) and generate a key, or self-host and use the CLI:8687```bash88butterbase keys generate89```9091Keys are prefixed `bb_sk_…`.9293## Supported AI assistants9495Any MCP-capable client works. Tested with: **Claude Code**, **Claude Desktop**, **Cursor**, **Windsurf**, **Codex CLI**.9697## Related9899- **[@butterbase/mcp](https://www.npmjs.com/package/@butterbase/mcp)** — stdio MCP server (this repo, installable from npm)100- **[butterbase-skills](https://github.com/butterbase-ai/butterbase-skills)** — Claude Code plugin with 30+ guided skills101- **[@butterbase/sdk](https://www.npmjs.com/package/@butterbase/sdk)** — TypeScript SDK102- **[@butterbase/cli](https://www.npmjs.com/package/@butterbase/cli)** — local dev / scaffolding CLI103104## License105106Apache-2.0107108---109> Source: [butterbase-ai/butterbase-oss](https://github.com/butterbase-ai/butterbase-oss) — distributed by [TomeVault](https://tomevault.io).110<!-- tomevault:4.0:skill_md:2026-07-04 -->