MCP Server
Blaze includes a built-in MCP (Model Context Protocol) server so any MCP-capable AI assistant — Claude Desktop, Claude Code, Cursor, Codex, and others — can manage your Blaze sites conversationally. List sites, tail logs, run WP-CLI, create and delete sites, all through natural language in your editor.
The MCP server is free for all users. It runs locally and talks to the Blaze app over the same Unix socket the CLI uses — nothing leaves your machine.
Installing into a Client
Section titled “Installing into a Client”- Open Settings → MCP Server
- Find your client in the list — each row shows one of:
- Installed — Blaze is already configured in that client
- Not installed — click Install to add it
- Client not detected — the client isn’t installed on this Mac
- Click Install next to the client you want
- Restart the client so it picks up the new MCP server
Supported clients:
- Claude Desktop
- Claude Code
- Cursor
- Codex
- Antigravity
- OpenCode
- Copilot (VS Code)
Click Remove to strip Blaze from a client’s config. Installs and removes are atomic — your other MCP servers in the same config file are left untouched.
Manual Install
Section titled “Manual Install”If your MCP client isn’t in the one-click list (Zed, Continue, Cline, etc.) or you want to use a project-scoped config instead of the global one, add Blaze manually.
Point any MCP client at the bundled blaze-mcp binary:
/Applications/Blaze.app/Contents/Resources/bin/blaze-mcpIt communicates over stdio and takes no arguments.
JSON config (most clients)
Section titled “JSON config (most clients)”Most clients use a mcpServers block in a JSON config file. Add this entry:
{ "mcpServers": { "blaze": { "command": "/Applications/Blaze.app/Contents/Resources/bin/blaze-mcp", "args": [] } }}TOML config (Codex and similar)
Section titled “TOML config (Codex and similar)”Clients that use TOML config files expect the same settings in TOML form:
[mcp_servers.blaze]command = "/Applications/Blaze.app/Contents/Resources/bin/blaze-mcp"args = []Project-scoped config
Section titled “Project-scoped config”Some clients (Cursor, Claude Code) support a per-project MCP config that overrides or supplements the global one. Drop the JSON snippet above into one of:
- Cursor:
<project>/.cursor/mcp.json - Claude Code:
<project>/.mcp.json(at the project root, under themcpServerskey)
Project-scoped configs are useful when Blaze is only relevant for one repo.
Requirements
Section titled “Requirements”- Blaze.app must be running when the client calls a tool. The MCP server exits cleanly if it can’t reach the Blaze Unix socket.
- No additional environment variables or authentication — the socket’s filesystem permissions (
0600, user-scoped) are the only auth layer.
Using It
Section titled “Using It”Once installed, just ask your assistant. Examples:
- “List my Blaze sites.”
- “Show the last 50 lines of the error log for myblog.”
- “Install WooCommerce on myblog.”
- “Create a new site called
demoon PHP 8.3.” - “Switch myblog to PHP 8.2.”
The assistant picks the right tool automatically. The Blaze app must be running — if it isn’t, the tool returns a clear “Blaze app is not running” message.
Available Tools
Section titled “Available Tools”Inspection (read-only)
Section titled “Inspection (read-only)”| Tool | What it does |
|---|---|
list_sites | All sites with name, URL, PHP version, status |
get_site_info | Full metadata for one site |
get_logs | Last N lines of a site’s error/access/PHP log |
list_php_versions | Installed PHP versions and the default |
get_server_status | Blaze Nginx/MariaDB status, ports, uptime |
get_tunnel_status | Tunnel state for any exposed sites |
WP-CLI
Section titled “WP-CLI”| Tool | What it does |
|---|---|
wp_cli | Safe read-only WP-CLI subcommands (plugin list, option get, user list, core version, etc.) |
wp_cli_admin | Any other WP-CLI command (db *, search-replace, plugin delete, core update, etc.) — gated by confirmation |
Lifecycle
Section titled “Lifecycle”| Tool | What it does |
|---|---|
create_site | Create a new site with optional PHP version and domain |
start_site / stop_site | Start or stop a site |
delete_site | Delete a site — gated by confirmation |
change_php_version | Switch a site’s PHP-FPM pool to a different version |
Resources
Section titled “Resources”Clients that support MCP resources can also read:
blaze://sites— all sites as JSONblaze://sites/{name}/config— one site’s metadatablaze://sites/{name}/logs/error— recent error log snapshotblaze://sites/{name}/logs/access— recent access log snapshot
Safety
Section titled “Safety”Confirmation gate
Section titled “Confirmation gate”Destructive tools (wp_cli_admin and delete_site) require a second approval pass by default:
- The assistant invokes the tool
- Blaze returns
confirmation_requiredwith a description of what will happen - Your assistant shows this to you and waits
- You tell it to proceed — the assistant re-invokes with
confirmed: true - Blaze executes
Toggle this in Settings → MCP Server → Require confirmation for destructive operations. The default is on, and we recommend keeping it on — your MCP client’s own approval dialog runs on top of this as a separate layer.
Allowlist for wp_cli
Section titled “Allowlist for wp_cli”The wp_cli tool only accepts a curated list of safe subcommands. Anything else returns an error telling the assistant to use wp_cli_admin instead, which then goes through the confirmation gate. This keeps routine reads fast and write operations deliberate.
Troubleshooting
Section titled “Troubleshooting””Blaze app is not running”
Section titled “”Blaze app is not running””Open Blaze.app. The MCP server needs the app running to answer any tool call.
Client shows “Not installed” after clicking Install
Section titled “Client shows “Not installed” after clicking Install”Most clients only read their config at startup. Fully quit and reopen the client — not just close the window.
”Client not detected”
Section titled “”Client not detected””The client isn’t installed, or its config directory doesn’t exist yet. Open the client once so it creates its config, then come back to the MCP Server tab and install.
Destructive command ran without asking
Section titled “Destructive command ran without asking”Check Settings → MCP Server → Require confirmation for destructive operations. If it’s off, Blaze executes immediately. Turn it back on.