{
  "name": "👲 Monitor & debug n8n workflows with Claude AI assistant and MCP server",
  "nodes": [
    {
      "id": "1ec9d39f-9335-4e20-972c-8973b1e450c0",
      "name": "Route by Action",
      "type": "n8n-nodes-base.switch",
      "position": [
        528,
        352
      ]
    },
    {
      "id": "5559b642-a02d-4d46-8894-63445b559e21",
      "name": "Extract All Executions",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        1008,
        112
      ]
    },
    {
      "id": "cf916e3a-d789-412b-bf3e-881e6d695a33",
      "name": "Get Last Executions",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        800,
        112
      ]
    },
    {
      "id": "e62f6ce2-e4f4-4553-8d53-1c2f27bf3311",
      "name": "Get Active Workflows",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        816,
        336
      ]
    },
    {
      "id": "fea23566-d005-47b5-ba42-253b057c88cb",
      "name": "Active Workflows",
      "type": "n8n-nodes-base.set",
      "position": [
        1264,
        336
      ]
    },
    {
      "id": "7c1725b9-0fbd-426e-945c-191d00736d0a",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        368,
        368
      ]
    },
    {
      "id": "09540d94-9ffa-433e-88ab-b902e3a74349",
      "name": "Respond to Webhook",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        1488,
        368
      ]
    },
    {
      "id": "0f2be966-7ca7-4c40-9131-e8f8d5559c5d",
      "name": "Get Executions Details (Status = Error)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        800,
        576
      ]
    },
    {
      "id": "4c3e3613-c4dc-417e-9db7-0656e1a7ff51",
      "name": "Processing Audit",
      "type": "n8n-nodes-base.code",
      "position": [
        1264,
        112
      ]
    },
    {
      "id": "8d02bd44-4501-4441-a542-01093173f008",
      "name": "Split Active Executions",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        1040,
        336
      ]
    },
    {
      "id": "1ae4ac25-bcff-4849-8156-657daa906c91",
      "name": "Details of Executions",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        1232,
        576
      ]
    },
    {
      "id": "0f33a4c0-9a30-43f4-89fe-f55c9462a7eb",
      "name": "Video Tutorial",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1632,
        48
      ],
      "parameters": {
        "width": 464,
        "height": 304,
        "content": "## [Tutorial](https://www.youtube.com/watch?v=oJzNnHIusZs)\n@[youtube](oJzNnHIusZs)"
      }
    },
    {
      "id": "7d9ba773-3711-47e2-bedf-69b8da24a0ae",
      "name": "Main Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -128,
        48
      ],
      "parameters": {
        "width": 464,
        "height": 680,
        "content": "## Workflow Monitoring Endpoint \n\n### How it works\nThis workflow, combined with a local MCP Server will help you to monitor any n8n instance health through API endpoints. \n\nBased on the action selecte"
      }
    },
    {
      "id": "3cb68d76-5bec-4aa7-8b00-59282d35726d",
      "name": "Webhook Entry",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        352,
        48
      ],
      "parameters": {
        "width": 304,
        "height": 684,
        "content": "## 1. Webhook Entry with a switch by action\nReceives POST requests with action parameter to route monitoring requests"
      }
    },
    {
      "id": "ac9aa151-073f-408d-9860-e3ca44e85dec",
      "name": "API Calls",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        720,
        48
      ],
      "parameters": {
        "width": 712,
        "height": 200,
        "content": "## 2. Get last executions logs and process them"
      }
    },
    {
      "id": "b6bda9de-3551-4542-9e09-3330e4dba149",
      "name": "Response",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1456,
        48
      ],
      "parameters": {
        "width": 166,
        "height": 684,
        "content": "## 5. Send Response back"
      }
    },
    {
      "id": "099c044d-9d6d-488c-bde1-3caa08ba3dec",
      "name": "API Calls1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        720,
        288
      ],
      "parameters": {
        "width": 712,
        "height": 200,
        "content": "## 3. Get all the active workflows of the instance"
      }
    },
    {
      "id": "7c416a84-6e5d-4f96-ba65-08475737bec7",
      "name": "API Calls2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        720,
        512
      ],
      "parameters": {
        "width": 696,
        "height": 216,
        "content": "## 4. Get the detailed executions logs for a specific workflow "
      }
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Route by Action",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route by Action": {
      "main": [
        [
          {
            "node": "Get Active Workflows",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get Last Executions",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get Executions Details (Status = Error)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Active Workflows": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Processing Audit": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Last Executions": {
      "main": [
        [
          {
            "node": "Extract All Executions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Active Workflows": {
      "main": [
        [
          {
            "node": "Split Active Executions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Details of Executions": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract All Executions": {
      "main": [
        [
          {
            "node": "Processing Audit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Active Executions": {
      "main": [
        [
          {
            "node": "Active Workflows",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Executions Details (Status = Error)": {
      "main": [
        [
          {
            "node": "Details of Executions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}