MCP Server for interacting with Gmail API. Written in TypeScript, Node and Hono.dev
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"gmail": {
"env": {
"NO_PROXY": "127.0.0.1,localhost"
},
"args": [
"mcp-remote",
"http://127.0.0.1:3000/mcp",
"--transport",
"http-only"
],
"command": "bunx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Streamable HTTP MCP server for Gmail — search threads, read messages, manage drafts, and organize your inbox.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in communication
Asynchronous coordination layer for AI coding agents: identities, inboxes, searchable threads, and advisory file leases over FastMCP + Git + SQLite
An MCP server that securely interfaces with your iMessage database via the Model Context Protocol (MCP), allowing LLMs to query and analyze iMessage conversations. It includes robust phone number validation, attachment processing, contact management, group chat handling, and full support for sending and receiving messages.
IMAP/SMTP email MCP server — 47 tools, IMAP IDLE push, multi-account, AI triage.
Email & SMS infrastructure for AI agents — send and receive real email and text messages programmatically
MCP Security Weekly
Get CVE alerts and security updates for Gmail Streamable Mcp Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
Streamable HTTP MCP server for Gmail — search threads, read messages, manage drafts, and organize your inbox.
Author: overment
[!WARNING] You connect this server to your MCP client at your own responsibility. Language models can make mistakes, misinterpret instructions, or perform unintended actions. Review tool outputs, verify results in Gmail, and prefer small, incremental writes.
The HTTP/OAuth layer is designed for convenience during development, not production-grade security. If deploying remotely, harden it: proper token validation, secure storage, TLS termination, strict CORS/origin checks, rate limiting, audit logging, and compliance with Google OAuth policies.
This repo works in two ways:
For production Cloudflare deployments, see Remote Model Context Protocol servers (MCP).
Gmail's API is powerful but not LLM-friendly out of the box. This server focuses on:
inbox_overview) instead of multiple queriesmodify_thread handles up to 100 threads at once)In short, it's not a direct mirror of Gmail's API — it's tailored so AI agents know exactly how to use it effectively.
inbox_overview and list_labels help avoid guessingmodify_thread accepts arrays to minimize tool callsPrerequisites: Bun, Node.js 24+, a Google account, and a Gmail-enabled Google Cloud project. For remote: a Cloudflare account.
http://127.0.0.1:3001/oauth/callback
alice://oauth/callback
cd gmail-mcp
bun install
cp env.example .env
Edit .env:
PORT=3000
AUTH_ENABLED=true
AUTH_STRATEGY=oauth
PROVIDER_CLIENT_ID=your-client-id.apps.googleusercontent.com
PROVIDER_CLIENT_SECRET=your-client-secret
PROVIDER_ACCOUNTS_URL=https://accounts.google.com
OAUTH_AUTHORIZATION_URL=https://accounts.google.com/o/oauth2/v2/auth
OAUTH_TOKEN_URL=https://oauth2.googleapis.com/token
OAUTH_REVOCATION_URL=https://oauth2.googleapis.com/revoke
OAUTH_SCOPES=https://www.googleapis.com/auth/gmail.readonly https://www.googleapis.com/auth/gmail.compose https://www.googleapis.com/auth/gmail.modify
OAUTH_REDIRECT_URI=alice://oauth/callback
OAUTH_REDIRECT_ALLOWLIST=alice:
... [View full README on GitHub](https://github.com/iceener/gmail-streamable-mcp-server#readme)