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 addresssmtp_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
-
Install dependencies:
pip install -r requirements.txt
-
Set environment variables:
export SMTP_USERNAME="your-email@gmail.com" export SMTP_PASSWORD="your-app-password"
-
Run the server:
python gmail_mcp.py
Docker
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-mcp
Metadata
Release files for iflow-mcp_maitreyam_gmail-mcp-server 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| iflow_mcp_maitreyam_gmail_mcp_server-1.0.0.tar.gz | 4.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| iflow_mcp_maitreyam_gmail_mcp_server-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.9 kB
Release files / iflow_mcp_maitreyam_gmail_mcp_server-1.0.0.tar.gz
| Download URL | iflow_mcp_maitreyam_gmail_mcp_server-1.0.0.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bda82bd59d2b5746e8769fc2a484950301c6ec1cff1dae45b9dda7778633d675
|
|
BLAKE2b-256 checksum How to use checksums |
111d39285ab667efd8ebd557a3a721b6e3a4bf6b6f051e06dc54be1a0356391b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / iflow_mcp_maitreyam_gmail_mcp_server-1.0.0-py3-none-any.whl
| Download URL | iflow_mcp_maitreyam_gmail_mcp_server-1.0.0-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ce9c29a3f6b8011f026e1e40d3550997b3ca069b4d3db3b18f6c6071ade64d05
|
|
BLAKE2b-256 checksum How to use checksums |
db5432382777efcbae0804b25a3944dafe62dcd82a72a48a3ad85216c2752fc1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|