MCP directory
N

n8n-guard

by github.com/flow-84 · v0.1.0 · updated Nov 12, 2026

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

npm

Run it locally

Install the package and point your AI client at it.

Environment variables

  • N8N_URL

    Base URL of the n8n instance. Defaults to http://localhost:5678.

  • N8N_API_KEYsecret

    n8n Public API key. Required for the execution and workflow checks.

  • N8N_SQLITE_PATH

    Path to the n8n database.sqlite file. Required for datastore checks on SQLite.

  • N8N_POSTGRES_URLsecret

    Postgres connection string. Takes precedence over N8N_SQLITE_PATH.

  • N8N_GIT_REPO_PATH

    Checkout holding exported workflow JSON. Required for the git drift check.

  • N8N_GUARD_STUCK_MINUTES

    Minutes a run may stay in `running` before it counts as stuck. Defaults to 15.

  • N8N_GUARD_DB_WARN_BYTES

    Datastore warning threshold in bytes. Defaults to 1073741824 (1 GB).

  • N8N_GUARD_DB_CRITICAL_BYTES

    Datastore critical threshold in bytes. Defaults to 4294967296 (4 GB).

  • N8N_GUARD_TIMEOUT_MS

    Per-request API timeout in milliseconds. Defaults to 15000.

More MCP servers