gmail-mcp-server

ovais-007/gmail-mcp-server

3.1

If you are the rightful owner of gmail-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A Model Context Protocol server for seamless Gmail integration, enabling email management and sending capabilities.

Gmail MCP Server

A Model Context Protocol server for Gmail integration.

Features

  • Send emails through Gmail using App Password or OAuth2
  • Professional email templates
  • Gmail inbox management (with OAuth2)
  • Configuration validation

Setup

  1. Install dependencies

    npm install
    
  2. Configure Gmail

    Copy .env.example to .env and add your Gmail credentials:

    GMAIL_USER=ovais.00700@gmail.com
    GMAIL_APP_PASSWORD=your_app_password
    
  3. Run the server

    npm start
    

Usage

Add to your MCP client configuration:

{
  "mcpServers": {
    "gmail": {
      "command": "node", 
      "args": ["/path/to/gmail-mcp-server/index.js"]
    }
  }
}

Then use commands like:

Authentication

App Password (Simple)

  1. Enable 2-factor authentication in Google Account
  2. Generate App Password for Mail
  3. Use in .env file

OAuth2 (Advanced)

For reading emails, you need OAuth2 setup with Google Cloud Console.

Author

Mohammad Ovais - ovais.00700@gmail.com