Skip to main content
Glama

Gmail MCP Server

by cskiro

Servidor MCP de Gmail

Un servidor de Protocolo de contexto de modelo (MCP) que integra Gmail con Claude Desktop, lo que permite a Claude acceder y comprender el contenido del correo electrónico mientras mantiene una gestión de contexto y controles de privacidad adecuados.

Características

  • Integración de la API de Gmail con la autenticación OAuth2
  • Gestión y almacenamiento seguros de tokens
  • Manejo de datos centrado en la privacidad
  • Gestión de ventanas de contexto para Claude
  • Registro completo y gestión de errores
  • Compatibilidad con Docker para una implementación sencilla

Prerrequisitos

  • Node.js >= 18.0.0
  • npm o hilo
  • Proyecto de Google Cloud con la API de Gmail habilitada
  • Clave API de Claude

Configuración

  1. Clonar el repositorio:
git clone https://github.com/yourusername/gmail-mcp-server.git cd gmail-mcp-server
  1. Instalar dependencias:
npm install
  1. Cree un archivo .env en el directorio raíz con las siguientes variables:
GOOGLE_CLIENT_ID=your_google_client_id GOOGLE_CLIENT_SECRET=your_google_client_secret GOOGLE_REDIRECT_URI=http://localhost:3000/auth/google/callback CLAUDE_API_KEY=your_claude_api_key PORT=3000
  1. Inicie el servidor de desarrollo:
npm run dev

Desarrollo

  • npm run dev : Inicia el servidor de desarrollo con recarga en caliente
  • npm test : Ejecutar pruebas
  • npm run lint : Ejecutar ESLint

Estructura del proyecto

gmail-mcp-server/ ├── src/ │ ├── server.js # Main server entry point │ ├── auth.js # Authentication handling │ ├── gmail.js # Gmail API integration │ ├── claude.js # Claude API integration │ ├── logger.js # Logging configuration │ └── utils/ # Utility functions ├── tests/ # Test files ├── .env # Environment variables ├── .gitignore # Git ignore rules ├── package.json # Project dependencies └── README.md # Project documentation

Contribuyendo

  1. Bifurcar el repositorio
  2. Crea tu rama de funciones ( git checkout -b feature/amazing-feature )
  3. Confirme sus cambios ( git commit -m 'Add some amazing feature' )
  4. Empujar a la rama ( git push origin feature/amazing-feature )
  5. Abrir una solicitud de extracción

Licencia

Este proyecto está licenciado bajo la licencia MIT: consulte el archivo de LICENCIA para obtener más detalles.

-
security - not tested
A
license - permissive license
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Un servidor de integración que permite a Claude Desktop acceder y procesar de forma segura el contenido de Gmail manteniendo al mismo tiempo una gestión de contexto y controles de privacidad adecuados.

  1. Características
    1. Prerrequisitos
      1. Configuración
        1. Desarrollo
          1. Estructura del proyecto
            1. Contribuyendo
              1. Licencia

                Related MCP Servers

                • A
                  security
                  A
                  license
                  A
                  quality
                  Model Context Protocol server for Gmail integration. This allows Claude Desktop (or any MCP client) to interact with your Gmail account through Google Apps Script.
                  Last updated -
                  3
                  7
                  8
                  JavaScript
                  MIT License
                  • Apple
                • -
                  security
                  A
                  license
                  -
                  quality
                  Server for Gmail integration in Claude Desktop with auto authentication support. This server enables AI assistants to manage Gmail through natural language interactions.
                  Last updated -
                  3,632
                  414
                  JavaScript
                  MIT License
                  • Linux
                  • Apple
                • -
                  security
                  A
                  license
                  -
                  quality
                  A server that allows Claude to search and retrieve emails from your Gmail account, supporting functions like searching emails, retrieving full content of specific emails, and listing recent messages.
                  Last updated -
                  2
                  Python
                  Apache 2.0
                • -
                  security
                  F
                  license
                  -
                  quality
                  An integration server that provides Claude Desktop access to Gmail, enabling users to view recent emails and search their Gmail inbox using natural language commands.
                  Last updated -
                  6
                  Python

                View all related MCP servers

                MCP directory API

                We provide all the information about MCP servers via our MCP API.

                curl -X GET 'https://glama.ai/api/mcp/v1/servers/cskiro/gmail-mcp-server'

                If you have feedback or need assistance with the MCP directory API, please join our Discord server