Skip to main content
Glama
gaberogan

gmail-read-mcp

by gaberogan

gmail-read-mcp

単一のメールボックスに限定された読み取り専用のGmail MCPサーバー。stdio上で2つのツールを公開します:

  • list_emails - 日付範囲で受信したメールを一覧表示: メタデータ+スニペット、古い順(最大500件)

  • read_email - IDで1件のメールの完全なヘッダーと本文テキストを読み取る

書き込み、送信、ラベル付け、削除の機能はありません。すべての結果には、メールボックスにサインインしている誰でもメールを開けるjump_urlディープリンク(rfc822msgid:検索)が含まれます。メールボックス自体から送信されたメール(チームの返信)はデフォルトで除外され、スパムとゴミ箱は常に除外されます。

Google OAuthのセットアップ

  1. Google Cloudプロジェクトを作成し(本番プロジェクトとは別に — 同意画面はプロジェクトごとです)、Gmail APIを有効にします。

  2. OAuth同意画面を内部に設定します(gmail.readonlyスコープの制限付きスコープ検証をスキップします)。

  3. タイプデスクトップアプリのOAuthクライアントを作成し、クライアントJSONをダウンロードします。

  4. 対象のメールボックスとしてサインインして、1回限りの同意フローを実行します:

    node scripts/gmail-oauth-once.mjs <path-to-client-secret.json>

    リフレッシュトークンと、それがバインドされているメールボックスが出力されます。

リフレッシュトークンに有効期限はありませんが、Googleはアカウントのパスワードが変更されるとGmailスコープのトークンを取り消します。サーバーがinvalid_grantで失敗し始めた場合は、手順4を再実行してGMAIL_REFRESH_TOKENを置き換えてください。

Related MCP server: Gmail MCP Server

ローカルセットアップ

cp .env.example .env
# Fill in GMAIL_CLIENT_ID, GMAIL_CLIENT_SECRET, GMAIL_REFRESH_TOKEN
npm install
npm start

テスト

npm test
Install Server
F
license - not found
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    Provides access to Gmail functionalities including listing unread emails, searching via query syntax, and managing messages through archiving or marking as read. It enables MCP clients to securely interact with and organize email data using the Gmail API.
    5
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    Enables reading Gmail emails through the Model Context Protocol, supporting listing, searching, and retrieving email details with OAuth 2.0 authentication.
    4
    19
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides read-only access to Gmail, enabling email search, unread listing, message and thread retrieval, and draft reply preparation without sending.
    231
    MIT

View all related MCP servers

Related MCP Connectors

  • Manage Gmail end-to-end: search, read, send, draft, label, and organize threads. Automate workflow…

  • Read, search, send, organize, draft and schedule email across your inboxes from any MCP client.

  • Manage Gmail messages, threads, labels, drafts, and settings from your workflows. Send and organiz…

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/gaberogan/gmail-read-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server