toolspace › registry › Yep Gmail
Yep Gmail
Read, search, label, and send Gmail on the user's behalf via the Gmail API. MCP-stdio server, OAuth refresh-token auth, no inbox-content stored server-side.
Install
install-manifest install https://toolspace.yepgent.com/examples/gmail.json
manifest JSON · source · docs · issues · homepage
Security
| Kill switch | shell Programmatic: |
|---|---|
| Smoke contract | mcp-tool-call timeout 15s · |
Scopes
-
gmail.messagesread https://www.googleapis.com/auth/gmail.readonlyRequired to search the user's inbox, fetch threads, and read message bodies for context when drafting replies or triaging.
-
gmail.draftsread, write https://www.googleapis.com/auth/gmail.composeCreates draft replies for the user to review and send; lists existing drafts to avoid duplicates. Drafts are never auto-sent by this tool.
-
gmail.labelsread, write https://www.googleapis.com/auth/gmail.modifyApplies and removes labels on threads to mark agent-processed messages and to support user-defined organization schemes. Cannot read message contents under this scope alone — works alongside gmail.messages:read.
-
net.outboundread googleapis.comTool calls api.googleapis.com for all Gmail operations. No other outbound destinations.
Environment
GOOGLE_CLIENT_ID |
Your Google OAuth 2.0 Client ID for the project that has the Gmail API enabled. Looks like '123456789012-abc...apps.googleusercontent.com'. Found in Google Cloud Console > APIs & Services > Credentials. required · secret: no · obtain |
|---|---|
GOOGLE_CLIENT_SECRET |
Your Google OAuth 2.0 Client Secret, paired with the Client ID above. Treat as a password. required · secret: yes · obtain |
GOOGLE_REFRESH_TOKEN |
Long-lived OAuth refresh token for the Gmail account this tool will operate on. Run `python -m yep_gmail_tool.authorize` once to obtain — follow the URL, paste the consent code, and the token prints. The host stores it in your secret backend. required · secret: yes · obtain |
GMAIL_DEFAULT_LABEL |
Optional default Gmail label this tool will apply to messages it processes. Leave blank to skip auto-labeling. Useful for distinguishing agent-touched threads from human-touched ones in your inbox. optional · secret: no (default |
Verify & cost
| Install fee | 0¢ |
|---|---|
| Monthly fee | 0¢ |
| Usage model | external |
Runtime
runtime: mcp-stdio · install method: pip · entrypoint: python -m yep_gmail_tool.server
Exposes a small MCP toolset over the Gmail API: search_threads, get_thread, create_draft, label_thread, unlabel_thread, list_drafts, list_labels, create_label. Designed for autonomous agents that need to triage, draft replies, and organize a user's inbox without a human in the loop. Authenticates via standard Google OAuth installed-app flow; the user grants once, the refresh token is stored locally by the host, and the tool exchanges it for short-lived access tokens at runtime. No message bodies are persisted by the tool itself. All API calls flow user → tool → Google → tool → user.
Tags: emailgmailgooglemessagingmcp
License: MIT
Last fetched (working tree) (local)