YAGMS

by acro5piano

276 downloads
Not rated
GitHub

About

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

Details

Author
acro5piano
Downloads
276
Categories
Communication, Other, Automation

- 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:example@gmail.com 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

First, create OAuth credentials in Google Cloud Console and save them as ~/.yagms-oauth.keys.json. Then build the project with bun install and bun run build-gmail. Run bun run dist/gmail.js auth to authenticate, then start the server with bun run src/gmail.ts. Configure MCP to point to the built dist/gmail.js file.

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"
        ]
    }
}

yagms

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.