Skip to main content

MCP Gmail Service

A Gmail service implementation using MCP (Model Control Protocol) that provides functionality for sending, receiving, and managing emails through Gmail's API.

Features

  • Email sending and receiving
  • Message listing with search capabilities
  • Reply to existing messages
  • Today's message retrieval
  • Multiple authentication methods support

Installation

pip install mcp-gmail

Usage

from mcp_gmail import FastMCP

# Initialize the Gmail service
gmail_service = FastMCP("GMail")

# List unread messages
messages = gmail_service.list_message(query='is:unread', max_results=10)

# Send an email
gmail_service.send_message(
    to='recipient@example.com',
    subject='Test Email',
    message_text='Hello, this is a test email'
)

# Get today's messages
todays_messages = gmail_service.get_todays_messages(max_results=20)

# Reply to a message
gmail_service.reply_to_message(
    message_id='message_id_here',
    reply_text='Thank you for your email'
)

Authentication

The package supports multiple authentication methods:

  1. Service Account (via GOOGLE_APPLICATION_CREDENTIALS or GOOGLE_CREDENTIALS_CONFIG)
  2. OAuth 2.0 (via credentials.json and token.json)
  3. Application Default Credentials (ADC)

Requirements

  • Python 3.10+
  • google-auth
  • google-auth-oauthlib
  • google-api-python-client
  • mcp-server

License

MIT License

Metadata

Release files for mcp-google-email 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-google-email 0.1.1
File Size Uploaded Provenance
mcp_google_email-0.1.1.tar.gz 5.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for mcp-google-email 0.1.1
File Interpreter ABI Platform
mcp_google_email-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 11.9 kB

Release files / mcp_google_email-0.1.1.tar.gz

Download URL mcp_google_email-0.1.1.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7cd045735971e59dd358fbaf93bc27ba2f6b1d64e029f0407e45891bf1684fce
BLAKE2b-256 checksum
How to use checksums
66f9453a32f29c0bc3cbcab31012c8a65e0b0d7a9d9eb04bfd6042c1d5a95a71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.7

Release files / mcp_google_email-0.1.1-py3-none-any.whl

Download URL mcp_google_email-0.1.1-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a614167320555466510c7480cb348956c00907c467992e4b7f9ac6ed54985321
BLAKE2b-256 checksum
How to use checksums
172a430387013dfbbc03222abb1a1773f9787f9a0a36d649786acbeec445b719
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.7

Security for mcp-google-email 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page