Gmail MCP Server
Enables sending emails through Gmail with support for specifying recipients, subject lines, and plain text message content.
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., "@Gmail MCP Server send an email to john@example.com about our meeting tomorrow"
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.
MCP Gmail Server
A minimal Model Context Protocol (MCP) server that sends emails through Gmail.
Quick Start
Install dependencies:
npm installSet up Gmail credentials:
cp .env.example .env # Edit .env with your Gmail credentialsBuild and run:
npm run build npm start
Related MCP server: Gmail MCP Server
Configuration
Set these environment variables in .env:
GMAIL_USER: Your Gmail addressGMAIL_PASS: Gmail App Password (not your regular password)
Usage
The server exposes one tool: send_email
Parameters:
to: Recipient email addresssubject: Email subject linebody: Email content (plain text)
Files
src/index.ts- Main MCP server implementation.well-known/mcp.json- MCP server manifest.vscode/mcp.json- VS Code MCP configuration
Testing
# Test with MCP Inspector
npx @modelcontextprotocol/inspector node build/index.js
## How It Works
1. Creates MCP server with Gmail transporter
2. Registers `send_email` tool with input validation
3. Connects via STDIO transport for MCP communication
4. Returns structured responses with success/error statesAvailable Tools
1 toolsend_emailSend EmailB
Send an email using Gmail SMTP
Inputs: to (required), subject (required), body (required). Returns: error, success, messageId
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool, there is no possibility of confusion or overlap between tools. The tool 'send_email' has a clear and distinct purpose that cannot be mistaken for any other tool in this set.
A single tool inherently has perfect naming consistency, as there are no other tools to compare it against. The name 'send_email' follows a clear verb_noun pattern, which would be consistent if more tools were added.
A Gmail server with only one tool is too limited for its apparent scope. Gmail involves operations like reading, listing, deleting, and managing emails, so a single send tool leaves significant functionality uncovered, making it inappropriate for comprehensive use.
The tool set is severely incomplete for a Gmail server. It only supports sending emails, missing essential operations such as retrieving, listing, deleting, or managing emails and labels. This gap will cause frequent agent failures when trying to perform common Gmail tasks.
Related MCP Connectors
Manage Gmail messages, threads, labels, drafts, and settings from your workflows. Send and organiz…
Manage Gmail end-to-end: search, read, send, draft, label, and organize threads. Automate workflow…
Let AI agents send email from your own Gmail, Microsoft 365 or SMTP inbox, with guardrails.
Email infrastructure for AI agents — send, receive, search, and reply to email over MCP.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables interaction with Gmail through the Gmail API with OAuth2 authentication. Supports reading, sending, searching emails, and managing read status through natural language.-
- FlicenseNot gradedqualityNot gradedmaintenanceEnables interaction with Gmail through the Gmail API, allowing users to list, read, search emails, create and send drafts, and get email summaries through natural language commands with OAuth2 authentication.-
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to send, read, list, and reply to emails via the Gmail API.Apache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to send, search, and read emails via Gmail using OAuth2 authentication.1MIT