AI agents (MCP)
Burrow has a built-in MCP server, so your AI coding agent can look at your local sites itself: their logs, captured dump() output, recent requests and health checks. With your permission, it can also restart services, run Artisan and toggle Xdebug.
Add Burrow to your AI client#
Open Settings → AI agents in the app, pick your client and press Copy. Or run burrow mcp config to print every setup.
Claude Code#
claude mcp add burrow -- burrow mcp
Cursor#
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"burrow": { "command": "burrow", "args": ["mcp"] }
}
}
VS Code#
Add to .vscode/mcp.json in your project:
{
"servers": {
"burrow": { "command": "burrow", "args": ["mcp"] }
}
}
Zed#
Add to Zed's settings.json:
{
"context_servers": {
"burrow": { "command": { "path": "burrow", "args": ["mcp"] } }
}
}
Start your agent inside a project folder and it works on that site by default. You can still ask about any other site by name.
What agents can do#
Agents can always read:
| Tool | What it gives the agent |
|---|---|
status |
Burrow's version, ports, PHP and Node versions, services and sites |
list_sites, site_info |
URLs, folders, PHP and Laravel versions, aliases, Xdebug, PHP settings, workers |
site_logs |
The end of storage/logs/laravel.log (200 lines, up to 1000) |
site_requests |
Recent requests with status and time, plus the slowest ones |
site_dumps |
Captured dump() / dd() output (when dump capture is on) |
worker_log |
Queue, scheduler, Vite, Reverb or Horizon log |
site_health, doctor |
Health checks with the fixes Burrow offers |
list_services, list_databases |
Services, ports, .env settings and the databases on a running server |
job_status |
The state and output of a longer job, such as an Artisan command still running |
To let agents make changes, tick Let agents make changes in Settings → AI agents, or run burrow mcp allow --changes true. These tools then appear:
| Tool | What it does |
|---|---|
service_control |
Start, stop or restart a service |
php_restart |
Restart a PHP version (the site's, by default) |
site_health_fix |
Apply one fix that site_health offers |
artisan |
Run an Artisan command and wait up to 2 minutes for the output |
xdebug |
Turn Xdebug on or off for a site |
worker |
Start, stop or restart the queue, scheduler, Vite, Reverb or Horizon |
snapshot_create |
Take a database snapshot (never removes one) |
Artisan commands that wipe or rewrite data need a second switch, Also allow Artisan commands that wipe or rewrite data (or burrow mcp allow --destructive true). These are migrate:fresh, migrate:refresh, migrate:reset, migrate:rollback, db:wipe, db:seed, schema:dump, queue:flush, queue:clear, key:generate, and any command with --force or --seed. Before running one, Burrow snapshots the site's MySQL, MariaDB or PostgreSQL database from its .env (see automatic snapshots), so you can undo it. If that snapshot fails, the command doesn't run. You can turn this snapshot off, or skip large databases, in Settings → Backups.
Run burrow mcp allow without flags to see the current permissions. They are saved in burrow.toml as allow_changes and allow_destructive under [agents]; both are off by default.
Agents can never unlink sites, restore or delete snapshots, uninstall anything, or share a site publicly.
Check it works#
npx @modelcontextprotocol/inspector burrow mcp
The MCP Inspector lists Burrow's tools and lets you call them.