Gmail-mcp-server
A resilient MCP server built with fastMCP for sending emails through Gmail's SMTP server using AI agents.
Documentation
Gmail-mcp-server
A resilient MCP server built with fastMCP for sending emails through Gmail's SMTP server using AI agents.
Features
- Send emails via Gmail SMTP
- Fetch recent emails from Gmail folders
- Handle email attachments
- Health check endpoint for deployment monitoring
Deployment on Smithery.ai
This server is configured for deployment on Smithery.ai using Streamable HTTP transport.
Configuration
The server requires the following configuration parameters:
- `smtp_username`: Your Gmail email address
- `smtp_password`: Your Gmail app password (not your regular password)
Health Check
The server provides a health check endpoint at `/health` for Smithery deployment monitoring.
CLAUDE CONFIG EXAMPLE
{
"mcpServers": {
"terminal_server": {
"command": "/Users/maitreyamishra/.local/bin/uv",
"args": [
"--directory", "Path to your mcp server file",
"run",
"terminal_server.py"
]
},
"web3_server": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:3000/mcp"
]
},
"gmail_mcp": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:8989/mcp"
]
}
}
}Port
The server runs on port 5000 and binds to all interfaces (0.0.0.0) for container deployment.
Local Development
1. Install dependencies:
pip install -r requirements.txt2. Set environment variables:
export SMTP_USERNAME="your-email@gmail.com"
export SMTP_PASSWORD="your-app-password"3. Run the server:
python gmail_mcp.pyDocker
Build and run with Docker:
docker build -t gmail-mcp .
docker run -p 5000:5000 -e SMTP_USERNAME=your-email -e SMTP_PASSWORD=your-password gmail-mcpFrequently asked questions
What is Gmail-mcp-server?
Gmail-mcp-server is A resilient MCP server built with fastMCP for sending emails through Gmail's SMTP server using AI agents.
How do I install Gmail-mcp-server?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is Gmail-mcp-server open source?
Yes — it is hosted on GitHub at https://github.com/MaitreyaM/Gmail-mcp-server and has 10 stars.
Related MCP tools
Cognee is the open-source AI memory platform for agents. Give your AI agents persistent long-term memory across sessions with a self-hosted knowledge graph engine.
Automate browser based workflows with AI
Hindsight: Agent Memory That Learns
A privacy-first app that strips AI watermarks from content you own.
Agent framework and applications built upon Qwen>=3.0, featuring Function Calling, MCP, Code Interpreter, RAG, Chrome extension, etc.
The power of Claude Code / GeminiCLI / CodexCLI + [Gemini / OpenAI / OpenRouter / Azure / Grok / Ollama / Custom Model / All Of The Above] working as one.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP