Skip to main content
Glama

EmailAssistant

by saathvikpd

📬 EmailAssistant for Claude Desktop

EmailAssistant is an MCP-compatible server that integrates with the Gmail API to fetch and summarize emails based on custom queries or recent activity. It can be used with Claude Desktop to interact hands-free with your inbox.


⚙️ Setup Instructions

1. Enable Gmail API

  1. Go to Google Cloud Console.
  2. Create a new project or use an existing one.
  3. Enable the Gmail API under “APIs & Services”.
  4. Create OAuth 2.0 Client ID credentials.
  5. Download the client_secret_XXXXX.json file.

🔧 Configuration Summary

🔁 Create config.py with these contents:

import os SCOPES = ["https://www.googleapis.com/auth/gmail.readonly"] PROJECT_DIR = "/absolute/path/to/your/project/directory/" CREDENTIALS_FP = os.path.join(PROJECT_DIR, "client_secret_XXXXX.json") TOKEN_FP = os.path.join(PROJECT_DIR, "token.json")

Note: Make sure to replace the placeholders in the above code---PROJECT_DIR & CREDENTIALS_FP


🖥️ 3. Claude Desktop Configuration

In your Claude Desktop configuration file (can find it in Developer Settings):

{ "mcpServers": { "EmailAssistant": { "command": "uv", "args": [ "run", "--with", "mcp[cli]", "--with", "yake", "--with", "google-api-python-client", "--with", "google-auth-httplib2", "--with", "google-auth-oauthlib", "mcp", "run", "/absolute/path/to/your/project/directory/main.py" ] } } }

✅ Running It

Once configured:

  1. Start Claude Desktop
  2. Claude will automatically recognize the EmailAssistant MCP server.
  3. You can now use Claude to call functions like:
get_email_summary(time="newer_than:1d") get_top_matching_email(query_keywords="project deadline")
  1. All you need to do is ask Claude in plain english about your inbox

📌 Requirements

  • Python 3.9+
  • uv (or use pip if not using uv)
  • The following Python packages:
    • google-api-python-client
    • google-auth-httplib2
    • google-auth-oauthlib
    • mcp[cli]
-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

An MCP-compatible server that integrates with Gmail API to fetch and summarize emails based on custom queries or recent activity.

  1. ⚙️ Setup Instructions
    1. 1. Enable Gmail API
  2. 🔧 Configuration Summary
    1. 🔁 Replace These in config.py
    2. 🖥️ 3. Claude Desktop Configuration
  3. ✅ Running It
    1. 📌 Requirements

      Related MCP Servers

      • A
        security
        A
        license
        A
        quality
        Provides tools for interacting with Gmail and Calendar APIs. This server enables you to manage your emails and calendar events programmatically through the MCP interface.
        Last updated -
        25
        MIT License
      • -
        security
        A
        license
        -
        quality
        Integrates with Gmail to enable sending, reading, drafting, and managing emails via the Model Context Protocol (MCP), allowing users to interact with email tasks through automated client prompts.
        Last updated -
        2
        GPL 3.0
      • -
        security
        A
        license
        -
        quality
        MCP server that integrates with Gmail to enable sending, reading, and managing emails through tools like send-email, trash-email, get-unread-emails, and read-email.
        Last updated -
        58
        GPL 3.0
        • Apple
      • -
        security
        A
        license
        -
        quality
        An MCP server that enables Gmail integration, allowing users to manage emails (send, receive, read, trash, mark as read) directly through MCP clients like Claude Desktop.
        Last updated -
        MIT License

      View all related MCP servers

      MCP directory API

      We provide all the information about MCP servers via our MCP API.

      curl -X GET 'https://glama.ai/api/mcp/v1/servers/saathvikpd/MCPEmailAssistant'

      If you have feedback or need assistance with the MCP directory API, please join our Discord server