ovais-007/gmail-mcp-server
3.1
If you are the rightful owner of gmail-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A Model Context Protocol server for seamless Gmail integration, enabling email management and sending capabilities.
Gmail MCP Server
A Model Context Protocol server for Gmail integration.
Features
- Send emails through Gmail using App Password or OAuth2
- Professional email templates
- Gmail inbox management (with OAuth2)
- Configuration validation
Setup
-
Install dependencies
npm install
-
Configure Gmail
Copy
.env.example
to.env
and add your Gmail credentials:GMAIL_USER=ovais.00700@gmail.com GMAIL_APP_PASSWORD=your_app_password
-
Run the server
npm start
Usage
Add to your MCP client configuration:
{
"mcpServers": {
"gmail": {
"command": "node",
"args": ["/path/to/gmail-mcp-server/index.js"]
}
}
}
Then use commands like:
- "Send an email to someone@example.com"
- "Send an introduction email to ovais.00700@gmail.com"
- "Check Gmail configuration"
Authentication
App Password (Simple)
- Enable 2-factor authentication in Google Account
- Generate App Password for Mail
- Use in .env file
OAuth2 (Advanced)
For reading emails, you need OAuth2 setup with Google Cloud Console.
Author
Mohammad Ovais - ovais.00700@gmail.com