Read-only health checks for self-hosted n8n: datastore growth, stuck runs, retention, git drift.
Maintain this server? Claim it
This server only runs locally, from a package. Install it with the instructions on this page to try it.
Pick your client. Values in capitals, like YOUR_TOKEN, are yours to fill in.
Run in a terminal
claude mcp add n8n-guard \ -- npx -y [email protected]
Environment
N8N_URL (optional, not in the config above): Base URL of the n8n instance. Defaults to http://localhost:5678.N8N_API_KEY (optional, not in the config above): n8n Public API key. Required for the execution and workflow checks.N8N_SQLITE_PATH (optional, not in the config above): Path to the n8n database.sqlite file. Required for datastore checks on SQLite.N8N_POSTGRES_URL (optional, not in the config above): Postgres connection string. Takes precedence over N8N_SQLITE_PATH.N8N_GIT_REPO_PATH (optional, not in the config above): Checkout holding exported workflow JSON. Required for the git drift check.N8N_GUARD_STUCK_MINUTES (optional, not in the config above): Minutes a run may stay in `running` before it counts as stuck. Defaults to 15.N8N_GUARD_DB_WARN_BYTES (optional, not in the config above): Datastore warning threshold in bytes. Defaults to 1073741824 (1 GB).N8N_GUARD_DB_CRITICAL_BYTES (optional, not in the config above): Datastore critical threshold in bytes. Defaults to 4294967296 (4 GB).N8N_GUARD_TIMEOUT_MS (optional, not in the config above): Per-request API timeout in milliseconds. Defaults to 15000.We don't run packages, so we can't list this server's tools.