Cover image
Try Now
2025-04-04

Otro servidor de Gmail MCP

3 years

Works with Finder

1

Github Watches

0

Github Forks

0

Github Stars

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:example@gmail.com 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": []
    }
  }
}

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • tomoyoshi hirata
  • Sony α7IIIマニュアルアシスタント

  • https://zenepic.net
  • Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.

  • apappascs
  • Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.

  • ShrimpingIt
  • Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx

  • jae-jae
  • Servidor MCP para obtener contenido de la página web con el navegador sin cabeza de dramaturgo.

  • ravitemer
  • Un poderoso complemento Neovim para administrar servidores MCP (protocolo de contexto del modelo)

  • patruff
  • Puente entre los servidores Ollama y MCP, lo que permite a LLM locales utilizar herramientas de protocolo de contexto del modelo

  • pontusab
  • La comunidad de cursor y windsurf, encontrar reglas y MCP

  • JackKuo666
  • 🔍 Habilitar asistentes de IA para buscar y acceder a la información del paquete PYPI a través de una interfaz MCP simple.

  • av
  • Ejecute sin esfuerzo LLM Backends, API, frontends y servicios con un solo comando.

    Reviews

    2 (1)
    Avatar
    user_7EIZnxki
    2025-04-16

    As a dedicated user of MCP applications, I highly recommend yagms by acro5piano. This product adds tremendous value and functionality, proving indispensable for projects requiring high efficiency and robust performance. Check it out at https://github.com/acro5piano/yagms and you won't be disappointed!