MCP server · Audited from source
Headless Gmail MCP server
by baryhuang/mcp-headless-gmailMIT licenceAudited 8 Oct 2026 · source c22ea50df129
Is it safe? Yes — SAFE, grade B (89/100). It exposes 4 tools: 3 read, 1 write and 0 destructive. The audit recorded 4 findings (0 critical, 0 high, 0 medium, 3 low). Maintainer's description: A MCP (Model Context Protocol) server that provides get, send Gmails without local credential or token setup.
Cite
Cite this page
ModelsAtlas. “Headless Gmail MCP server (baryhuang/mcp-headless-gmail)”. Retrieved 8 Oct 2026. https://modelsatlas.com/mcp/baryhuang/headless-gmail
Trust audit
Audit 0.4.1 · full source read 8 Oct 2026
4 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.
What the source does
- FilesystemNone observedNothing seen in the source
- NetworkNone observedNothing seen in the source
- ShellNone observedNothing seen in the source
- DependenciesNot pinnedSome ranges float
- SecretsNone foundNo keys in source
“Declared” means the server says it does this and the source agrees. Browser, file and shell access are expected of some kinds of server.
Five audit layers
| Layer | What we check | Result |
|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS |
L1 Static source | Secrets, path traversal, supply chain | PASS 1 finding |
L2 Instructions | Prompt injection and authority framing in docs and tool descriptions | PASS 3 findings |
L3 Inventory | Declared tools match the source | PASS |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED |
Provenance & runtime
Who published it, and what the audit could and could not run
Provenance
- Repository owner
baryhuangUser accountAccount type recorded when we read the repository. - PackagePublished on npm
@peakmojo/mcp-server-headless-gmailat version 0.1.0 - LicenceMITFrom the repository, as read at the audited commit.
- Last push17 months agoActivity of the repository when we read it.
- Source commit readc22ea50df129The audit covers exactly this commit, read on 8 Oct 2026.
Runtime
- Sandbox runNot run yetThis audit read the source only; it did not execute the server.
- Tool inventory4 declaredRead from the source and classed read, write or destructive.
Every value here is read from the record's own repository and audit.Suggest a correction
Findings (4)
Sorted by severity
LOWSupply chainsupply.unpinned · package.json
@modelcontextprotocol/sdk, googleapis, luxon, zod, node-fetch
- Why
- 5 dependency range(s) float
- Fix
- pin exact versions or ship a lockfile
LOWPrompt injectionprompt.transfer_instruction · README.md:5
A MCP (Model Context Protocol) server that provides get, send Gmails without local credential or token setup.
- Why
- an instruction to move sensitive data to an outside destination
- Fix
- remove; a skill never needs the user's secrets off the machine
LOWPrompt injectionprompt.transfer_instruction · README.md:237
This server requires direct access to your Google API credentials. Always keep your tokens and credentials secure and never share them with untrusted parties.
- Why
- an instruction to move sensitive data to an outside destination
- Fix
- remove; a skill never needs the user's secrets off the machine
INFOPrompt injectionprompt.credential_read · README.md:237
This server requires direct access to your Google API credentials. Always keep your tokens and credentials secure and never share them with untrusted parties.
- Why
- asks the agent to read credentials
- Fix
- —
Tools it exposes
4 declared in source · 0 destructive
| Tool | Risk | What it does |
|---|---|---|
gmail_send_email | write | Send an email via Gmail |
gmail_get_email_body_chunk | read | Get a 1k character chunk of an email body starting from the specified offset |
gmail_get_recent_emails | read | Get the most recent emails from Gmail (returns metadata, snippets, and first 1k chars of body) |
gmail_refresh_token | read | Refresh the access token using the refresh token and client credentials |
Install
Package version 0.1.0 · audited commit c22ea50
One-click links open your editor with the config below filled in, exactly as the snippets show it, pinned to version 0.1.0. The audit covers commit c22ea50 only.
claude mcp add mcp-server-headless-gmail -- npx -y @peakmojo/[email protected]
{
"mcpServers": {
"mcp-server-headless-gmail": {
"command": "npx",
"args": [
"-y",
"@peakmojo/[email protected]"
]
}
}
}The command pins the package version recorded in the source (0.1.0); the audit covers commit c22ea50df129. Transport: stdio. No environment variables required.
Audit history
- ✓SAFE B 89 / 100
First audit ·
c22ea50df129
README badge
For maintainers · updates on every re-audit
[](https://modelsatlas.com/mcp/baryhuang/headless-gmail/)
The badge always shows the latest audit; a maintainer cannot pin an old verdict.
Other ratings
Cited, never blended into our score
No third-party security ratings are recorded for this server yet. When they exist they appear here with their source and date, beside, not inside, our grade.
Questions about Headless Gmail MCP server
What is the Headless Gmail MCP server?
What tools does Headless Gmail expose?
Is Headless Gmail safe to connect to an agent?
What credentials does Headless Gmail need?
How does Headless Gmail run?
How current is this page?
Sources
- baryhuang/mcp-headless-gmail on GitHub — the source we read, its licence, stars and activityObserved · 8 Oct 2026
- ModelsAtlas trust audit — SAFE verdict for commit c22ea50df129Observed · 8 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What is the Headless Gmail MCP server?
- What tools does Headless Gmail expose?
- Is Headless Gmail safe to connect to an agent?