MCP.so
登录

MCP Server

@trasousa

基本信息

分类

其他

许可证

Apache-2.0 license

传输方式

stdio

作者

trasousa

关于 MCP Server

暂无概览

MCP Server 配置

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

{
  "mcpServers": {
    "mcp-server-trasousa": {
      "command": "uv",
      "args": [
        "pip",
        "install",
        "mcpo"
      ]
    }
  }
}

MCP Server 工具

工具列表暂未提供

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

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

概览

What is MCP Gmail Server?

It is an MCP (Model Context Protocol) server for Gmail that exposes tools like list_unread and search_emails over the MCP protocol. It handles OAuth2 authentication with Google and is designed for integration with MCP clients such as Open WebUI.

How to use MCP Gmail Server?

Install dependencies with uv, place OAuth2 credentials in secrets/credentials.json, then run with uv run gmail-server. Alternatively, expose via mcpo using uvx mcpo --port 8000 --api-key "your-api-key" -- uv run gmail-server. Use any MCP‑compliant client to invoke the tools.

Key features of MCP Gmail Server

  • list_unread tool to retrieve unread Gmail message snippets.
  • search_emails tool to search by Gmail query.
  • Seamless OAuth2 flow with token caching.
  • Asyncio‑based server compatible with MCP clients.
  • Can be wrapped with mcpo for HTTP/OpenAPI endpoints.

Use cases of MCP Gmail Server

  • Quickly check unread emails through an AI assistant.
  • Search for specific emails by sender or subject.
  • Integrate Gmail functionality into Open WebUI workflows.
  • Deploy as a containerized service using Docker.

常见问题

1

What tools does the server provide?

Two tools: `list_unread` (returns unread email snippets) and `search_emails` (returns emails matching a Gmail query).

2

What are the prerequisites?

Python 3.13 or newer, `uv` package manager, a Google account, and access to Google Cloud Console for Gmail API credentials.

3

How do I set up Gmail API credentials?

Create a project in Google Cloud Console, enable the Gmail API, configure an OAuth consent screen with your email as a test user, create an OAuth client ID for a desktop app, and place the downloaded JSON as `secrets/credentials.json`.

4

How do I run the server?

Run `uv run gmail-server` directly, or expose via `mcpo` with `uvx mcpo --port 8000 --api-key "your-api-key" -- uv run gmail-server`. The first run will prompt OAuth authorization in the browser.

5

Where are OAuth tokens stored?

A cached token is automatically saved to `secrets/token.json` after the first authorization, so subsequent runs do not require re‑authentication.

评论

其他 分类下的更多 MCP 服务器