Back to Apps

Gmail MCP Server
by paulfidika
Interact with Gmail: search threads, manage drafts, and extract attachment text with AI-powered style matching.
0 stars
Works in:Cursor
Exposes:ToolsResourcesPrompts
What it does
Connects AI agents to Gmail, enabling them to search through email threads, extract content from attachments, and create drafts that mimic the user's personal writing style.
Tools
search_threads: Search Gmail using advanced queries (e.g., from: or subject:).create_draft: Create or update email drafts, utilizing a style guide for authenticity.extract_attachment_by_filename: Extract text from PDF, DOCX, and TXT files.get_personal_email_style_guide: Retrieves the user's generated writing style guide.
Installation
Build the server using go build . and add the following to your claude_desktop_config.json:
{
"mcpServers": {
"gmail": {
"command": "/path/to/gmail-mcp-server",
"env": {
"GMAIL_CLIENT_ID": "your_client_id",
"GMAIL_CLIENT_SECRET": "your_client_secret",
"OPENAI_API_KEY": "your_openai_api_key"
}
}
}
}
Supported hosts
Confirmed for Claude Desktop and Cursor.
Choose your AI client and follow the steps below.
Cursor
Add to mcp.json with GMAIL_CLIENT_ID, GMAIL_CLIENT_SECRET, and OPENAI_API_KEY env vars.Claude Desktop
Add to claude_desktop_config.json with GMAIL_CLIENT_ID, GMAIL_CLIENT_SECRET, and OPENAI_API_KEY env vars.





