{
  "name": "UK Companies House KYB Lookup via DataToll MCP",
  "nodes": [
    {
      "parameters": {
        "content": "## UK Companies House KYB Lookup\n\nEdit the registered name in Company Search. To check a specific registration, replace query with company_number. Inspect status, SIC codes, filing dates and officer appointments.\n\nClick Execute Workflow to run the free MCP lookup. No API key is needed. All eight data sources share 20 calls per IP per rolling 24 hours.",
        "height": 340,
        "width": 440,
        "color": 4
      },
      "id": "83145e82-7c2d-43c7-9b35-a404193de56d",
      "name": "Sticky Note - Zero-Setup Guide",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -260,
        160
      ]
    },
    {
      "parameters": {},
      "id": "53104365-68ac-4495-8baa-5df79ce70b92",
      "name": "Manual Trigger",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        220,
        300
      ]
    },
    {
      "parameters": {
        "jsCode": "return [{ json: {\n  \"query\": \"deepmind\",\n  \"active_only\": true,\n  \"include_officers\": true\n} }];"
      },
      "id": "2b0951bb-8b87-4bea-b254-247cead3689f",
      "name": "Company Search",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        440,
        300
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://datatoll.app/mcp",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Accept",
              "value": "application/json"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({ jsonrpc: '2.0', id: $itemIndex + 1, method: 'tools/call', params: { name: 'extract_uk_companies_house', arguments: $json } } ) }}",
        "options": {
          "timeout": 45000
        }
      },
      "id": "dc6a48f1-867a-4b9b-b665-143a32a87887",
      "name": "Call DataToll MCP (/mcp)",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        680,
        300
      ]
    },
    {
      "parameters": {
        "jsCode": "return $input.all().flatMap(({ json }) => {\n  if (json.error) throw new Error(json.error.message);\n  if (json.result.isError) throw new Error(json.result.content[0].text);\n  return json.result.structuredContent.items.map(row => ({ json: row }));\n});"
      },
      "id": "7b699ec6-1e0b-40e7-bba2-32ce9cc0e7e7",
      "name": "Company Records",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        940,
        300
      ]
    }
  ],
  "connections": {
    "Manual Trigger": {
      "main": [
        [
          {
            "node": "Company Search",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Company Search": {
      "main": [
        [
          {
            "node": "Call DataToll MCP (/mcp)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Call DataToll MCP (/mcp)": {
      "main": [
        [
          {
            "node": "Company Records",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  }
}
