Send an email with subject, content, attachments, and recipients
Read email messages by ID with advanced MIME structure handling
Search emails with various criteria like subject, sender, date range
List all available Gmail labels (system and user-defined)
Create a new Gmail label
Update an existing Gmail label
Delete a Gmail label
List emails in inbox, sent, or custom labels
Mark emails as read
Mark emails as unread
Move emails to different labels/folders
Delete emails
Batch operations for efficiently processing multiple emails at once
Gmail AutoAuth provides a seamless integration between AI assistants and Gmail, enabling natural language management of your email. With comprehensive support for sending, reading, searching, and organizing emails, this tool transforms how you interact with your inbox. The server features automatic authentication handling, making setup straightforward while maintaining security. It supports advanced email operations including HTML formatting, attachment handling, label management, and batch operations for efficiently processing multiple emails at once.
Gmail AutoAuth enables AI assistants to interact with your Gmail account through natural language. This integration allows you to manage your emails efficiently without leaving your AI assistant interface.
npx -y @smithery/cli install @gongrzhe/server-gmail-autoauth-mcp --client claude
Create OAuth Credentials:
http://localhost:3000/oauth2callback
to authorized redirect URIsgcp-oauth.keys.json
Authentication Setup:
mkdir -p ~/.gmail-mcp
mv gcp-oauth.keys.json ~/.gmail-mcp/
npx @gongrzhe/server-gmail-autoauth-mcp auth
~/.gmail-mcp/credentials.json
Configure in Claude Desktop:
Authentication:
docker run -i --rm \
--mount type=bind,source=/path/to/gcp-oauth.keys.json,target=/gcp-oauth.keys.json \
-v mcp-gmail:/gmail-server \
-e GMAIL_OAUTH_PATH=/gcp-oauth.keys.json \
-e "GMAIL_CREDENTIALS_PATH=/gmail-server/credentials.json" \
-p 3000:3000 \
mcp/gmail auth
Configure in Claude Desktop:
For cloud environments where localhost isn't accessible:
npx @gongrzhe/server-gmail-autoauth-mcp auth https://yourdomain.com/oauth2callback
Once installed and authenticated, you can use natural language to interact with your Gmail account through Claude. Examples include:
The server handles the translation between your natural language requests and the appropriate Gmail API calls.