Gmail
@shinzo-labs
关于 Gmail
MCP Implementation for Gmail Services
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"gmail": {
"command": "npx",
"args": [
"@shinzolabs/gmail-mcp"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is Gmail?
A Model Context Protocol (MCP) server implementation for the Gmail API, providing a standardized interface for email management, sending, and retrieval. It enables AI agents and MCP-compatible clients to interact with Gmail programmatically through a unified set of tools.
How to use Gmail?
After setting up a Google Cloud project and enabling the Gmail API, users run npx @shinzolabs/gmail-mcp auth to obtain an OAuth refresh token. The server can then be installed locally via npx or by building from source, or used as a remote server through Smithery CLI. Configuration variables such as CLIENT_ID, CLIENT_SECRET, and REFRESH_TOKEN are set in the MCP client's config file.
Key features of Gmail
- Complete coverage of the Gmail API (messages, threads, labels, drafts, settings)
- Send, draft, and manage emails with full message manipulation
- Label management with customizable colors and visibility
- Thread operations for conversation-based management
- Settings management (vacation responder, IMAP/POP, language, filters)
- History tracking for mailbox changes
- Secure OAuth2 authentication using Google Cloud credentials
Use cases of Gmail
- Automate email sending and drafting from within an AI assistant
- Manage labels and threads to organize a Gmail inbox programmatically
- Configure vacation responders or IMAP/POP settings without manual clicks
- Integrate with building an AI-powered email client or chatbot
FAQ from Gmail
What are the prerequisites for using this server?
You need Node.js 18+, a Google Cloud project with the Gmail API enabled, and an OAuth 2.0 Client ID (Desktop app type). Each user must run the auth command to generate a refresh token.
How do I obtain a Gmail OAuth refresh token?
After setting up the Google API client once per organization, each user copies the OAuth keys file to ~/.gmail-mcp/gcp-oauth.keys.json and runs npx @shinzolabs/gmail-mcp auth. A browser window opens to approve scopes, and the refresh token is saved.
Is telemetry collected, and can I opt out?
Yes, limited anonymous telemetry is collected by default to improve the product. No personally identifiable information is included. You can disable telemetry by setting the environment variable TELEMETRY_ENABLED=false.
Where are credentials and configuration files stored?
By default, the Google API client keys are stored at ~/.gmail-mcp/gcp-oauth.keys.json and user credentials at ~/.gmail-mcp/credentials.json. You can override these paths using GMAIL_OAUTH_PATH and GMAIL_CREDENTIALS_PATH.
Can I run this server remotely (e.g., on Smithery)?
Yes. Use the Smithery CLI (npx -y @smithery/cli install @shinzo-labs/gmail-mcp) and provide your CLIENT_ID, CLIENT_SECRET, and REFRESH_TOKEN when prompted. The server will be hosted remotely and accessible to your MCP client.
沟通协作 分类下的更多 MCP 服务器
飞书MCP服务器
sdd330MCP server provides feishu related operations
feishu-tools-mcp
Li-vienMCP server provides Feishu related operations to AI encoding agents such as cursor 飞书MCP插件,读取文档、发送消息、合同审批、数据处理.....

Slack
modelcontextprotocolModel Context Protocol Servers
mcp-email-server
ai-zerolabIMAP and SMTP via MCP Server
MCP-Discord
barryyip0625Implement Discord MCP server enabling AI assistants to interact with the Discord platform.
评论