8
n8n 中文网amn8n.com

通过MCP服务器使用Google Search Console和AI自动化SEO任务

中级

这是一个Market Research, AI RAG领域的自动化工作流,包含 9 个节点。主要使用 HttpRequestTool, McpTrigger 等节点。 通过MCP服务器使用Google Search Console和AI自动化SEO任务

前置要求
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "e7ccf4281d5afb175c79c02db95b45f15d5b53862cb6bc357c5e5bc26567f35c"
  },
  "nodes": [
    {
      "id": "c2b3ab00-6a9e-4497-bea0-10941757c3aa",
      "name": "列出站点请求",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        144,
        304
      ],
      "parameters": {
        "url": "https://www.googleapis.com/webmasters/v3/sites",
        "options": {}
      },
      "typeVersion": 4.2
    },
    {
      "id": "559610bc-ad51-4097-a1d1-520f791c5881",
      "name": "获取站点信息请求1",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        288,
        304
      ],
      "parameters": {
        "url": "=https://www.googleapis.com/webmasters/v3/sites/{{ encodeURIComponent($json.params.arguments.siteUrl) }}",
        "options": {}
      },
      "typeVersion": 4.2
    },
    {
      "id": "751b17a1-7065-4618-bcba-6c7d7db35e07",
      "name": "搜索分析请求1",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        448,
        304
      ],
      "parameters": {
        "url": "=https://www.googleapis.com/webmasters/v3/sites/{{ encodeURIComponent($json.params.arguments.siteUrl) }}/searchAnalytics/query",
        "method": "POST",
        "options": {}
      },
      "typeVersion": 4.2
    },
    {
      "id": "48689d33-b7d9-4adb-af9b-0234bbf5b2ab",
      "name": "提交站点地图请求1",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        608,
        304
      ],
      "parameters": {
        "url": "=https://www.googleapis.com/webmasters/v3/sites/{{ encodeURIComponent($json.params.arguments.siteUrl) }}/sitemaps/{{ encodeURIComponent($json.params.arguments.feedpath) }}",
        "method": "PUT",
        "options": {}
      },
      "typeVersion": 4.2
    },
    {
      "id": "bb6dd550-5ef9-47d5-8849-b33e938218a7",
      "name": "请求索引请求1",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        768,
        304
      ],
      "parameters": {
        "url": "https://indexing.googleapis.com/v3/urlNotifications:publish",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "url",
              "value": "={{ $json.params.arguments.inspectionUrl }}"
            },
            {
              "name": "type",
              "value": "URL_UPDATED"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "bf95461f-3dd5-4932-bdbe-40ed7577f323",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -592,
        -96
      ],
      "parameters": {
        "width": 608,
        "height": 1712,
        "content": "# 🚀 Google Search Console MCP 服务器"
      },
      "typeVersion": 1
    },
    {
      "id": "2a8b3cb2-5302-4b4a-9876-407b944d16dc",
      "name": "MCP GSC",
      "type": "@n8n/n8n-nodes-langchain.mcpTrigger",
      "position": [
        272,
        -80
      ],
      "webhookId": "125ed1a6-7292-4085-b22e-9a1028c22449",
      "parameters": {
        "path": "125ed1a6-7292-4085-b22e-9a1028c22449"
      },
      "typeVersion": 2
    },
    {
      "id": "55134ecb-f073-46fa-a943-3a0aeb1e24a2",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        928,
        -144
      ],
      "parameters": {
        "color": 3,
        "width": 576,
        "height": 560,
        "content": "## 需要量身定制的工作流?告诉我您的业务需求并获得免费提案:"
      },
      "typeVersion": 1
    },
    {
      "id": "45168036-c08a-4c0f-a170-cd0ffd8e694d",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1248,
        256
      ],
      "parameters": {
        "color": 3,
        "width": 224,
        "height": 128,
        "content": "### 🛠️ 自己构建"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "list sites request": {
      "ai_tool": [
        [
          {
            "node": "MCP GSC",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get Site Info Request1": {
      "ai_tool": [
        [
          {
            "node": "MCP GSC",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Submit Sitemap Request1": {
      "ai_tool": [
        [
          {
            "node": "MCP GSC",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Request Indexing Request1": {
      "ai_tool": [
        [
          {
            "node": "MCP GSC",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Search Analytics Request1": {
      "ai_tool": [
        [
          {
            "node": "MCP GSC",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 市场调研, AI RAG 检索增强

需要付费吗?

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

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

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

作者

Automation expert & n8n power user. I build advanced workflows combining AI, outbound, and business logic. Grab my templates or reach out for custom builds.

外部链接
在 n8n.io 查看

分享此工作流