Butterbase MCP
Lets your AI agent manage a backend: Postgres schemas, auth, functions, storage, RAG and deploys.
3.0k stars on GitHubby ButterbaseLicense Apache-2.0Updated 18 days ago
How to install
This MCP has two ways to run: local or remote.
Pick one below. Local runs on your computer; remote runs in the cloud and needs nothing installed.
Paste in the terminal:
claude mcp add butterbase-ai -e BUTTERBASE_API_KEY="<your value>" -- npx -y @butterbase/mcp
What to fill in
| Name | What it is | Required |
|---|---|---|
BUTTERBASE_API_KEY | Butterbase API key (bb_sk_...). Create one at https://butterbase.ai. | Yes |
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Create a table for customers with row-level security.
Deploy a serverless function that sends a welcome email.
What it is
Butterbase is an open-source backend-as-a-service, and its MCP server lets agents operate it with tools. Each app gets its own Postgres database with auth, file storage, serverless functions, realtime, an AI gateway and RAG. You can self-host it with Docker or use the managed cloud at butterbase.ai.
What it can do
- Postgres schema and migrations with row-level security
- Auth: email and OAuth, JWT settings and service keys
- Serverless functions on Deno
- File storage with presigned URLs
- AI gateway and RAG collections
- Realtime subscriptions and key-value store
- Frontend deploys and custom domains
When to use
- βΊWhen you want an agent to set up a backend for a new app.
- βΊWhen you need a database, auth and storage without writing glue code.
- βΊWhen you want to self-host a backend and let agents run it.
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
convexHelps your agent build a backend on Convex, a platform that combines the database, server functions, scheduling, file storage, sign-in and live updates.nextjs-supabase-authHelps your agent integrate Supabase authentication with Next.js App Router. It ensures a secure and efficient connection between services.langbot-deployHelps your agent deploy and configure a self-hosted LangBot instance with Docker, Compose or Kubernetes, including its model and API key settings.Frequently asked questions
Is it free and open source?
Yes. It is Apache 2.0 licensed and self-hostable. The managed cloud has a free tier to start.
Do I need an account?
For the managed cloud, yes. You can self-host with Docker instead.
How do I connect an agent?
Use the MCP endpoint at /mcp over HTTP, or the stdio package @butterbase/mcp.
What database does it use?
Real Postgres, with one database per app.
Is there a Claude Code plugin?
Yes. The readme mentions a plugin with 39 skills and 34 slash commands.
What are the self-host limits?
Self-hosting runs the AI gateway without upstream router adapters, uses a no-op billing provider and has unlimited quotas.
If it does not work
- βΊWhen self-hosting, run the database migrations and seed the dev user before using the API.
- βΊClone with --recurse-submodules or run git submodule update --init --recursive.
- βΊCheck that control-api is healthy at /health/ready.
5 new skills a week. 1 minute to read.