About Gmail Headless
Gmail Headless is an MCP server published by baryhuang in the Developer Tools category: a MCP (Model Context Protocol) server that provides get, send Gmails without local credential or token setup. Conduid read 4 tools from its source: gmail_get_email_body_chunk, gmail_get_recent_emails, gmail_refresh_token and gmail_send_email. No package is published for it, so it installs from a source checkout.
The repository has 55 stars and 29 forks, is licensed MIT, and its last commit was on 24 May 2025. Conduid has no tagged release on record for it. It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass Tests present and Scoped permissions. Its topics include devtools.
Install
git clone https://github.com/baryhuang/mcp-headless-gmailTools (4)
gmail_get_email_body_chunkGet a 1k character chunk of an email body starting from the specified offset| Parameter | Type | Description |
|---|---|---|
| google_access_token * | string | Google OAuth2 access token |
| message_id | string | ID of the message to retrieve |
| offset | integer | Offset in characters to start from (default: 0) |
| thread_id | string | ID of the thread to retrieve (will get the first message if multiple exist) |
gmail_get_recent_emailsGet the most recent emails from Gmail (returns metadata, snippets, and first 1k chars of body)| Parameter | Type | Description |
|---|---|---|
| google_access_token * | string | Google OAuth2 access token |
| max_results | integer | Maximum number of emails to return (default: 10) |
| unread_only | boolean | Whether to return only unread emails (default: False) |
gmail_refresh_tokenRefresh the access token using the refresh token and client credentials| Parameter | Type | Description |
|---|---|---|
| google_access_token | string | Google OAuth2 access token (optional if expired) |
| google_client_id * | string | Google OAuth2 client ID for token refresh |
| google_client_secret * | string | Google OAuth2 client secret for token refresh |
| google_refresh_token * | string | Google OAuth2 refresh token |
gmail_send_emailSend an email via Gmail| Parameter | Type | Description |
|---|---|---|
| body * | string | Email body content (plain text) |
| google_access_token * | string | Google OAuth2 access token |
| html_body | string | Email body content in HTML format (optional) |
| subject * | string | Email subject |
| to * | string | Recipient email address |
Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 1.0K words.
- ✓License declaredThe repository declares the MIT license.
- !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
- ✓Dependencies pinnedDependency versions are pinned by package-lock.json and uv.lock.
- ✓No dynamic code executionScanned 3 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdioserver.js:4
- Starts other programs
- No calls that start other programs
- Outbound network calls
- No outbound network calls
- Writes or deletes files
- No file writes or deletes
- Lockfile
- package-lock.json and uv.lock
Pattern matches on the source text of 3 files: places to read, not proof of what the code does at run time.
README
The repository's README runs to about 1.0K words, fetched a month ago. The original in the repository is authoritative.
Read full README