YAGMS

by acro5piano

276 downloads Not rated yet MIT
GitHub

About

An MCP server for interacting with the Gmail API, enabling email management.

Details

License
MIT

Explore

- List emails with optional sender, max results, and label filters
- Retrieve a specific email by its ID
- Search emails using Gmail search syntax (e.g., from:[email protected] has:attachment)
- Get all Gmail labels from your account
- Customizable OAuth and credentials file paths via environment variables

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name YAGMS
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Prerequisites

1. Create OAuth credentials for Gmail API:
- Go to Google Cloud Console
- Create a new project or select an existing one
- Enable the Gmail API
- Create OAuth 2.0 credentials (Desktop application)
- Download the credentials JSON file and save it as ~/.yagms-oauth.keys.json

senderEmail

(optional): Filter by sender email

maxResults

(optional, default: 10): Maximum number of emails to return

labelIds

(optional, default: ["INBOX"]): Label IDs to filter by

emailId

The ID of the email to retrieve

The Gmail MCP server provides the following tools:

1. list-emails: Get emails from your inbox

- Parameters:
- senderEmail (optional): Filter by sender email
- maxResults (optional, default: 10): Maximum number of emails to return
- labelIds (optional, default: ["INBOX"]): Label IDs to filter by

2. get-email: Get a specific email by ID

- Parameters:
- emailId: The ID of the email to retrieve

3. search-emails: Search for emails using Gmail search syntax

- Parameters:
- query: Gmail search query (e.g., "from:[email protected] has:attachment")
- maxResults (optional, default: 10): Maximum number of emails to return

4. get-labels: Get all Gmail labels
- No parameters required

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "yagms": {
            "yagms": {
                "command": "bun",
                "args": [
                    "run",
                    "build-gmail",
                    "#",
                    "It",
                    "will",
                    "emit",
                    "./dist/gmail.js"
                ]
            }
        }
    }
}

McpServers

{
    "yagms": {
        "command": "bun",
        "args": [
            "run",
            "build-gmail",
            "#",
            "It",
            "will",
            "emit",
            "./dist/gmail.js"
        ]
    }
}

Yet Another Gmail MCP Server

Setup and Usage

Gmail MCP Server

The Gmail MCP server provides tools to interact with your Gmail account through the Model Context Protocol (MCP).

Prerequisites

1. Create OAuth credentials for Gmail API:
- Go to Google Cloud Console
- Create a new project or select an existing one
- Enable the Gmail API
- Create OAuth 2.0 credentials (Desktop application)
- Download the credentials JSON file and save it as ~/.yagms-oauth.keys.json

Build this project

1. Install Bun.
2. Build the code

bun install
bun run build-gmail # It will emit ./dist/gmail.js
Authentication

Before using the Gmail MCP server, you need to authenticate with your Google account:

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.