Add your description here
Project description
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:
- Service Account (via GOOGLE_APPLICATION_CREDENTIALS or GOOGLE_CREDENTIALS_CONFIG)
- OAuth 2.0 (via credentials.json and token.json)
- Application Default Credentials (ADC)
Requirements
- Python 3.10+
- google-auth
- google-auth-oauthlib
- google-api-python-client
- mcp-server
License
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_google_email-0.1.0.tar.gz.
File metadata
- Download URL: mcp_google_email-0.1.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cecf705dc4d84fa1e33e8ccb888fb800fac5caf445f444c4a75f832d010eb40b
|
|
| MD5 |
1612d928a391257a9924ed52a954292c
|
|
| BLAKE2b-256 |
48ae0e2cb0300e24cb62868f91c0bb1da54299cca1edb63f831ed8ba53ab2d9f
|
File details
Details for the file mcp_google_email-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mcp_google_email-0.1.0-py3-none-any.whl
- Upload date:
- Size: 1.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a34ee01035be963d04b0b1fea4794853335803812f86aeb41846a5ad44ea2a5f
|
|
| MD5 |
fedd64f1ab75e2d77b2efc055b920552
|
|
| BLAKE2b-256 |
c1093108f0bb324b785562ebabea63d7ad48193ad1cbbbc8090a61225d88b589
|