Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprende Automating Gmail with Claude | Smarter Communication & Time Control
Agentic AI for Automating Daily Office Tasks
course content

Contenido del Curso

Agentic AI for Automating Daily Office Tasks

Agentic AI for Automating Daily Office Tasks

1. Meet Your AI Coworker
2. Smarter Communication & Time Control
3. Document Drafting, Editing & Filing

book
Automating Gmail with Claude

Email management is fundamental to every profession, yet Claude's built-in Google integrations offer limited functionality—such as only checking your inbox without the ability to create drafts or send emails. This chapter demonstrates how to install and configure a free Gmail MCP server that provides comprehensive email automation capabilities.

Google Cloud Console Setup

Project Creation
expand arrow
  1. Navigate to Google Cloud Console;
  2. Create a new project or select an existing one;
  3. Enter project name (e.g., "gmail mcp agent");
  4. Accept suggested organization and location settings;
  5. Click Create and wait for project initialization.
Enable Gmail API
expand arrow
  1. From the side menu, go to "APIs & Services" → "Library";
  2. Search for "Gmail API";
  3. Select the first result and click "Enable";
  4. This grants your project permission to access Gmail functionality.
Configure OAuth Consent Screen
expand arrow
  1. Navigate to the "Credentials" tab;
  2. If prompted, click "Configure consent screen";
  3. Click "Get started";
  4. Enter application name (e.g., "gmail agent");
  5. Input your email address;
  6. Select "External Audience" for user type, if you use general Gmail account;
  7. Re-enter your email address when prompted;
  8. Accept the user data policy;
  9. Click Continue and Create.
Create OAuth Credentials
expand arrow
  1. Click "Create OAuth Client";
  2. Select "Web Application";
  3. Accept the suggested name or customize;
  4. Click "Add URI";
  5. Enter the redirect URI: http://localhost:3000/oauth2callback;
  6. Click the blue Create button;
  7. Download the JSON credentials file;
  8. Rename the file to: gsp-oauth.keys.json.
Create Credentials Directory
expand arrow

Navigate to your root/home directory:

  • Mac: Home folder Users/user_nameor Windows: C:\Users\Your_Username\;
  • Use Command + Shift + . (Mac) or Ctrl + Shift + . (Windows) to show hidden files;
  • Create a new folder named: .gmail-mcp;
  • Move the gsp-oauth.keys.json file into this folder;
  • Use Command + Shift + . again to hide folders.

The server is configured to automatically locate credentials in this directory.

Note
Definition

Smithery is a package manager specifically designed for MCP servers that simplifies installation and management of AI agents through automated setup commands.

Automatic Installation
expand arrow

For quick setup, use Smithery with the following command:

npx -y @smithery/cli install @gongrzhe/server-gmail-autoauth-mcp --client claude
Manual Installation
expand arrow

Update Configuration File

  • In Claude Desktop, press Command + , (Mac) or Ctrl + , (Windows);
  • Click "Edit Config";
  • Open the configuration file in a text editor;
  • Copy the configuration block;
{
  "mcpServers": {
    "desktop-commander": {
      "command": "npx",
      "args": [
        "-y",
        "@wonderwhy-er/desktop-commander"
      ]
    },
    "gmail": {
      "command": "npx",
      "args": [
        "@gongrzhe/server-gmail-autoauth-mcp"
      ]
    }
  }
}
  • Paste it into your Claude config file after previous configuration block and before two last closing curly brackets;
  • Save the file (Command/Ctrl + S);
  • Completely close and reopen Claude Desktop.
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 2. Capítulo 1

Pregunte a AI

expand

Pregunte a AI

ChatGPT

Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla

course content

Contenido del Curso

Agentic AI for Automating Daily Office Tasks

Agentic AI for Automating Daily Office Tasks

1. Meet Your AI Coworker
2. Smarter Communication & Time Control
3. Document Drafting, Editing & Filing

book
Automating Gmail with Claude

Email management is fundamental to every profession, yet Claude's built-in Google integrations offer limited functionality—such as only checking your inbox without the ability to create drafts or send emails. This chapter demonstrates how to install and configure a free Gmail MCP server that provides comprehensive email automation capabilities.

Google Cloud Console Setup

Project Creation
expand arrow
  1. Navigate to Google Cloud Console;
  2. Create a new project or select an existing one;
  3. Enter project name (e.g., "gmail mcp agent");
  4. Accept suggested organization and location settings;
  5. Click Create and wait for project initialization.
Enable Gmail API
expand arrow
  1. From the side menu, go to "APIs & Services" → "Library";
  2. Search for "Gmail API";
  3. Select the first result and click "Enable";
  4. This grants your project permission to access Gmail functionality.
Configure OAuth Consent Screen
expand arrow
  1. Navigate to the "Credentials" tab;
  2. If prompted, click "Configure consent screen";
  3. Click "Get started";
  4. Enter application name (e.g., "gmail agent");
  5. Input your email address;
  6. Select "External Audience" for user type, if you use general Gmail account;
  7. Re-enter your email address when prompted;
  8. Accept the user data policy;
  9. Click Continue and Create.
Create OAuth Credentials
expand arrow
  1. Click "Create OAuth Client";
  2. Select "Web Application";
  3. Accept the suggested name or customize;
  4. Click "Add URI";
  5. Enter the redirect URI: http://localhost:3000/oauth2callback;
  6. Click the blue Create button;
  7. Download the JSON credentials file;
  8. Rename the file to: gsp-oauth.keys.json.
Create Credentials Directory
expand arrow

Navigate to your root/home directory:

  • Mac: Home folder Users/user_nameor Windows: C:\Users\Your_Username\;
  • Use Command + Shift + . (Mac) or Ctrl + Shift + . (Windows) to show hidden files;
  • Create a new folder named: .gmail-mcp;
  • Move the gsp-oauth.keys.json file into this folder;
  • Use Command + Shift + . again to hide folders.

The server is configured to automatically locate credentials in this directory.

Note
Definition

Smithery is a package manager specifically designed for MCP servers that simplifies installation and management of AI agents through automated setup commands.

Automatic Installation
expand arrow

For quick setup, use Smithery with the following command:

npx -y @smithery/cli install @gongrzhe/server-gmail-autoauth-mcp --client claude
Manual Installation
expand arrow

Update Configuration File

  • In Claude Desktop, press Command + , (Mac) or Ctrl + , (Windows);
  • Click "Edit Config";
  • Open the configuration file in a text editor;
  • Copy the configuration block;
{
  "mcpServers": {
    "desktop-commander": {
      "command": "npx",
      "args": [
        "-y",
        "@wonderwhy-er/desktop-commander"
      ]
    },
    "gmail": {
      "command": "npx",
      "args": [
        "@gongrzhe/server-gmail-autoauth-mcp"
      ]
    }
  }
}
  • Paste it into your Claude config file after previous configuration block and before two last closing curly brackets;
  • Save the file (Command/Ctrl + S);
  • Completely close and reopen Claude Desktop.
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 2. Capítulo 1
some-alt