Is the Laravel MCP server safe? What it can reach
What the Laravel MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.
Laravel Boost is Laravel’s official MCP server for local development. You add it as a dev dependency and it starts with php artisan boost:mcp, with no sign-in. It can read your app’s config, logs and database through a read-only query tool. Its tinker tool runs PHP in your app, and it is off unless you turn it on in the Boost config.
Who maintains it
| Implementation | Kind | Status |
|---|---|---|
| Laravel Boost (laravel/boost) | Official | active |
It runs as a local process on your machine.
How it signs in
There is no credential. The server runs inside your Laravel app as your user and uses the database connections your app’s config defines.
What its tools can do
| Kind | Tools |
|---|---|
| Read | application-info, browser-logs, database-connections, database-query, database-schema, get-absolute-url, last-error, read-log-entries, search-docs |
| Write | record-rule |
| Can’t be undone | tinker |
The docs name the tools in title case (Application Info, Database Query and so on). The kebab-case names are taken from the repository, where only database-query, database-schema, get-absolute-url, browser-logs, search-docs and tinker appear by name, so treat the rest as the same convention. tinker is in the repository but not in the docs page, and it registers only when boost.tinker_tool_enabled is true (default false). record-rule writes notes into .ai/rules and is on by default. database-query is read-only: the source runs it in a read-only transaction that is rolled back.
Built-in limits
| Option | What it does |
|---|---|
tinker_tool_enabled | The tinker tool registers only when boost.tinker_tool_enabled is true, and the default is false. |
BOOST_RULES_ENABLED | Set boost.rules.enabled (env BOOST_RULES_ENABLED) to false to drop the record-rule tool. |
BOOST_ENABLED | The master switch in config/boost.php turns off Boost’s routes and browser-log handling. |
BOOST_BROWSER_LOGS_WATCHER | Set to false to stop the browser logs watcher. |
Dev dependency | The docs install it with composer require laravel/boost --dev, so it stays out of production installs. |
The risks
- database-query can return any rows the default or named connection can read, including customer data, so point your local .env at a dev database.
- read-log-entries, last-error and browser-logs return log text that can hold user input, stack traces and tokens that steer or leak into the agent’s context.
- If tinker is enabled, an injected instruction could run any PHP in the app, which includes writing to the database.
- search-docs sends queries to Laravel’s hosted documentation API, so what the agent searches for leaves your machine.
Limit it in Claude Code
Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:
claude mcp add laravel-boost -- php artisan boost:mcpClaude Code names MCP tools mcp__laravel-boost__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:
{
"permissions": {
"deny": [
"mcp__laravel-boost__tinker"
],
"ask": [
"mcp__laravel-boost__record-rule"
]
}
}Limit it in Codex
Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:
[mcp_servers.laravel-boost]
command = "php"
args = ["artisan", "boost:mcp"]
disabled_tools = ["tinker"]Checklist
- Install it with --dev and keep your .env on a local or throwaway database.
- Leave boost.tinker_tool_enabled at false unless you need it.
- Skim logs for secrets before you let the agent read them.
- Set BOOST_RULES_ENABLED=false if you do not want the agent writing into .ai/rules.
Checked against the vendor documentation on November 25, 2026. Laravel Boost docs (13.x) · laravel/boost repository · laravel/boost config/boost.php
What Excellent covers
Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server
Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing