n8n-guard MCP
A read-only MCP server for monitoring self-hosted n8n instances. It checks datastore growth and retention costs, identifies stuck executions by comparing against workflow medians, and detects configuration drift by diffing the live instance against a git repository of exported workflows.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Check datastore size and growth rate
- Identify stuck workflow executions
- Calculate retention storage costs
- Detect git drift in workflow exports
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
n8n-guard 0.1.0
{
"version": "0.1.0",
"transport": "stdio",
"identifier": "n8n-guard",
"registryType": "npm",
"registryBaseUrl": "https://registry.npmjs.org",
"environmentVariables": [
{
"name": "N8N_URL",
"description": "Base URL of the n8n instance. Defaults to http://localhost:5678."
},
{
"name": "N8N_API_KEY",
"description": "n8n Public API key. Required for the execution and workflow checks."
},
{
"name": "N8N_SQLITE_PATH",
"format": "filepath",
"description": "Path to the n8n database.sqlite file. Required for datastore checks on SQLite."
},
{
"name": "N8N_POSTGRES_URL",
"description": "Postgres connection string. Takes precedence over N8N_SQLITE_PATH."
},
{
"name": "N8N_GIT_REPO_PATH",
"format": "filepath",
"description": "Checkout holding exported workflow JSON. Required for the git drift check."
},
{
"name": "N8N_GUARD_STUCK_MINUTES",
"description": "Minutes a run may stay in `running` before it counts as stuck. Defaults to 15."
},
{
"name": "N8N_GUARD_DB_WARN_BYTES",
"description": "Datastore warning threshold in bytes. Defaults to 1073741824 (1 GB)."
},
{
"name": "N8N_GUARD_DB_CRITICAL_BYTES",
"description": "Datastore critical threshold in bytes. Defaults to 4294967296 (4 GB)."
},
{
"name": "N8N_GUARD_TIMEOUT_MS",
"description": "Per-request API timeout in milliseconds. Defaults to 15000."
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"n8n-guard-mcp": {
"command": "npx",
"args": [
"-y",
"n8n-guard@0.1.0"
],
"env": {
"N8N_URL": "<YOUR_N8N_URL>",
"N8N_API_KEY": "<YOUR_N8N_API_KEY>",
"N8N_SQLITE_PATH": "<YOUR_N8N_SQLITE_PATH>",
"N8N_POSTGRES_URL": "<YOUR_N8N_POSTGRES_URL>",
"N8N_GIT_REPO_PATH": "<YOUR_N8N_GIT_REPO_PATH>",
"N8N_GUARD_STUCK_MINUTES": "<YOUR_N8N_GUARD_STUCK_MINUTES>",
"N8N_GUARD_DB_WARN_BYTES": "<YOUR_N8N_GUARD_DB_WARN_BYTES>",
"N8N_GUARD_DB_CRITICAL_BYTES": "<YOUR_N8N_GUARD_DB_CRITICAL_BYTES>",
"N8N_GUARD_TIMEOUT_MS": "<YOUR_N8N_GUARD_TIMEOUT_MS>"
}
}
}
}Cline
{
"mcpServers": {
"n8n-guard-mcp": {
"command": "npx",
"args": [
"-y",
"n8n-guard@0.1.0"
],
"env": {
"N8N_URL": "<YOUR_N8N_URL>",
"N8N_API_KEY": "<YOUR_N8N_API_KEY>",
"N8N_SQLITE_PATH": "<YOUR_N8N_SQLITE_PATH>",
"N8N_POSTGRES_URL": "<YOUR_N8N_POSTGRES_URL>",
"N8N_GIT_REPO_PATH": "<YOUR_N8N_GIT_REPO_PATH>",
"N8N_GUARD_STUCK_MINUTES": "<YOUR_N8N_GUARD_STUCK_MINUTES>",
"N8N_GUARD_DB_WARN_BYTES": "<YOUR_N8N_GUARD_DB_WARN_BYTES>",
"N8N_GUARD_DB_CRITICAL_BYTES": "<YOUR_N8N_GUARD_DB_CRITICAL_BYTES>",
"N8N_GUARD_TIMEOUT_MS": "<YOUR_N8N_GUARD_TIMEOUT_MS>"
}
}
}
}VS Code
{
"servers": {
"n8n-guard-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"n8n-guard@0.1.0"
],
"env": {
"N8N_URL": "<YOUR_N8N_URL>",
"N8N_API_KEY": "<YOUR_N8N_API_KEY>",
"N8N_SQLITE_PATH": "<YOUR_N8N_SQLITE_PATH>",
"N8N_POSTGRES_URL": "<YOUR_N8N_POSTGRES_URL>",
"N8N_GIT_REPO_PATH": "<YOUR_N8N_GIT_REPO_PATH>",
"N8N_GUARD_STUCK_MINUTES": "<YOUR_N8N_GUARD_STUCK_MINUTES>",
"N8N_GUARD_DB_WARN_BYTES": "<YOUR_N8N_GUARD_DB_WARN_BYTES>",
"N8N_GUARD_DB_CRITICAL_BYTES": "<YOUR_N8N_GUARD_DB_CRITICAL_BYTES>",
"N8N_GUARD_TIMEOUT_MS": "<YOUR_N8N_GUARD_TIMEOUT_MS>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"n8n-guard-mcp": {
"command": "npx",
"args": [
"-y",
"n8n-guard@0.1.0"
],
"env": {
"N8N_URL": "<YOUR_N8N_URL>",
"N8N_API_KEY": "<YOUR_N8N_API_KEY>",
"N8N_SQLITE_PATH": "<YOUR_N8N_SQLITE_PATH>",
"N8N_POSTGRES_URL": "<YOUR_N8N_POSTGRES_URL>",
"N8N_GIT_REPO_PATH": "<YOUR_N8N_GIT_REPO_PATH>",
"N8N_GUARD_STUCK_MINUTES": "<YOUR_N8N_GUARD_STUCK_MINUTES>",
"N8N_GUARD_DB_WARN_BYTES": "<YOUR_N8N_GUARD_DB_WARN_BYTES>",
"N8N_GUARD_DB_CRITICAL_BYTES": "<YOUR_N8N_GUARD_DB_CRITICAL_BYTES>",
"N8N_GUARD_TIMEOUT_MS": "<YOUR_N8N_GUARD_TIMEOUT_MS>"
}
}
}
}Let your agent find its tools
Find servers like n8n-guard MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.