google-mcp-server
Allows reading unread messages, searching emails by keyword/sender/date, sending emails, and bulk-modifying messages (archive, mark read/unread, star, label, trash).
Allows listing upcoming events, searching events by keyword, showing today's and this week's schedule, listing all calendars, and getting event details by ID.
Provides reading full document content, listing recent documents, getting summary (title, ID, revision, paragraph count), and searching for specific text inside a document.
Enables listing files, searching by name, reading text content of documents/spreadsheets, viewing file metadata (size, owner, dates), browsing recently modified files, and listing folder contents.
Supports searching videos, getting video details (views, likes, duration, description), listing subscriptions, channel info, own channel stats, playlists, downloading videos/audio, listing all videos from a channel, and downloading entire channels.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@google-mcp-serverlist my unread emails"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Google MCP Server — AI agent for Gmail, Drive, Docs, YouTube & Calendar
This is an MCP (Model Context Protocol) server that lets an AI assistant read, search, and act on your Google Workspace account. It works with any MCP-compatible client (Claude, VS Code, Cursor, custom apps, etc.).
What it can do
Gmail
Show your email address
Read unread messages from your inbox
Search emails by keyword, sender, date, etc.
Get the full content of any email by ID
List all your Gmail labels
Send emails
Bulk-modify messages matching a Gmail query (archive, mark read/unread, star, label, or trash)
Google Drive
List files you have access to
Search files by name
Read text content of documents, spreadsheets, or files
See file metadata (size, owner, dates)
Browse recently modified files
List what's inside a folder
Google Docs
Read the full content of a document
List your recent documents
Get a summary (title, ID, revision, paragraph count)
Search for specific text inside a document
YouTube
Search for videos
Get video details (views, likes, duration, description)
List your subscriptions
Get info on any channel
Show your own channel stats
List your playlists
Download videos to local storage (mp4, webm, audio-only)
List all videos from any channel (by URL, @username, or channel ID)
Download entire channels (all videos from a channel to local disk)
Google Calendar
List upcoming events
Search events by keyword
Show today's schedule
Show this week's schedule
List all your calendars
Get event details by ID
Quick Start (one-time setup)
# 1. Run the setup script (installs everything automatically):
bash setup.sh
# 2. Activate the virtual environment:
source .venv/bin/activate
# 3. Run the interactive OAuth setup (opens a browser tab):
python -m vertex authWhat happens: A browser opens, you sign into Google, grant permissions, and credentials get saved to .env automatically.
Alternative: Manual credential setup
If you already have Google Cloud credentials:
Create an OAuth 2.0 Desktop Client ID at https://console.cloud.google.com/apis/credentials
Download the JSON and save it as
client_secrets.jsonin the project rootRun
python -m vertex authOr manually add to
.env(see.env.example)
How to use it
Check your credentials work
python -m vertex verifyThis tests connectivity to all 5 Google APIs. You'll see checkmarks or errors for each one.
Start the server
# Option A — using the module directly:
python -m vertex
# Option B — using the installed command:
google-mcp-serverThe server starts and listens for MCP connections from your AI client.
Run the OAuth flow again
python -m vertex authAvailable CLI commands
Command | What it does |
| Start the MCP server (default) |
| Run the OAuth consent flow to get/renew a refresh token |
| Check your credentials work with all Google APIs |
YouTube Video & Live Stream Downloads
Simple downloader - just paste a YouTube link!
./download_youtube.pySupports:
✅ Single video downloads (any quality)
✅ Live streams (current/ongoing)
✅ Past live streams
✅ Audio extraction (MP3)
See YOUTUBE_QUICK_START.md for usage guide.
Email Cleanup Helper
Clean up newsletters, promotions, and mass emails safely:
# See what can be cleaned up
python cleanup_emails.py stats
# Stage emails for review (adds _Review label)
python cleanup_emails.py stage
# Review what was labeled
python cleanup_emails.py review
# Delete confirmed emails
python cleanup_emails.py deleteSee EMAIL_CLEANUP_GUIDE.md for detailed instructions.
Running tests
# Unit tests (no internet needed, ~15s):
python -m pytest tests/unit/ -q
# Integration tests (requires real Google credentials):
python -m pytest tests/integration/test_real_connection.py -v
# All tests:
python -m pytest tests/ -q
# Shell-based CLI tests:
bash tests/scripts/test_cli.shHow it works
The server is built on the Model Context Protocol — a standard that lets AI tools communicate with external services. When an AI assistant calls a tool (like gmail_list_unread), the server:
Gets the right OAuth credentials for that service
Makes the Google API call
Returns the result as readable text
The AI reads it and can use it in its response or chain more calls
The server handles authentication automatically using saved refresh tokens — no need to re-authorize each time.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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/psckeithw/mcp-google'
If you have feedback or need assistance with the MCP directory API, please join our Discord server