hermes-google
A scoped MCP bridge that lets an AI assistant (Hermes) work with a dedicated Google account's Gmail, Calendar, and Drive.
Gmail — list unread forwarded mail, search with Gmail syntax, fetch messages (unwrapping forwards, extracting plain-text body, threading info, and cached attachments), mark read, and archive
Gmail drafting/sending — the schema exposes
mail_send_draft, which can send mail from the Hermes account (note: this contradicts the README, which claims no send capability; the README'smail_create_draft/mail_create_reply_draft/mail_update_draft/mail_delete_drafttools are absent from the schema)Calendar — list visible calendars and access roles, list events in a time range, create events (with attendees/description), patch event fields, and delete events
Drive — search by filename and MIME type, list folder contents, download/export files (Docs/Sheets/Slides to Markdown/CSV/PDF) into a local cache, upload, replace contents, move, and delete files
Auth — check whether stored credentials are valid, unexpired, and which OAuth scopes were granted
All write operations are documented as requiring user confirmation, and access is limited to what the personal account shares or forwards to the Hermes account
Allows reading and managing emails, including listing pending emails, searching, getting messages, sending drafts, marking read, and archiving.
Allows interacting with Google Calendar, including listing calendars, listing events, and creating, updating, and deleting events.
Allows searching, listing, uploading, updating, moving, and deleting files in Google Drive.
Click on "Deploy 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., "@hermes-google check 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.
hermes-google
MCP server giving Hermes (Claude Code running as a personal assistant) scoped access to Gmail, Google Calendar, and Google Drive through a dedicated Hermes Google account — without granting access to your personal Google account.
See docs/superpowers/specs/2026-04-23-hermes-google-design.md
for the original design and
docs/superpowers/specs/2026-11-09-drive-tools-and-gmail-drafts-design.md
for the 0.4.0 changes (full Drive scope, drafts-only Gmail).
Quick Start
Add hermes-google to your project's .mcp.json:
{
"mcpServers": {
"hermes-google": {
"type": "stdio",
"command": "uvx",
"args": ["hermes-google-mcp@latest"]
}
}
}Related MCP server: Google Workspace MCP Server
Google Account Setup
Sign up for a plain Gmail account (e.g.,
hermes-yourname@gmail.com)In Google Cloud Console: create a project, enable the Gmail, Calendar, and Drive APIs
Create an OAuth 2.0 Client ID (type: Desktop application) and download the client secret JSON
Save it as
~/.config/hermes-google/oauth_client.jsonRun the setup script:
git clone https://github.com/jimmy-larsson/hermes-google.git
cd hermes-google
./scripts/setup.shThe setup script creates the config, runs the OAuth flow (saving the token to
~/.config/hermes-google/token.json), and prints the remaining manual steps.
Scopes
The OAuth consent asks for exactly these scopes:
Scope | Used for |
| read the forwarded-mail inbox, mark read, archive, create and edit drafts |
| create, update and delete events on calendars shared with Hermes |
| list calendars and events |
| read, upload, update, move, rename, create folders and delete files shared with Hermes |
Hermes never sends mail: the server has no send tool, and gmail.modify is
needed for drafts anyway (every Gmail scope that allows drafts also allows
sending, so the guarantee is in the code, not the scope). The full drive
scope is needed to rename files you uploaded yourself; Hermes still only
reaches what you share with its account.
Upgrading from 0.3.x
0.4.0 changes the scope set. Re-run the consent flow once:
hermes-google auth login --headlessUntil you do, every tool returns stored token lacks scopes: ...; run 'hermes-google auth login' to re-consent.
Host-Side OAuth
The default OAuth flow opens a browser for consent, so it must run on your
host machine. Inside a headless container use hermes-google auth login --headless: it prints a URL to open in any browser and asks you to paste the
redirect URL back.
If your config and credentials live inside a container (e.g. Docker-mounted
~/.config/hermes-google/), you need to:
Copy
config.tomlandoauth_client.jsonto the host filesystem at~/.config/hermes-google/Run the OAuth flow from the host:
uvx hermes-google-mcp@latest auth loginThe resulting
token.jsonis saved on the host — it will be picked up by the container through the volume mount
Gmail Setup
Create filters in your personal Gmail to route emails to the Hermes account:
For each sender you want Hermes to handle: create a filter that both labels the email (e.g.
hermes-review) and forwards it tohermes-yourname@gmail.com, in a single filterForwarding a message to the Hermes account by hand works too
Hermes never sends mail. Reply drafts are written to the Hermes account's Drafts folder: open that account in Gmail (or add it to your mail app) to review and send. A draft sent from there goes out as the Hermes address unless you add your own address as a "Send mail as" alias in the Hermes account's Gmail settings.
Gotchas
Filters don't chain. Gmail evaluates all filters in a single pass against the original message properties. A label applied by filter A will not trigger filter B that matches on that label. You must combine label + forward into one filter per sender/criteria.
"Apply to existing" skips forwarding. When you click "Also apply filter to matching conversations", Gmail only runs local actions (label, archive, star). Forwarding only fires on new incoming messages.
Calendar & Drive Setup
Calendar: Share your calendar with the Hermes account at "Make changes to events" permission level. Set
[user].calendar_idinconfig.toml.Drive: Share the folders you want Hermes to work in with the Hermes account (editor access to rename or move your own files). Set
[drive].default_parent_folder_idinconfig.tomlto the shared folder so uploads and new folders land where you can see them; without it they go to the Hermes account's own My Drive root. Google Docs, Sheets and Slides are exported on download (Markdown, CSV and PDF by default).
Usage
Once installed, the following tools are available to Hermes in every session:
mail_list_pending,mail_search,mail_get,mail_create_draft,mail_create_reply_draft,mail_update_draft,mail_delete_draft,mail_mark_read,mail_archivecal_list_calendars,cal_list_events,cal_create_event,cal_update_event,cal_delete_eventdrive_search,drive_list,drive_get,drive_upload,drive_update,drive_move,drive_rename,drive_create_folder,drive_deleteauth_status
All write operations require user confirmation. The server has no send capability: Gmail writes are drafts in the Hermes mailbox, and you send them.
Data retention
Attachments fetched by mail_get and drive_get are cached under
~/.cache/hermes-google/. Files older than 30 days are deleted the first time
the server connects to Google after starting (and again whenever it reloads its
credentials), and hermes-google auth revoke clears the cache along with the
token, matching the retention limits in Google's Workspace AI Tools Addendum.
Debug CLI
Same operations via shell:
hermes-google auth status
hermes-google mail list --limit 10
hermes-google mail get <message_id>
hermes-google cal list --start 2026-04-24T00:00:00+09:00 --end 2026-04-25T00:00:00+09:00
hermes-google drive search "Q1 report"Revocation
Any one of these fully cuts an integration surface:
Delete the forwarding filter in your personal Gmail
Unshare your calendar with the Hermes account
Unshare a Drive file or folder
hermes-google auth revoke: removes the refresh token locally and clears the attachment cacheclaude mcp remove hermes-google— Hermes loses the tools; Google data untouchedDelete the Hermes Google account entirely
Development
conda activate hermes-google
pytest
ruff check src testsReleasing
# 1. Bump version in pyproject.toml, commit and push
git commit -am "chore: bump version to X.Y.Z"
git push
# 2. Tag locally and push — triggers the CI pipeline
git tag X.Y.Z
git push origin X.Y.Z
# 3. After CI passes, create the GitHub release
gh release create X.Y.Z --verify-tag --generate-notesAlternative Install Methods
# User scope — available in all your projects
claude mcp add -s user hermes-google -- uvx hermes-google-mcp
# Local scope — private to you in this project only
claude mcp add hermes-google -- uvx hermes-google-mcpAvailable Tools
24 toolsauth_statusAuth StatusARead-only
Report whether stored credentials are valid and loaded.
Returns dict with keys: valid (bool), expired (bool), scopes (the
OAuth scopes recorded in the stored token), and, only on failure, error
(string describing the auth or config problem).
Inputs: no named parameters. Returns: object
cal_create_eventCal Create EventA
Create a calendar event. Requires user confirmation before calling.
calendar accepts 'user', 'hermes', or a full Google Calendar ID.
start and end must be RFC 3339 datetimes with timezone offset.
Returns dict with key: id (created event ID).
Inputs: end (required), start (required), title (required), calendar (required), +2 more. Returns: object
cal_delete_eventCal Delete EventADestructive
Delete a calendar event. Requires user confirmation before calling.
calendar accepts 'user', 'hermes', or a full Google Calendar ID.
Returns dict with key: id (deleted event ID).
Inputs: calendar (required), event_id (required). Returns: object
cal_list_calendarsCal List CalendarsARead-only
List all calendars visible to Hermes (own calendar + any shared with Hermes).
Returns a list of dicts, each with keys: id (calendar ID), summary
(display name), access_role (e.g., 'owner', 'writer', 'reader').
Inputs: no named parameters. Returns: result
cal_list_eventsCal List EventsARead-only
List events in a calendar within a time range, sorted chronologically.
calendar accepts 'user' (your personal calendar), 'hermes' (Hermes's
primary calendar), or a full Google Calendar ID.
start and end must be RFC 3339 datetimes with timezone offset
(e.g., '2026-04-24T00:00:00+08:00'). Bare dates are rejected by the API.
Returns a list of dicts, each with keys: id, title, start, end,
attendees (list of email strings).
Inputs: end (required), start (required), calendar (required). Returns: result
cal_update_eventCal Update EventAIdempotent
Patch specific fields of a calendar event. Requires user confirmation before calling.
calendar accepts 'user', 'hermes', or a full Google Calendar ID.
fields is a dict of Google Calendar event fields to update (e.g.,
{"summary": "New title", "location": "Room 3"}).
Returns dict with key: id (updated event ID).
Inputs: fields (required), calendar (required), event_id (required). Returns: object
drive_create_folderDrive Create FolderA
Create a Drive folder. Requires user confirmation before calling.
If parent_folder_id is omitted, the folder is created in the configured
default parent folder. Drive allows several folders with the same name in
one parent, so list the parent with drive_list first.
Returns dict with keys: id, name, mime_type, parent_folder_id (the
parent used, or null for the account's own root).
Inputs: name (required), parent_folder_id. Returns: object
drive_deleteDrive DeleteADestructive
Delete a Drive file. Requires user to have used an explicit 'delete' verb.
Returns dict with key: id (deleted Drive file ID).
Inputs: file_id (required). Returns: object
drive_getDrive GetARead-only
Download a Drive file to the local cache directory.
Google Docs, Sheets and Slides are exported: Docs as Markdown, Sheets as
CSV (first sheet only), Slides as PDF. Pass export_mime_type for another
format, for example application/pdf for a Doc or
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet for a
Sheet with several tabs. Other Google-native types need export_mime_type.
For binary files export_mime_type is ignored. Shortcuts cannot be
downloaded; use their target.
The file is saved to ~/.cache/hermes-google/drive/<file_id>/. Use Claude Code's Read tool on the returned path to view the contents.
Returns dict with key: path (absolute local file path).
Inputs: file_id (required), export_mime_type. Returns: object
drive_listDrive ListARead-only
List children of a Drive folder by folder ID.
Returns a list of dicts, each with keys: id, name, mime_type.
Inputs: folder_id (required), limit. Returns: result
drive_moveDrive MoveBIdempotent
Move a Drive file into a different parent folder. Requires user confirmation before calling.
Returns dict with key: id (moved Drive file ID).
Inputs: file_id (required), parent_folder_id (required). Returns: object
drive_renameDrive RenameAIdempotent
Rename a Drive file or folder. Requires user confirmation before calling.
Works on anything Hermes can see, including files the user uploaded or shared. The name may not be empty or contain slashes.
Returns dict with keys: id, name (as stored by Drive), mime_type.
Inputs: file_id (required), new_name (required). Returns: object
drive_searchDrive SearchARead-only
Search Drive files visible to Hermes by filename.
Optionally filter by MIME type (e.g., 'application/pdf', 'application/vnd.google-apps.spreadsheet').
Returns a list of dicts, each with keys: id, name, mime_type.
Inputs: query (required), limit, mime_type. Returns: result
drive_updateDrive UpdateBIdempotent
Replace a Drive file's contents with a local file. Requires user confirmation before calling.
Returns dict with key: id (updated Drive file ID).
Inputs: file_id (required), local_path (required). Returns: object
drive_uploadDrive UploadA
Upload a local file to Drive. Requires user confirmation before calling.
If folder_id is omitted, uploads to the configured default parent folder.
Returns dict with key: id (created Drive file ID).
Inputs: name (required), local_path (required), folder_id. Returns: object
mail_archiveMail ArchiveAIdempotent
Archive a message in Hermes's inbox (removes the INBOX label).
Never call without user confirmation.
Returns dict with key: id (the message ID that was archived).
Inputs: message_id (required). Returns: object
mail_create_draftMail Create DraftA
Create a new draft in the Hermes account's Gmail. Does NOT send: the user reviews and sends it from Gmail. Requires user confirmation before calling.
Recipients are addr or Name <addr> strings with ASCII addresses; quote
a display name that contains a comma. attachments are absolute local file
paths (~ is expanded).
Returns dict with keys: draft_id, message_id, thread_id, to, cc,
subject, warning (always null for this tool).
Inputs: to (required), body (required), subject (required), cc, +1 more. Returns: object
mail_create_reply_draftMail Create Reply DraftA
Create a reply-all draft to a message in Hermes's inbox, threaded under the original conversation. Does NOT send. Requires user confirmation before calling.
message_id is the Gmail id from mail_list_pending or mail_get. By
default To is the original Reply-To or sender plus the original To
recipients, and Cc keeps the original Cc; the Hermes address and the
user's own address are dropped unless nothing else remains. Pass to
and/or cc to override. Unusable header addresses are skipped and listed
in warning.
Returns dict with keys: draft_id, message_id, thread_id, to, cc,
subject, warning.
Inputs: body (required), message_id (required), cc, to, +1 more. Returns: object
mail_delete_draftMail Delete DraftADestructive
Delete a draft from the Hermes account's Gmail.
Only call when replacing a draft the user has reviewed, or when the user explicitly asks to discard one.
Returns dict with key: draft_id.
Inputs: draft_id (required). Returns: object
mail_getMail GetARead-only
Fetch a single email by ID. Unwraps forwarded messages to extract the original.
Returns dict with keys: id, thread_id, sender (the account that
forwarded this message to Hermes), original_sender, original_subject,
original_body (plain text), original_to, original_cc,
original_reply_to, rfc_message_id, in_reply_to, references (RFC 822
threading headers; mail_create_reply_draft uses them for you),
forwarding_note (text the user wrote above the forward delimiter, or
null), attachment_paths (list of local file paths in ~/.cache/hermes-google/).
Inputs: message_id (required). Returns: object
mail_list_pendingMail List PendingARead-only
List unread forwarded emails in Hermes's inbox, newest first.
Returns a list of dicts, each with keys: id, thread_id, sender,
subject, date, snippet.
Inputs: limit. Returns: result
mail_mark_readMail Mark ReadBIdempotent
Mark a message as read in Hermes's inbox (removes the UNREAD label).
Returns dict with key: id (the message ID that was marked).
Inputs: message_id (required). Returns: object
mail_searchMail SearchARead-only
Search emails in Hermes's Gmail using Gmail search syntax.
Supports the same operators as the Gmail search bar (e.g., from:alice,
subject:invoice, after:2026/04/01).
Returns a list of dicts, each with keys: id, thread_id, sender,
subject, date, snippet.
Inputs: query (required), limit. Returns: result
mail_update_draftMail Update DraftAIdempotent
Revise a draft in place. Does NOT send. Requires user confirmation before calling.
Pass only the fields to change; omitted fields keep their stored values.
cc=[] clears Cc, attachments=[] removes all attachments, a list of
paths replaces them, and omitting attachments keeps the stored ones.
The draft keeps its draft_id. It is rewritten as plain text: formatting
added in Gmail is not kept, and an HTML-only draft needs an explicit body.
Returns dict with keys: draft_id, message_id, thread_id, to, cc,
subject, warning (always null for this tool).
Inputs: draft_id (required), cc, to, body, +2 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 24 tools
Tools are cleanly partitioned by domain prefix (mail_, cal_, drive_, plus auth_status) and each carries a distinct action. Within domains the boundaries are sharp: mail_list_pending (unread inbox) vs mail_search (Gmail query) vs mail_get (single fetch), and drive_search (by filename) vs drive_list (folder children) vs drive_get (download). An agent can pick the right tool without guessing.
The overwhelming majority follow a predictable domain_verb_noun pattern (mail_create_reply_draft, cal_update_event, drive_create_folder), which is highly consistent. The only outlier is auth_status, a noun phrase rather than a verb_noun action, but as a single auth check it remains readable and unambiguous.
24 tools is on the heavy side, but they are distributed across three substantial domains (9 mail, 6 calendar, 9 drive) plus auth, and each earns its place with a distinct verb. Nothing feels padded; the spread justifies the count, though it sits just above the comfortable 3-15 band.
Coverage is strong: mail has the full draft lifecycle plus read/archive and unwrapper, calendar has calendars/events CRUD, and Drive covers search, list, get, upload, update, move, rename, delete and folder creation. Minor gaps remain (no send, no Drive share/permissions, no general mail listing beyond unread), but agents can work around them.
Maintenance
Related MCP Connectors
Multiple Google accounts (Gmail, Calendar, Drive, Contacts, Tasks) in one Claude connector.
Multiple Google accounts (Gmail, Calendar, Drive, Contacts, Tasks) in one Claude connector.
Give Claude only the Google Drive files you choose. Every action logged.
Permissioned access to Gmail, Drive and Calendar via the user's own Google account
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables Claude to manage Gmail, Google Calendar, and Google Drive, including sending emails, scheduling meetings, and organizing files, with integrated workflows.5MIT
- AlicenseNot gradedqualityDmaintenanceEnables Claude Code to interact with Google Workspace services (Drive, Docs, Sheets, Slides, Forms, Gmail) via OAuth 2.0 authentication and natural language commands.1MIT
- FlicenseNot gradedqualityDmaintenanceEnables Claude to manage Google Workspace services such as Calendar, Gmail, and Docs with configurable access and safe-by-design limitations.2-
- AlicenseNot gradedqualityCmaintenanceEnables Claude to read and, when explicitly enabled, modify Gmail, Google Calendar, and Google Drive across multiple Google Workspace accounts while defaulting to read-only access.1MIT