mcpField
Y
yagms

yagms

Local
github.com/acro5pianoCommunication0Updated 72w ago

About yagms

yagms is an MCP server for accessing a Gmail account, intended for use with MCP-compatible assistants. It supports inbox retrieval, Gmail search, individual email lookup, and label listing after Google account authentication.

Key features

  1. 01List inbox emails with filters
  2. 02Retrieve an email by ID
  3. 03Search with Gmail query syntax
  4. 04List Gmail labels
  5. 05Authenticate through a browser

Use cases

  1. 01Review recent inbox messages
  2. 02Find mail from a sender or matching a query
  3. 03Open a specific email
  4. 04Inspect available Gmail labels

MCP support

Exposes Gmail email retrieval, search, and label tools to MCP clients. Access requires authenticating with a Google account.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

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:

# Run the authentication flow
bun run dist/gmail.js auth

This will:

  • Launch a browser window for you to sign in to your Google account
  • Request permission to access your Gmail account
  • Save the authentication credentials to ~/.yagms-credentials.json
Running the Server

After authentication, you can run the Gmail MCP server:

# Run the server
bun run src/gmail.ts
Configuration

You can customize the paths for OAuth keys and credentials using environment variables:

  • GMAIL_OAUTH_PATH: Path to the OAuth keys file (default: ~/.yagms-oauth.keys.json)
  • GMAIL_CREDENTIALS_PATH: Path to save the credentials (default: ~/.yagms-credentials.json)
Available Tools

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
Example MCP Configuration

Add this to your MCP settings file:

{
  "mcpServers": {
    "gmail": {
      "command": "bun",
      "args": ["run", "/path/to/yagms/dist/gmail.js"],
      "env": {},
      "disabled": false,
      "autoApprove": []
    }
  }
}

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.