# n8n Reliability Auditor MCP (`pabloian92/mcp-n8n-reliability-auditor`) Actor

Deterministic MCP server auditing n8n workflow JSON for missing retries, webhooks without DLQ/idempotency, hardcoded secrets, infinite loops, and missing error triggers over Streamable HTTP (/mcp).

- **URL**: https://apify.com/pabloian92/mcp-n8n-reliability-auditor.md
- **Developed by:** [Pablo Ian Laurino](https://apify.com/pabloian92) (community)
- **Categories:** AI, Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $50.00 / 1,000 n8n workflow reliability audits

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## n8n Reliability Auditor MCP

Apify Standby MCP server that statically audits n8n workflow JSON for reliability risks. Returns structured findings, a 0–100 reliability score, and an ROI-based cross-sell recommendation for **Webhook DLQ Shield** ($99 Self-serve / $499 Done-For-You).

### Tools

| Tool | Input | Output | Event Price |
|------|-------|--------|-------------|
| `audit_n8n_workflow` | `workflowJson` (object or string), `auditMode?`, `includeRecommendations?` | Findings, reliability score, ROI recommendation | $0.05 |
| `apify-actor-start` | — | Actor initialization marker | $0.00005 |

### Audit Categories

| Category | Severity | Deduction | Description |
|----------|----------|-----------|-------------|
| `missing_retry` | medium | 15 | External-call nodes (HTTP, DB, webhook) without `retryOnFail` |
| `webhook_no_dlq` | high | 20 | Webhook triggers lacking DLQ or idempotency key |
| `hardcoded_secret` | critical | 25 | API keys, tokens, passwords embedded in parameters/credentials |
| `infinite_loop_risk` | critical | 30 | Self-referencing connections or cyclic graphs without conditional breaks |
| `missing_error_trigger` | high | 15 | No Error Trigger node for workflow-level error handling |

### Quick Start

```bash
## Local (Node.js 22+)
npm ci
npm test          # runs node --test
npm start         # starts on port 3000, GET /health, POST /mcp
```

**Environment variables** (local testing only):

- `ACTOR_TEST_PAY_PER_EVENT=true` — simulates `Actor.charge()` calls
- `ACTOR_WEB_SERVER_PORT=3000` — override listen port

### Deploy to Apify (Pay-Per-Event)

1. `apify login`
2. `apify push` from this directory — `.actor/actor.json` enables Standby mode at `/mcp`
3. In Apify Console → Actor → **Pricing** → set **Pay per event**
4. Verify event names and USD prices match `.actor/pay_per_event.json`
5. Set a per-run spending limit and test via Standby URL with your Apify token

**MCP client config after deploy:**

```json
{
  "mcpServers": {
    "n8n-reliability-auditor": {
      "url": "https://YOUR-ACTOR-ID.apify.actor/mcp",
      "headers": { "Authorization": "Bearer YOUR_APIFY_API_TOKEN" }
    }
  }
}
```

### Cross-Sell: Webhook DLQ Shield

When webhook reliability gaps are detected, the auditor recommends:

| Tier | Price | Deliverable |
|------|-------|-------------|
| **Self-serve Template** | **$99** | Pre-built n8n workflow template (JSON) with DLQ queue, idempotency keys, auto-replay logic, and setup guide |
| **Done-For-You Implementation** | **$499** | Custom deployment in your n8n instance (cloud/self-hosted), end-to-end testing, monitoring dashboard, 30-day support |

→ **Gumroad:** https://pablian.gumroad.com/l/dtczmd\
→ **GitHub (open-source core):** https://github.com/PabloIan92/webhook-dlq-shield

### Example MCP Call

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "audit_n8n_workflow",
    "arguments": {
      "workflowJson": {
        "name": "Stripe Webhook Handler",
        "nodes": [
          { "id": "1", "name": "Webhook", "type": "n8n-nodes-base.webhook", "parameters": { "path": "stripe" }, "settings": {} },
          { "id": "2", "name": "Process Payment", "type": "n8n-nodes-base.httpRequest", "parameters": { "url": "https://api.stripe.com/v1/charges" }, "settings": {} }
        ],
        "connections": { "1": { "main": [[{ "node": "2", "type": "main", "index": 0 }]] } }
      },
      "auditMode": "full",
      "includeRecommendations": true
    }
  }
}
```

### Output Structure

```json
{
  "workflowName": "Stripe Webhook Handler",
  "nodeCount": 2,
  "reliabilityScore": 45,
  "scoreMax": 100,
  "findings": [
    { "category": "webhook_no_dlq", "severity": "high", "deduction": 20, "evidence": "...", "remediation": "...", "nodeId": "1", "nodeName": "Webhook" },
    { "category": "missing_retry", "severity": "medium", "deduction": 15, "evidence": "...", "remediation": "...", "nodeId": "2", "nodeName": "Process Payment" },
    { "category": "missing_error_trigger", "severity": "high", "deduction": 15, "evidence": "...", "remediation": "...", "nodeId": null, "nodeName": "workflow_root" }
  ],
  "remediationSummary": [...],
  "roiRecommendation": {
    "reliabilityScore": 45,
    "riskLevel": "high",
    "crossSell": {
      "product": "Webhook DLQ Shield",
      "tiers": [
        { "name": "Self-serve Template", "priceUsd": 99, "description": "..." },
        { "name": "Done-For-You Implementation", "priceUsd": 499, "description": "..." }
      ],
      "recommendedTier": "Self-serve Template",
      "reasoning": "1 webhook(s) without DLQ/idempotency protection"
    },
    "estimatedMonthlyLossUsd": 300,
    "reasoning": [...]
  },
  "limitations": [...]
}
```

### Limitations

- Static analysis only — no live execution testing
- Credentials referenced by name are not resolved; only hardcoded values detected
- Cycle detection may flag intentional feedback loops with conditional breaks
- Review remediation against your n8n version and queue mode before applying

### Requirements

- Node.js ≥ 22
- Apify account (for Pay-Per-Event billing)
- n8n workflow JSON export (Workflow → Export in n8n UI)

### License

Private — part of Monetization HQ prototype series. Built by [Pablo Ian Laurino](https://github.com/PabloIan92).

# Actor input Schema

## `mode` (type: `string`):

Keep 'standby' to expose the Streamable HTTP MCP server at /mcp.

## Actor input object example

```json
{
  "mode": "standby"
}
```

# Actor output Schema

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("pabloian92/mcp-n8n-reliability-auditor").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("pabloian92/mcp-n8n-reliability-auditor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call pabloian92/mcp-n8n-reliability-auditor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pabloian92/mcp-n8n-reliability-auditor"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/wfey09a6n8qwohPKF/builds/ruwA64P2ly2CxKhVV/openapi.json
