Gmail MCP Server
@highlight-ing
关于 Gmail MCP Server
暂无概览
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"gmail-mcp-server-highlight-ing": {
"command": "node",
"args": [
"get-refresh-token.js"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is Gmail MCP Server?
Gmail MCP Server is a Model Context Protocol (MCP) server that provides tools for interacting with the Gmail API. It enables developers to manage emails programmatically—listing, searching, sending, and modifying messages—through the MCP interface.
How to use Gmail MCP Server?
Ensure Node.js 14+ is installed. Set up a Google Cloud project, enable the Gmail API, and create OAuth 2.0 credentials (Web application) with redirect URI http://localhost:3001/code. Place a credentials.json file in the root directory, then run node get-refresh-token.js to authorize the required scopes (gmail.modify, gmail.send) and obtain a refresh token. Configure your MCP settings file (e.g., cline_mcp_settings.json or claude_desktop_config.json) with the server command pointing to the built index.js and the access token in environment variables. Finally, run npm run build and start the MCP client.
Key features of Gmail MCP Server
- List recent emails with optional filtering
- Advanced email search using Gmail query syntax
- Send new emails with CC and BCC support
- Modify email labels (archive, trash, mark read/unread)
Use cases of Gmail MCP Server
- Automate inbox triage and label management
- Send programmatic replies or notifications via email
- Search for specific emails by sender, subject, or attachment
- Integrate email actions into AI-powered workflows
FAQ from Gmail MCP Server
What dependencies are required to run Gmail MCP Server?
Node.js version 14 or higher, a Google Cloud project with the Gmail API enabled, and OAuth 2.0 credentials (Client ID and Client Secret) are required.
How does authentication work?
The server uses OAuth 2.0 with a refresh token. Run node get-refresh-token.js to open a browser for consent, then the token is saved to token.json and the refresh token is displayed.
What Gmail API permissions does the server request?
It requests two scopes: https://www.googleapis.com/auth/gmail.modify and https://www.googleapis.com/auth/gmail.send.
How do I configure the server in an MCP client?
Add an entry to the mcpServers object in your MCP settings file with command node, args pointing to the built build/index.js, and an environment variable GOOGLE_ACCESS_TOKEN set to the obtained access token.
What email operations can I perform with this server?
You can list emails, search emails using Gmail query syntax, send emails with optional CC/BCC, and modify email labels (e.g., archive, trash, mark as read/unread).
常见问题
What dependencies are required to run Gmail MCP Server?
Node.js version 14 or higher, a Google Cloud project with the Gmail API enabled, and OAuth 2.0 credentials (Client ID and Client Secret) are required.
How does authentication work?
The server uses OAuth 2.0 with a refresh token. Run `node get-refresh-token.js` to open a browser for consent, then the token is saved to `token.json` and the refresh token is displayed.
What Gmail API permissions does the server request?
It requests two scopes: `https://www.googleapis.com/auth/gmail.modify` and `https://www.googleapis.com/auth/gmail.send`.
How do I configure the server in an MCP client?
Add an entry to the `mcpServers` object in your MCP settings file with command `node`, args pointing to the built `build/index.js`, and an environment variable `GOOGLE_ACCESS_TOKEN` set to the obtained access token.
What email operations can I perform with this server?
You can list emails, search emails using Gmail query syntax, send emails with optional CC/BCC, and modify email labels (e.g., archive, trash, mark as read/unread).
基本信息
沟通协作 分类下的更多 MCP 服务器
WhatsApp Web MCP
pnizerWhatsApp Web MCP Server
MCP Headless Gmail Server
baryhuangA MCP (Model Context Protocol) server that provides get, send Gmails without local credential or token setup.
MCP-Discord
barryyip0625Implement Discord MCP server enabling AI assistants to interact with the Discord platform.

AgentCouch
Messaging rooms for AI agents: hand off context across tools, worktrees, machines, and teammates. Agents meet in shared rooms over MCP, hand off directly, and leave a replayable transcript; live sessions wake on reply, b

Slack
modelcontextprotocolModel Context Protocol Servers
评论