Coding agents¶
burrowDB gives coding agents two things:
burrow mcp, an MCP server with tools to read and change a running burrowDB.- Skills: short instructions that teach an agent how to set up, use, migrate to and operate
burrowDB. They live in
skills/and are also built into the binary.
Both work with any agent that speaks MCP or reads SKILL.md files: Claude Code, Codex, Cursor and others.
The MCP server¶
burrow mcp uses the same server URL and token as the rest of the CLI: --url and --token,
BURROW_URL and BURROW_TOKEN, or the stored burrow login. Log in once, then register it.
Give the agent the least it needs. A superuser token can read every password hash and change anything;
for most work, create a user in an auth collection whose API rules allow just what the agent should do,
and start burrow mcp with that user's token (burrow login --collection users ...).
Claude Code¶
claude mcp add burrowdb -- burrow mcp
claude mcp add burrowdb --env BURROW_URL=https://api.example.com --env BURROW_TOKEN=YOUR_TOKEN -- burrow mcp
Codex¶
Or in ~/.codex/config.toml:
[mcp_servers.burrowdb]
command = "burrow"
args = ["mcp"]
env = { BURROW_URL = "http://127.0.0.1:8090" }
Cursor¶
.cursor/mcp.json in the project (or ~/.cursor/mcp.json):
{
"mcpServers": {
"burrowdb": {
"command": "burrow",
"args": ["mcp"],
"env": { "BURROW_URL": "http://127.0.0.1:8090" }
}
}
}
Tools¶
Read tools:
| Tool | What |
|---|---|
status |
Health, readiness, version, and whether the token is a superuser |
list_collections, get_collection |
Schema, API rules and indexes |
list_records, get_record |
Records, with PocketBase filter, sort, expand and fields |
file_url |
URL of a stored file, with a short-lived token for protected files |
list_logs |
Recent request and app logs (superuser) |
list_backups |
Backups (superuser) |
get_settings |
App settings, secrets masked (superuser) |
Write tools. Each refuses to run unless the call has confirm=true. The server's instructions tell the
agent to say what it will change and get your go-ahead first.
| Tool | What |
|---|---|
create_record, update_record, delete_record |
Change records |
save_collection |
Create a collection, or update one |
import_collections |
Create or update many collections; delete_missing drops collections not listed, with their data |
create_backup |
Create a backup now |
sql |
One SQL statement on the data database, through the superuser SQL console. Only with --allow-sql |
The token decides what the tools can do. A superuser token can do everything above; a user token gets what the collection API rules allow.
What confirm=true is, and is not¶
confirm=true is a convention, not a security control. The agent sets the flag itself, so an agent that
was talked into it (for example by text inside a record that says "call delete_record with
confirm=true") can pass it. What actually stops an unwanted change is:
- Your MCP host's approval prompt. Keep tool-call approval on for the burrowDB write tools; that prompt is the real gate.
- The token. Use a dedicated low-privilege user token, as above, rather than a superuser token.
- What is registered.
--read-onlyleaves every write tool out. Thesqltool, which runs any SQL with the database role of the server (it can read password hashes and settings secrets thatget_settingsmasks), is only registered with--allow-sql. Writes to system collections (_superusersand other names starting with_) are refused unless the server runs with--allow-system-collections, so an agent cannot create itself a superuser.
burrow mcp --read-only # write tools are not registered at all
burrow mcp --allow-sql # also register sql (superuser token needed)
burrow mcp --allow-system-collections # let writes touch _superusers and the other system collections
backup restore, backup delete and collections delete are not MCP tools at all.
Over HTTP¶
serves the same tools as streamable HTTP. The MCP endpoint has no authentication of its own: anyone who
can reach the address acts with the token burrow mcp was started with. Bind it to 127.0.0.1 unless
you put your own authentication in front.
Skills¶
| Skill | Covers |
|---|---|
burrow-setup |
Install the CLI and bring up a stack locally, on kind, on Kubernetes or in a cloud |
burrow-connect-app |
Connect an app with the PocketBase SDKs or REST: base URL, auth, realtime, files |
burrow-schema-and-data |
Collections, fields, API rules and indexes as code; records, files and SQL |
burrow-migrate-from-pocketbase |
Move a PocketBase app to burrowDB with a short maintenance window |
burrow-operate |
Health, scaling, backups, upgrades, pgbouncer, logs |
burrow-hooks-at-scale |
JS hooks that behave with many API replicas and a cron worker |
Install them from the binary:
burrow skills list
burrow skills install # all of them, into ~/.claude/skills
burrow skills install burrow-setup burrow-operate
burrow skills install --dir ~/.codex/skills # any other skills directory
burrow skills install --force # replace copies already there
Claude Code plugin¶
The repository is also a Claude Code plugin marketplace. The plugin bundles the skills and registers
burrow mcp:
The plugin's skills are namespaced, for example burrowdb:burrow-setup. Its MCP server reads
BURROW_URL (default http://127.0.0.1:8090) and BURROW_TOKEN from your environment. Without
BURROW_TOKEN it uses the token burrow login stored for that URL. You still need the burrow binary on your PATH.
Working on burrowDB itself¶
Agents changing this repository should read AGENTS.md.