Skip to main content

n8n-guard

io.github.flow-84/n8n-guard

v0.1.0Updated Nov 12, 2026stdio · npm

Read-only health checks for self-hosted n8n: datastore growth, stuck runs, retention, git drift.

Install

Nothing to fill in: copy and run.

Run in your terminal

claude mcp add n8n-guard -- npx -y [email protected]

Configuration

9 settings.

  • N8N_API_KEY
    Env var· optional· secret
    n8n Public API key. Required for the execution and workflow checks.
  • N8N_POSTGRES_URL
    Env var· optional· secret
    Postgres connection string. Takes precedence over N8N_SQLITE_PATH.
  • N8N_URL
    Env var· optional
    Base URL of the n8n instance. Defaults to http://localhost:5678.
  • N8N_SQLITE_PATH
    Env var· optional
    Path to the n8n database.sqlite file. Required for datastore checks on SQLite.
  • N8N_GIT_REPO_PATH
    Env var· optional
    Checkout holding exported workflow JSON. Required for the git drift check.
  • N8N_GUARD_STUCK_MINUTES
    Env var· optional
    Minutes a run may stay in `running` before it counts as stuck. Defaults to 15.
Show 3 more
  • N8N_GUARD_DB_WARN_BYTES
    Env var· optional
    Datastore warning threshold in bytes. Defaults to 1073741824 (1 GB).
  • N8N_GUARD_DB_CRITICAL_BYTES
    Env var· optional
    Datastore critical threshold in bytes. Defaults to 4294967296 (4 GB).
  • N8N_GUARD_TIMEOUT_MS
    Env var· optional
    Per-request API timeout in milliseconds. Defaults to 15000.

Listed in the official MCP Registry since Nov 12, 2026. Mirrored daily; last checked Nov 26, 2026.