🎫 AI-powered Gmail MCP server

⚑ 1,945 views · 🎫 Ticket Management & Triage

πŸ’‘ Pro Tip β€” HTTP Request scraping tends to break when sites update their markup. If you’re scraping a major platform, check if ScraperNode covers it β€” it has maintained scrapers for LinkedIn, Instagram, TikTok, YouTube, and 20+ other platforms that return structured data.

View All Scrapers

Description

πŸ€– AI-Powered Gmail MCP Server for n8n

Description

This n8n workflow template leverages an external AI Model Control Plane (MCP) Server to automate various Gmail tasks, such as composing emails, replying to threads, and handling follow-ups using dynamically generated content. It uses the native n8n Gmail nodes available from v1.88.0 onwards.

Who is this template for?

Ideal for developers, automation engineers, and power users using self-hosted n8n (v1.88.0+) who want to integrate artificial intelligence directly into their email workflows via a dedicated MCP Server for enhanced control and customization over AI interactions.

What problem does this workflow solve?

Workflow Overview

This template provides a structured approach to integrating Gmail with an MCP Server:

Prerequisites

Ensure you have the following before importing:

How to Import and Configure

Follow these steps to get the template running:

  1. In your n8n interface, navigate to Templates β†’ Import from URL.
  2. Paste the JSON link provided for this workflow template.
  3. Configure the necessary credentials within n8n under Credentials:
    • Gmail OAuth2: Select the Google OAuth2 credential you previously configured that has access to the desired Gmail account.
    • MCP API Key: You’ll likely need to configure credentials for interacting with your MCP Server. This might involve setting up a Header Auth credential in n8n with your MCP API Key, or configuring the HTTP Request node within the workflow directly, depending on your MCP’s authentication scheme. Link this credential where needed (e.g., in the Trigger node if MCP calls n8n with auth, or in HTTP Request nodes if n8n calls MCP).
  4. Activate the Workflow: Ensure the workflow toggle is set to β€œActive” in the top right corner.
  5. Webhook URL: Copy the Webhook URL from the β€œMCP_GMAIL” Trigger node (Test or Production URL as needed) and configure your MCP Server to send requests to this URL.
  6. Recommendation:
    • Rename the nodes with clear, descriptive names relevant to your specific use case (e.g., ✨ Generate Sales Email Body via MCP, πŸ“₯ Fetch Customer Replies).
    • Utilize the workflow notes (sticky notes on the canvas) to document specific logic, prompt details, or configuration choices for future reference.

Customization & Technical Guidance

Tailor the workflow to your specific needs:

πŸ”— Nodes Used

MCP Server Trigger

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup