convez.ai
MCP ServerIntegração & APIsIntermediário
hasmcp

Gmail MCP Server

hasmcp/gmail-mcp-server

Integração completa com Gmail via MCP para automação de emails

Ver no GitHub
InicialPluginScore · de 0 a 100

Servidor MCP que integra Gmail ao Claude, permitindo buscar, ler e enviar emails programaticamente. Utiliza a Gmail API com autenticação OAuth2 e suporta operadores avançados de pesquisa para filtrar mensagens com precisão.

Instalação

$npx convez-ai hasmcp/gmail-mcp-server

1 comando no terminal: detecta o formato do repositório (marketplace ou plugin avulso) e instala via Claude Code. Requer Node 18+ e o Claude Code instalado.

Métricas

Estrelas
3
Forks
0
Acompanhando
0
Saúde
50%
Último commit
há 5 meses
Versão
—
Issues abertas
0
Contribuidores
2

Casos de uso

  • Automatizar busca e leitura de emails em fluxos de trabalho
  • Enviar emails automaticamente baseado em contexto de conversação
  • Integrar processamento de emails com análise de conteúdo do Claude

Veredito

Ferramenta sólida para quem precisa automatizar operações de email via Claude. Requer configuração OAuth2 na Google Cloud, mas oferece acesso robusto aos principais recursos do Gmail com suporte a filtros sofisticados.

README

A tradução para o português deste README ainda está na fila.

Gmail MCP Server

Search emails

You can use standard Gmail search operators to refine your results. You can combine multiple filters by adding space after the filter applied.

  • from:amy@example.com: Find emails sent from a specific person.
  • subject:dinner: Find emails with "dinner" in the subject line.
  • after:2024/01/01 before:2024/02/01: Find emails received in January 2024.
  • in:sent: Search only messages in the Sent folder.
  • is:unread: Find unread messages.
  • "exact phrase": Search for an exact phrase

Read email content

Use the messageId coming from the search results.

Send email

Send only the available attributes in your request. Do not forget to set any required attribute. While sending email from attribute should be asked to user if not known. At worst case don't send the from attribute.

Server setup instructions

gmail

Gmail provider is using Gmail API to search, read and send emails using Gmail API.

To use this provider, please obtain OAuth2 ClientID and Client Secret by following the steps below:

  1. Create a Project:

  2. Enable Gmail API:

    • Navigate to APIs & Services > Library.
    • Search for "Gmail API" and click Enable.
  3. Configure Consent Screen:

    • Go to APIs & Services > OAuth consent screen.
    • Select External (unless using a Workspace org) and click Create.
    • Enter an App Name (e.g., "HasMCP") and Support Email.
    • Important: Add the following Scopes:
      • https://www.googleapis.com/auth/gmail.readonly
      • https://www.googleapis.com/auth/gmail.compose
    • Add your own email address as a Test User.
  4. Create Credentials:

    • Go to APIs & Services > Credentials.
    • Click Create Credentials > OAuth client ID.
    • Select Web application.
    • Authorized Redirect URIs: Enter https://app.hasmcp.com/oauth2/callback (Confirm this URI in your HasMCP Provider settings).
    • Click Create.
    • Copy the Client ID and Client Secret.

More details are available in: https://docs.hasmcp.com/tutorials/gmail-mcp-server

Tools (3)

  • sendEmail — Send new email or reply to thread
  • searchEmails — Search for emails. Use 'q' for query (e.g. 'from:alice')
  • readEmailSnippet — Read initial part of the email content along with email headers.
Ver o original no GitHub

Bom para

Relacionados