About FatalGuard
FatalGuard is a WordPress plugin for viewing PHP logs, capturing fatal errors, and sending Telegram alerts. Its read-only MCP server lets AI clients inspect site errors without changing the site.
Key features
- 01View debug.log and PHP error logs
- 02Capture recent fatal errors
- 03Send Telegram alerts with recovery links
- 04Read errors through read-only MCP tools
Use cases
- 01Inspect recurring warnings in WordPress
- 02Diagnose a critical-error screen
- 03Review recent fatal errors with an AI client
MCP support
Runs a read-only MCP server in WordPress, exposing tools for logging status, log sources, redacted log tails, grouped errors, and fatal error details.
Configuration
Remote servers need no local install. Pick your client, then copy the config or install in one click.
https://{site}/wp-json/fatalguard/v1/mcpclaude mcp add --transport http zinoodev85-fatalguard https://{site}/wp-json/fatalguard/v1/mcp{"mcpServers":{"zinoodev85-fatalguard":{"type":"http","url":"https://{site}/wp-json/fatalguard/v1/mcp"}}}Open in Cursor{"servers":{"zinoodev85-fatalguard":{"type":"http","url":"https://{site}/wp-json/fatalguard/v1/mcp"}}}Open in VS Code{"mcpServers":{"zinoodev85-fatalguard":{"type":"http","url":"https://{site}/wp-json/fatalguard/v1/mcp"}}}{"mcpServers":{"zinoodev85-fatalguard":{"serverUrl":"https://{site}/wp-json/fatalguard/v1/mcp"}}}Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.
https://{site}/wp-json/fatalguard/v1/mcpAuth requiredTools
Details
From the project READMEFatalGuard — PHP error log viewer, fatal error alerts and MCP server for WordPress
FatalGuard is a WordPress plugin. It shows your debug.log and PHP error log in wp-admin,
catches the fatal error behind the "critical error" white screen, sends Telegram alerts with
a one-tap recovery link, and runs its own read-only MCP server, so Claude, Cursor or
VS Code can read your site's errors.
This repository is a read-only mirror of the free plugin, version 1.3.2. Development happens elsewhere; issues and questions go to the support forum.
Install
Install it from wordpress.org, so your site gets automatic updates:
- In wp-admin: Plugins → Add New, search for "FatalGuard", Install, Activate.
- Or download it from https://wordpress.org/plugins/fatalguard/.
A zip from this repository works too (Plugins → Add New → Upload Plugin). It uses the
same slug and has no Update URI header, so WordPress updates it from wordpress.org.
Connect an AI client (MCP)
- In wp-admin, open FatalGuard → AI (MCP) and press Generate API key. Copy the key: it is shown only once. The same page shows these snippets with your URL and key filled in.
- Add the server to your client. Replace
example.comwith your site and paste your key.
Endpoint: POST https://<your-site>/wp-json/fatalguard/v1/mcp (streamable HTTP).
The key goes in the X-FatalGuard-Key header. Some Apache hosts strip
Authorization: Bearer, so use this header.
Claude Code (run in your terminal)
claude mcp add --transport http fatalguard "https://example.com/wp-json/fatalguard/v1/mcp" --header "X-FatalGuard-Key: PASTE-YOUR-API-KEY-HERE"
Cursor — mcp.json
{
"mcpServers": {
"fatalguard": {
"type": "http",
"url": "https://example.com/wp-json/fatalguard/v1/mcp",
"headers": {
"X-FatalGuard-Key": "PASTE-YOUR-API-KEY-HERE"
}
}
}
}
VS Code — .vscode/mcp.json
{
"servers": {
"fatalguard": {
"type": "http",
"url": "https://example.com/wp-json/fatalguard/v1/mcp",
"headers": {
"X-FatalGuard-Key": "PASTE-YOUR-API-KEY-HERE"
}
}
}
}
Claude Desktop — claude_desktop_config.json (via mcp-remote)
{
"mcpServers": {
"fatalguard": {
"command": "npx",
"args": [
"mcp-remote",
"https://example.com/wp-json/fatalguard/v1/mcp",
"--header",
"X-FatalGuard-Key: PASTE-YOUR-API-KEY-HERE"
]
}
}
}
Then ask: "What's crashing my site?" or "Which warnings keep coming back?"
Tools
All six are read-only. The AI cannot change anything on your site.
| Tool | What it returns |
|---|---|
status | Logging status and FatalGuard settings |
list_log_sources | The logs FatalGuard can read, with size |
tail_log | The newest lines of one log, secrets redacted |
list_errors | Errors grouped with counts and last seen |
list_recent_fatals | Recently captured fatal errors |
get_fatal | One fatal error in detail |
The server works while WordPress can still load. For a site that is fully down, use the recovery link from the fatal alert. Revoke the key at any time on the same page.
Try it without a site (Docker)
The repository builds a sandbox: a throwaway WordPress (SQLite, no web server) with FatalGuard active and some demo errors, speaking MCP over stdio.
docker build -t fatalguard-mcp . && docker run -i --rm fatalguard-mcp
It is a demo to see the tools and their answers. Real use is the plugin on your own site, connected as shown above.
License
GPLv2 or later. See LICENSE.txt.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.