8
n8n 中文网amn8n.com

创建具有完整操作权限的Domains-Index API服务器,供AI代理使用

高级

这是一个Engineering, AI Chatbot领域的自动化工作流,包含 18 个节点。主要使用 HttpRequestTool, McpTrigger 等节点。 创建具有完整操作权限的Domains-Index API服务器,供AI代理使用

前置要求
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "cd59eaaeb7b34d06e24511380db94cdb7fbce6037cc4de22e539c5158ab9cdfc"
  },
  "nodes": [
    {
      "id": "eecf02a6-597a-4497-b1e8-c75b03bc90dc",
      "name": "工作流概览",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1420,
        -240
      ],
      "parameters": {
        "width": 480,
        "height": 1240,
        "content": "## 🛠️ Domains-Index MCP 服务器 ✅ 14 个操作"
      },
      "typeVersion": 1
    },
    {
      "id": "b6be80ae-20c2-4345-b911-b49e072e0ccb",
      "name": "Domains-Index MCP 服务器",
      "type": "@n8n/n8n-nodes-langchain.mcpTrigger",
      "position": [
        -600,
        -220
      ],
      "webhookId": "2bc52935-b8b0-41ac-a231-50f57b206060",
      "parameters": {
        "path": "domains-index-mcp"
      },
      "typeVersion": 1
    },
    {
      "id": "bae3bfb2-5a11-40af-b555-f5caef5e3f0e",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -880,
        20
      ],
      "parameters": {
        "color": 2,
        "width": 1900,
        "height": 180,
        "content": "## 域名"
      },
      "typeVersion": 1
    },
    {
      "id": "32a8e85b-815e-4bd1-8ea9-acd73b7e72db",
      "name": "域名数据库搜索",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        -740,
        40
      ],
      "parameters": {
        "url": "=/v1/domains/search",
        "options": {},
        "sendQuery": true,
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "queryParameters": {
          "parameters": [
            {
              "name": "api_key",
              "value": "={{ $fromAI('api_key', 'API key', 'string') }}"
            },
            {
              "name": "date",
              "value": "={{ $fromAI('date', 'Request date', 'string') }}"
            },
            {
              "name": "page",
              "value": "={{ $fromAI('page', 'Search page to request', 'string') }}"
            },
            {
              "name": "limit",
              "value": "={{ $fromAI('limit', 'Results per page', 'number', 50) }}"
            },
            {
              "name": "domain",
              "value": "={{ $fromAI('domain', 'Domain includes', 'string') }}"
            },
            {
              "name": "zone",
              "value": "={{ $fromAI('zone', 'In Zone', 'string') }}"
            },
            {
              "name": "country",
              "value": "={{ $fromAI('country', 'Hosting Country', 'string') }}"
            },
            {
              "name": "isDead",
              "value": "={{ $fromAI('isDead', 'Dead or Not, default not', 'boolean') }}"
            },
            {
              "name": "A",
              "value": "={{ $fromAI('A', 'A record includes', 'string') }}"
            },
            {
              "name": "NS",
              "value": "={{ $fromAI('NS', 'NS record includes', 'string') }}"
            },
            {
              "name": "CNAME",
              "value": "={{ $fromAI('CNAME', 'CNAME record includes', 'string') }}"
            },
            {
              "name": "MX",
              "value": "={{ $fromAI('MX', 'MX record includes', 'string') }}"
            },
            {
              "name": "TXT",
              "value": "={{ $fromAI('TXT', 'TXT record includes', 'string') }}"
            }
          ]
        },
        "toolDescription": "Domains Database Search\n\nParameters:\n- Query parameters:\n  • api_key (optional) - API key\n  • date (optional) - Request date\n  • page (optional) - Search page to request\n  • limit (optional) - Results per page\n  • domain (optional) - Domain includes\n  • zone (optional) - In Zone\n  • country (optional) - Hosting Country\n  • isDead (optional) - Dead or Not, default not\n  • A (optional) - A record includes\n  • NS (optional) - NS record includes\n  • CNAME (optional) - CNAME record includes\n  • MX (optional) - MX record includes\n  • TXT (optional) - TXT record includes"
      },
      "typeVersion": 4.2
    },
    {
      "id": "b43711bb-09a0-4fde-bfe4-0282d7a16293",
      "name": "获取 TLD 记录",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        -540,
        40
      ],
      "parameters": {
        "url": "=/v1/domains/tld/{{ $fromAI('zone_id', 'Zone Id', 'string') }}",
        "options": {},
        "sendQuery": true,
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "queryParameters": {
          "parameters": [
            {
              "name": "api_key",
              "value": "={{ $fromAI('api_key', 'API key', 'string') }}"
            },
            {
              "name": "date",
              "value": "={{ $fromAI('date', 'Request date', 'string') }}"
            },
            {
              "name": "page",
              "value": "={{ $fromAI('page', 'Search page to request', 'string') }}"
            },
            {
              "name": "limit",
              "value": "={{ $fromAI('limit', 'Results per page', 'number', 50) }}"
            },
            {
              "name": "domain",
              "value": "={{ $fromAI('domain', 'Domain includes', 'string') }}"
            },
            {
              "name": "country",
              "value": "={{ $fromAI('country', 'Hosting Country', 'string') }}"
            },
            {
              "name": "isDead",
              "value": "={{ $fromAI('isDead', 'Dead or Not, default not', 'boolean') }}"
            },
            {
              "name": "A",
              "value": "={{ $fromAI('A', 'A record includes', 'string') }}"
            },
            {
              "name": "NS",
              "value": "={{ $fromAI('NS', 'NS record includes', 'string') }}"
            },
            {
              "name": "CNAME",
              "value": "={{ $fromAI('CNAME', 'CNAME record includes', 'string') }}"
            },
            {
              "name": "MX",
              "value": "={{ $fromAI('MX', 'MX record includes', 'string') }}"
            },
            {
              "name": "TXT",
              "value": "={{ $fromAI('TXT', 'TXT record includes', 'string') }}"
            }
          ]
        },
        "toolDescription": "Get TLD records\n\nParameters:\n- Path parameters:\n  • zone_id (required)\n- Query parameters:\n  • api_key (optional) - API key\n  • date (optional) - Request date\n  • page (optional) - Search page to request\n  • limit (optional) - Results per page\n  • domain (optional) - Domain includes\n  • country (optional) - Hosting Country\n  • isDead (optional) - Dead or Not, default not\n  • A (optional) - A record includes\n  • NS (optional) - NS record includes\n  • CNAME (optional) - CNAME record includes\n  • MX (optional) - MX record includes\n  • TXT (optional) - TXT record includes"
      },
      "typeVersion": 4.2
    },
    {
      "id": "5c93b474-12ec-4a1d-a74c-361c587e8910",
      "name": "下载整个 TLD 数据集",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        -340,
        40
      ],
      "parameters": {
        "url": "=/v1/domains/tld/{{ $fromAI('zone_id', 'Zone Id', 'string') }}/download",
        "options": {},
        "sendQuery": true,
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "queryParameters": {
          "parameters": [
            {
              "name": "api_key",
              "value": "={{ $fromAI('api_key', 'API key', 'string') }}"
            },
            {
              "name": "date",
              "value": "={{ $fromAI('date', 'Request date', 'string') }}"
            }
          ]
        },
        "toolDescription": "Download Whole Dataset for TLD\n\nParameters:\n- Path parameters:\n  • zone_id (required)\n- Query parameters:\n  • api_key (optional) - API key\n  • date (optional) - Request date"
      },
      "typeVersion": 4.2
    },
    {
      "id": "621d33a8-20f4-49f0-8deb-c24db973bb6d",
      "name": "TLD 域名搜索",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        -140,
        40
      ],
      "parameters": {
        "url": "=/v1/domains/tld/{{ $fromAI('zone_id', 'Zone Id', 'string') }}/search",
        "options": {},
        "sendQuery": true,
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "queryParameters": {
          "parameters": [
            {
              "name": "api_key",
              "value": "={{ $fromAI('api_key', 'API key', 'string') }}"
            },
            {
              "name": "date",
              "value": "={{ $fromAI('date', 'Request date', 'string') }}"
            },
            {
              "name": "page",
              "value": "={{ $fromAI('page', 'Search page to request', 'string') }}"
            },
            {
              "name": "limit",
              "value": "={{ $fromAI('limit', 'Results per page', 'number', 50) }}"
            },
            {
              "name": "domain",
              "value": "={{ $fromAI('domain', 'Domain includes', 'string') }}"
            },
            {
              "name": "country",
              "value": "={{ $fromAI('country', 'Hosting Country', 'string') }}"
            },
            {
              "name": "isDead",
              "value": "={{ $fromAI('isDead', 'Dead or Not, default not', 'boolean') }}"
            },
            {
              "name": "A",
              "value": "={{ $fromAI('A', 'A record includes', 'string') }}"
            },
            {
              "name": "NS",
              "value": "={{ $fromAI('NS', 'NS record includes', 'string') }}"
            },
            {
              "name": "CNAME",
              "value": "={{ $fromAI('CNAME', 'CNAME record includes', 'string') }}"
            },
            {
              "name": "MX",
              "value": "={{ $fromAI('MX', 'MX record includes', 'string') }}"
            },
            {
              "name": "TXT",
              "value": "={{ $fromAI('TXT', 'TXT record includes', 'string') }}"
            }
          ]
        },
        "toolDescription": "Domains Search for TLD\n\nParameters:\n- Path parameters:\n  • zone_id (required)\n- Query parameters:\n  • api_key (optional) - API key\n  • date (optional) - Request date\n  • page (optional) - Search page to request\n  • limit (optional) - Results per page\n  • domain (optional) - Domain includes\n  • country (optional) - Hosting Country\n  • isDead (optional) - Dead or Not, default not\n  • A (optional) - A record includes\n  • NS (optional) - NS record includes\n  • CNAME (optional) - CNAME record includes\n  • MX (optional) - MX record includes\n  • TXT (optional) - TXT record includes"
      },
      "typeVersion": 4.2
    },
    {
      "id": "375d5ca0-9a17-4224-ba8f-7fd8ba4de99c",
      "name": "获取新增域名,如果未指定日期则获取最新",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        60,
        40
      ],
      "parameters": {
        "url": "=/v1/domains/updates/added",
        "options": {},
        "sendQuery": true,
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "queryParameters": {
          "parameters": [
            {
              "name": "api_key",
              "value": "={{ $fromAI('api_key', 'API key', 'string') }}"
            },
            {
              "name": "date",
              "value": "={{ $fromAI('date', 'Request date', 'string') }}"
            },
            {
              "name": "page",
              "value": "={{ $fromAI('page', 'Search page to request', 'string') }}"
            },
            {
              "name": "limit",
              "value": "={{ $fromAI('limit', 'Results per page', 'number', 50) }}"
            }
          ]
        },
        "toolDescription": "Get added domains, latest if date not specified\n\nParameters:\n- Query parameters:\n  • api_key (optional) - API key\n  • date (optional) - Request date\n  • page (optional) - Search page to request\n  • limit (optional) - Results per page"
      },
      "typeVersion": 4.2
    },
    {
      "id": "5a856609-527b-49e6-91c5-8e12a66d53e4",
      "name": "下载新增域名,如果未指定日期则下载最新",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        260,
        40
      ],
      "parameters": {
        "url": "=/v1/domains/updates/added/download",
        "options": {},
        "sendQuery": true,
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "queryParameters": {
          "parameters": [
            {
              "name": "api_key",
              "value": "={{ $fromAI('api_key', 'API key', 'string') }}"
            },
            {
              "name": "date",
              "value": "={{ $fromAI('date', 'Request date', 'string') }}"
            }
          ]
        },
        "toolDescription": "Download added domains, latest if date not specified\n\nParameters:\n- Query parameters:\n  • api_key (optional) - API key\n  • date (optional) - Request date"
      },
      "typeVersion": 4.2
    },
    {
      "id": "e2ecb90e-a459-41b9-9c10-5e5ef7727489",
      "name": "获取删除的域名,如果未指定日期则获取最新",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        460,
        40
      ],
      "parameters": {
        "url": "=/v1/domains/updates/deleted",
        "options": {},
        "sendQuery": true,
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "queryParameters": {
          "parameters": [
            {
              "name": "api_key",
              "value": "={{ $fromAI('api_key', 'API key', 'string') }}"
            },
            {
              "name": "date",
              "value": "={{ $fromAI('date', 'Request date', 'string') }}"
            },
            {
              "name": "page",
              "value": "={{ $fromAI('page', 'Search page to request', 'string') }}"
            },
            {
              "name": "limit",
              "value": "={{ $fromAI('limit', 'Results per page', 'number', 50) }}"
            }
          ]
        },
        "toolDescription": "Get deleted domains, latest if date not specified\n\nParameters:\n- Query parameters:\n  • api_key (optional) - API key\n  • date (optional) - Request date\n  • page (optional) - Search page to request\n  • limit (optional) - Results per page"
      },
      "typeVersion": 4.2
    },
    {
      "id": "794e6305-d71d-46b3-9c40-f43d4f199df1",
      "name": "下载删除的域名,如果未指定日期则下载最新",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        660,
        40
      ],
      "parameters": {
        "url": "=/v1/domains/updates/deleted/download",
        "options": {},
        "sendQuery": true,
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "queryParameters": {
          "parameters": [
            {
              "name": "api_key",
              "value": "={{ $fromAI('api_key', 'API key', 'string') }}"
            },
            {
              "name": "date",
              "value": "={{ $fromAI('date', 'Request date', 'string') }}"
            }
          ]
        },
        "toolDescription": "Download deleted domains, latest if date not specified\n\nParameters:\n- Query parameters:\n  • api_key (optional) - API key\n  • date (optional) - Request date"
      },
      "typeVersion": 4.2
    },
    {
      "id": "995adb26-3395-474b-b8c4-910e55d9c2d3",
      "name": "更新列表",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        860,
        40
      ],
      "parameters": {
        "url": "=/v1/domains/updates/list",
        "options": {},
        "sendQuery": true,
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "queryParameters": {
          "parameters": [
            {
              "name": "api_key",
              "value": "={{ $fromAI('api_key', 'API key', 'string') }}"
            }
          ]
        },
        "toolDescription": "List of updates\n\nParameters:\n- Query parameters:\n  • api_key (optional) - API key"
      },
      "typeVersion": 4.2
    },
    {
      "id": "91504439-9a4d-42e9-bcf6-ca8b760feab7",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -880,
        260
      ],
      "parameters": {
        "color": 3,
        "width": 1100,
        "height": 180,
        "content": "## 信息"
      },
      "typeVersion": 1
    },
    {
      "id": "25e8cc9f-c4a2-4679-9ef9-689ba9173461",
      "name": "获取信息",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        -740,
        280
      ],
      "parameters": {
        "url": "=/v1/info/api",
        "options": {},
        "sendQuery": true,
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "queryParameters": {
          "parameters": [
            {
              "name": "api_key",
              "value": "={{ $fromAI('api_key', 'API key', 'string') }}"
            }
          ]
        },
        "toolDescription": "get_api_info_item\n\nParameters:\n- Query parameters:\n  • api_key (optional) - API key"
      },
      "typeVersion": 4.2
    },
    {
      "id": "61d83dff-742e-4e4b-b0e8-3d89f4cccd66",
      "name": "返回总体统计信息",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        -540,
        280
      ],
      "parameters": {
        "url": "=/v1/info/stat/",
        "options": {},
        "sendQuery": true,
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "queryParameters": {
          "parameters": [
            {
              "name": "page",
              "value": "={{ $fromAI('page', 'Search page to request', 'string') }}"
            },
            {
              "name": "limit",
              "value": "={{ $fromAI('limit', 'Results per page', 'number', 50) }}"
            }
          ]
        },
        "toolDescription": "Returns overall stagtistics\n\nParameters:\n- Query parameters:\n  • page (optional) - Search page to request\n  • limit (optional) - Results per page"
      },
      "typeVersion": 4.2
    },
    {
      "id": "4e5b4b87-5100-4528-883c-be9ab5895653",
      "name": "返回特定区域的统计信息",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        -340,
        280
      ],
      "parameters": {
        "url": "=/v1/info/stat/{{ $fromAI('zone', 'Zone', 'string') }}",
        "options": {},
        "sendQuery": true,
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "queryParameters": {
          "parameters": [
            {
              "name": "page",
              "value": "={{ $fromAI('page', 'Search page to request', 'string') }}"
            },
            {
              "name": "limit",
              "value": "={{ $fromAI('limit', 'Results per page', 'number', 50) }}"
            }
          ]
        },
        "toolDescription": "Returns statistics for specific zone\n\nParameters:\n- Path parameters:\n  • zone (required)\n- Query parameters:\n  • page (optional) - Search page to request\n  • limit (optional) - Results per page"
      },
      "typeVersion": 4.2
    },
    {
      "id": "8518fb19-37bd-4927-851e-f3b459f867fe",
      "name": "返回总体 Tld 信息",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        -140,
        280
      ],
      "parameters": {
        "url": "=/v1/info/tld/",
        "options": {},
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "toolDescription": "Returns overall Tld info"
      },
      "typeVersion": 4.2
    },
    {
      "id": "6569b5d1-ab68-437b-aa05-9e0c630a7e0a",
      "name": "返回特定区域的统计信息 1",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        60,
        280
      ],
      "parameters": {
        "url": "=/v1/info/tld/{{ $fromAI('zone', 'Zone', 'string') }}",
        "options": {},
        "sendQuery": true,
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "queryParameters": {
          "parameters": [
            {
              "name": "page",
              "value": "={{ $fromAI('page', 'Search page to request', 'string') }}"
            },
            {
              "name": "limit",
              "value": "={{ $fromAI('limit', 'Results per page', 'number', 50) }}"
            }
          ]
        },
        "toolDescription": "Returns statistics for specific zone\n\nParameters:\n- Path parameters:\n  • zone (required)\n- Query parameters:\n  • page (optional) - Search page to request\n  • limit (optional) - Results per page"
      },
      "typeVersion": 4.2
    }
  ],
  "pinData": {},
  "connections": {
    "Get info": {
      "ai_tool": [
        [
          {
            "node": "Domains-Index MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get TLD records": {
      "ai_tool": [
        [
          {
            "node": "Domains-Index MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "List of updates": {
      "ai_tool": [
        [
          {
            "node": "Domains-Index MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Domains Search for TLD": {
      "ai_tool": [
        [
          {
            "node": "Domains-Index MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Domains Database Search": {
      "ai_tool": [
        [
          {
            "node": "Domains-Index MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Returns overall Tld info": {
      "ai_tool": [
        [
          {
            "node": "Domains-Index MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Returns overall stagtistics": {
      "ai_tool": [
        [
          {
            "node": "Domains-Index MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Download Whole Dataset for TLD": {
      "ai_tool": [
        [
          {
            "node": "Domains-Index MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Returns statistics for specific zone": {
      "ai_tool": [
        [
          {
            "node": "Domains-Index MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Returns statistics for specific zone 1": {
      "ai_tool": [
        [
          {
            "node": "Domains-Index MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get added domains, latest if date not specified": {
      "ai_tool": [
        [
          {
            "node": "Domains-Index MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get deleted domains, latest if date not specified": {
      "ai_tool": [
        [
          {
            "node": "Domains-Index MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Download added domains, latest if date not specifi": {
      "ai_tool": [
        [
          {
            "node": "Domains-Index MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Download deleted domains, latest if date not speci": {
      "ai_tool": [
        [
          {
            "node": "Domains-Index MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

高级 - 工程, AI 聊天机器人

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
高级
节点数量18
分类2
节点类型3
难度说明

适合高级用户,包含 16+ 个节点的复杂工作流

作者
David Ashby

David Ashby

@cfomodz

A hacker by nature, programmer by trade ⚒️ I'm looking to collaborate on things that save human labor 📫 How to reach me Github👇 -> Discord

外部链接
在 n8n.io 查看

分享此工作流