MCP.so
登录

Gmail MCP Server

@ivanlhz

基本信息

分类

沟通协作

许可证

MIT

传输方式

stdio

作者

ivanlhz

关于 Gmail MCP Server

暂无概览

Gmail MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "gmail-mcp-server": {
      "command": "uv",
      "args": [
        "pip",
        "install",
        "-r",
        "uv.lock"
      ]
    }
  }
}

Gmail MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is gmail-mcp-server?

A server that exposes the Gmail API through the Model Context Protocol (MCP), designed for integration with LLMs and use in environments like Claude Desktop.

How to use gmail-mcp-server?

Install Python 3.11+, clone the repository, and use uv pip install -r uv.lock to manage dependencies. Build and install the package locally with uv run -m build then uv pip install dist/gmail_mcp_server-*.whl. Obtain Google OAuth credentials and set GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET as environment variables. Configure Claude Desktop by adding the executable path and credentials in its JSON configuration file.

Key features of gmail-mcp-server

  • Get all Gmail labels
  • Get, create, update, and delete labels
  • Mark emails as read or unread
  • Add labels to multiple emails
  • Search emails with pagination via Gmail query
  • Retrieve full email details by ID

Use cases of gmail-mcp-server

  • Automate email organization by creating and applying labels
  • Bulk mark emails as read/unread for inbox management
  • Search and retrieve specific emails for LLM-driven analysis
  • Integrate Gmail actions into AI assistant workflows (e.g., Claude Desktop)

常见问题

1

What are the runtime requirements?

Python 3.11 or higher and the `uv` dependency manager are required. Optional tools include `build` for packaging and Claude Desktop for integration.

2

How do I obtain Google OAuth credentials?

Create an OAuth 2.0 client ID in the Google Cloud Console (desktop application type), enable the Gmail API, and use the client ID and secret as environment variables.

3

Where does authentication data live?

Credentials are provided as environment variables (`GOOGLE_CLIENT_ID`, `GOOGLE_CLIENT_SECRET`) and are not stored by the server. OAuth tokens are managed by Google's client library at runtime.

4

How do I integrate this server with Claude Desktop?

Add the server executable path and credentials to `claude.config.json` under `mcpServers.gmail`, setting the command to either the full path to the executable or `gmail-mcp-server` if it's on the PATH.

5

What transport does the server use?

The server uses the standard MCP command-line interface transport (stdio) when launched by a client like Claude Desktop.

评论

沟通协作 分类下的更多 MCP 服务器