{
  "nodes": [
    {
      "id": "c2b3ab00-6a9e-4497-bea0-10941757c3aa",
      "name": "list sites request",
      "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": "Get Site Info Request1",
      "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": "Search Analytics Request1",
      "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": "Submit Sitemap Request1",
      "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": "Request Indexing Request1",
      "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": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -592,
        -96
      ],
      "parameters": {
        "width": 608,
        "height": 1712,
        "content": "# \ud83d\ude80 Google Search Console MCP Server\n\n---\n\n## \ud83d\udccb Description\n\nThis n8n workflow serves as a **Model Context Protocol (MCP)** server, connecting MCP-compatible AI tools (like Claude) directly to the Google Search Console APIs. With this workflow, users can automate critical SEO tasks and manage Google Search Console data effortlessly via MCP endpoints.\n\n**Included Functionalities:**\n- \ud83d\udccc **List Verified Sites**\n- \ud83d\udccc **Retrieve Detailed Site Information**\n- \ud83d\udccc **Access Search Analytics Data**\n- \ud83d\udccc **Submit and Manage Sitemaps**\n- \ud83d\udccc **Request URL Indexing**\n\nOAuth2 is fully supported for secure and seamless API interactions.\n\n---\n\n## \ud83d\udee0\ufe0f Setup Instructions\n\n### \ud83d\udd11 Prerequisites\n- **n8n instance** (cloud or self-hosted)\n- Google Cloud project with enabled APIs:\n  - Google Search Console API\n  - Web Search Indexing API\n- OAuth2 Credentials from Google Cloud\n\n### \u2699\ufe0f Workflow Setup\n\n**Step 1: Import Workflow**\n- Open n8n, select **\"Import from JSON\"**, and paste this workflow JSON.\n\n**Step 2: Configure OAuth2 Credentials**\n- Navigate to **Settings \u2192 Credentials**.\n- Add new credentials (**Google OAuth2 API**):\n  - **Client ID** and **Client Secret** from Google Cloud\n  - Scopes:\n    ```\n    https://www.googleapis.com/auth/webmasters.readonly\n    https://www.googleapis.com/auth/webmasters\n    https://www.googleapis.com/auth/indexing\n    ```\n\n**Step 3: Configure Webhooks**\n- Webhook URLs auto-generate in MCP Server Trigger node.\n- Ensure webhooks are publicly accessible via HTTPS.\n\n**Step 4: Testing**\n- Test your endpoints with sample HTTP requests to confirm everything is working correctly.\n\n---\n\n## \ud83c\udfaf Usage Examples\n\n- **List Sites**: Fetch all verified Search Console sites.\n- **Get Site Info**: Get detailed information about a particular site.\n- **Search Analytics**: Pull metrics such as clicks, impressions, and rankings.\n- **Submit Sitemap**: Automatically submit sitemaps.\n- **Request URL Indexing**: Trigger Google's indexing for specific URLs instantly.\n\n---\n\n## \ud83d\udea9 Use Cases & Applications\n- SEO automation workflows\n- AI-driven SEO analytics\n- Real-time website performance monitoring\n- Automated sitemap management\n\n"
      },
      "typeVersion": 1
    },
    {
      "id": "2a8b3cb2-5302-4b4a-9876-407b944d16dc",
      "name": "MCP GSC",
      "type": "@n8n/n8n-nodes-langchain.mcpTrigger",
      "position": [
        272,
        -80
      ],
      "parameters": {
        "path": "125ed1a6-7292-4085-b22e-9a1028c22449"
      },
      "typeVersion": 2
    },
    {
      "id": "55134ecb-f073-46fa-a943-3a0aeb1e24a2",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        928,
        -144
      ],
      "parameters": {
        "color": 3,
        "width": 576,
        "height": 560,
        "content": "## Need a tailor-made workflow? Tell me about your business and get a free proposal:\n\n**[Start here \u2192 Custom Automation Form](https://taskmorphr.com/contact)**\n\n---\n## \ud83d\udcc8 Cost-Savings Snapshot  \nCurious what automation could save you?  \nRun the 60-second calculator:\n\n**[ROI / Cost Comparison](https://taskmorphr.com/cost-comparison)**\n\n---\n### \u2709\ufe0f Reach me directly  \n`paul@taskmorphr.com`"
      },
      "typeVersion": 1
    },
    {
      "id": "45168036-c08a-4c0f-a170-cd0ffd8e694d",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1248,
        256
      ],
      "parameters": {
        "color": 3,
        "width": 224,
        "height": 128,
        "content": "### \ud83d\udee0\ufe0f Build it yourself  \nBrowse every ready-made workflow:  \n[Full Template Pack \u2014 coming soon](https://n8n.io/creators/diagopl/)\n"
      },
      "typeVersion": 1
    }
  ],
  "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
          }
        ]
      ]
    }
  }
}