BM

baryhuang/mcp-headless-gmail

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

55 stars 29 forks 品質 67 トレンド 0MIT

baryhuang/mcp-headless-gmailは[https://github.com/baryhuang/mcp-headless-gmail.からインポートされたMCPサーバー候補です

概要

baryhuang/mcp-headless-gmailは[https://github.com/baryhuang/mcp-headless-gmail.からインポートされたMCPサーバー候補です

概要(AI 翻訳)

取得する MCP (Model Context Protocol) サーバー, ローカルのクレデンシャルやトークンのセットアップなしで Gmail を送信.

#MCP ヘッドレス Gmail Server の理由 ###重要な利点

  • Headless及びリモート・オペレーション: 他のMCP Gmailソリューションとは異なり、ドッカーとローカルファイルアクセスの外で実行する必要がある場合は、このサーバーは、ブラウザなしでローカルファイルアクセスなしで、リモート環境で完全にヘッドレスを実行できます。
  • 装飾建築: クライアントは、OAuth フローを独立して完了し、認証情報をこの MCP サーバーにコンテキストとして渡し、クレデンシャル ストレージとサーバーの実装を完全に分離します。

###ニースが重要ではない

  • 使用される機能: 多くのユースケースでは、特にマーケティングアプリケーションでは、Gmailアクセスのみが、カレンダーのような追加のGoogleサービスなしで必要であり、この焦点を絞った実装を理想的にします。
  • Docker-Ready:十分に隔離された、環境独立者、ワン クリックの組み立てのための考えの容器化と設計されていて。
  • 信頼性の依存関係: 十分に維持された google-api-python-client ライブラリで構築されています。

##特徴

  • 体の最初の1k文字でGmailから最新のメールを取得する

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

MCP Headless Gmail Server (NPM & Docker)

A MCP (Model Context Protocol) server that provides get, send Gmails without local credential or token setup.

Why MCP Headless Gmail Server?

Critical Advantages

  • Headless & Remote Operation: Unlike other MCP Gmail solutions that require running outside of docker and local file access, this server can run completely headless in remote environments with no browser no local file access.
  • Decoupled Architecture: Any client can complete the OAuth flow independently, then pass credentials as context to this MCP server, creating a complete separation between credential storage and server implementation.

Nice but not critical

  • Focused Functionality: In many use cases, especially for marketing applications, only Gmail access is needed without additional Google services like Calendar, making this focused implementation ideal.
  • Docker-Ready: Designed with containerization in mind for a well-isolated, environment-independent, one-click setup.
  • Reliable Dependencies: Built on the well-maintained google-api-python-client library.

Features

  • Get most recent emails from Gmail with the first 1k characters of the body
  • Get full email body content in 1k chunks using offset parameter
  • Send emails through Gmail
  • Refresh access tokens separately
  • Automatic refresh token handling

Prerequisites

  • Python 3.10 or higher
  • Google API credentials (client ID, client secret, access token, and refresh token)

Installation

# Clone the repository
git clone https://github.com/baryhuang/mcp-headless-gmail.git
cd mcp-headless-gmail

# Install dependencies
pip install -e .

Docker

Building the Docker Image

# Build the Docker image
docker build -t mcp-headless-gmail .

Usage with Claude Desktop

You can configure Claude Desktop to use the Docker image by adding the following to your Claude configuration:

docker

{
  "mcpServers": {
    "gmail": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "buryhuang/mcp-headless-gmail:latest"
      ]
    }
  }
}

npm version

{
  "mcpServers": {
    "gmail": {
      "command": "npx",
      "args": [
        "@peakmojo/mcp-server-headless-gmail"
      ]
    }
  }
}
GitHub で README 全文を見る

インストール

docker run -i --rm buryhuang/mcp-headless-gmail:latest
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "gmail": { "command": "docker", "args": [ "run", "-i", "--rm", "buryhuang/mcp-headless-gmail:latest" ] } } }