MM

markuspfundstein/mcp-gsuite

Developer tools

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

491 stars 100 forks 品質 69 トレンド 20MIT

Google Gsuiteプロダクトとやり取りするためのMCPサーバー

概要

Google製品とやり取りするためのMCPサーバー。 現在、このMCPサーバーは以下の機能でGmailとカレンダー連携をサポートしています: 2. Gmail * Gmailユーザー情報を取得 * 柔軟な検索でメールを検索(未読、特定送信者、日付範囲、添付付き)で検索 * IDでメール内容を全て取得 * 受信者、件名、本文、CCオプションで新しい下書きメールを作成する * 下書きメールを削除する * 既存のメールに返信する(すぐに送信または下書きとして保存可能) * 複数のメールをIDで一度に取得する。* メールからローカルシステムに複数の添付ファイルを保存する。 3.

概要(AI 翻訳)

Google製品とやり取りするためのMCPサーバー。

例示プロンプト

現在、このMCPサーバーは以下の機能でGmailとカレンダー連携をサポートしています:

  1. 一般
  • 複数のGoogleアカウント
  1. Gmail
  • Gmail ユーザー情報を入手
  • 柔軟な検索機能付きのメールクエリ(例:未読、特定の送信者からの、日付範囲、添付付き)
  • IDでメールの全内容を取得する
  • 受信者、件名、本文、CCオプションを含む新しい下書きメールを作成する
  • 下書きメールを削除してください
  • 既存のメールに返信(すぐに送信または下書きとして保存可能)
  • 複数のメールアドレスをIDで同時に取得する。
  • メールから複数の添付ファイルをローカルシステムに保存してください。
  1. カレンダー
  • 複数のカレンダーを管理する
  • 指定された時間範囲内のカレンダーイベントを取得する
  • カレンダーイベントを作成する:
  • タイトル、開始/終了時間
  • 任意の場所と説明
  • 任意参加者
  • カスタムタイムゾーンサポート
  • 通知設定
  • カレンダーイベントを削除する

試せる例示題:

  • 未読メッセージを最新のものに取り戻す
  • スクラムマスターからのメールを検索
  • 会計からすべてのメールを取得
  • ABCに関するメールを要約してください

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

README

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

mcp-gsuite MCP server

MCP server to interact with Google products.

Example prompts

Right now, this MCP server supports Gmail and Calendar integration with the following capabilities:

  1. General
  • Multiple google accounts
  1. Gmail
  • Get your Gmail user information
  • Query emails with flexible search (e.g., unread, from specific senders, date ranges, with attachments)
  • Retrieve complete email content by ID
  • Create new draft emails with recipients, subject, body and CC options
  • Delete draft emails
  • Reply to existing emails (can either send immediately or save as draft)
  • Retrieve multiple emails at once by their IDs.
  • Save multiple attachments from emails to your local system.
  1. Calendar
  • Manage multiple calendars
  • Get calendar events within specified time ranges
  • Create calendar events with:
    • Title, start/end times
    • Optional location and description
    • Optional attendees
    • Custom timezone support
    • Notification preferences
  • Delete calendar events

Example prompts you can try:

  • Retrieve my latest unread messages

  • Search my emails from the Scrum Master

  • Retrieve all emails from accounting

  • Take the email about ABC and summarize it

  • Write a nice response to Alice’s last email and upload a draft.

  • Reply to Bob’s email with a Thank you note. Store it as draft

  • What do I have on my agenda tomorrow?

  • Check my private account’s Family agenda for next week

  • I need to plan an event with Tim for 2hrs next week. Suggest some time slots.

Quickstart

Install

Installing via Smithery

To install mcp-gsuite for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install mcp-gsuite --client claude

Oauth 2

Google Workspace (G Suite) APIs require OAuth2 authorization. Follow these steps to set up authentication:

  1. Create OAuth2 Credentials:

    • Go to the Google Cloud Console
    • Create a new project or select an existing one
    • Enable the Gmail API and Google Calendar API for your project
    • Go to “Credentials” → “Create Credentials” → “OAuth client ID”
    • Select “Desktop app” or “Web application” as the application type
    • Configure the OAuth consent screen with required information
    • Add authorized redirect URIs (include http://localhost:4100/code for local development)
  2. Required OAuth2 Scopes:

   [
     "openid",
     "https://mail.google.com/",
     "https://www.googleapis.com/auth/calendar",
     "https://www.googleapis.com/auth/userinfo.email"
   ]
  1. Then create a .gauth.json in your working directory with client
{
    "web": {
        "client_id": "$your_client_id",
        "client_secret": "$your_client_secret",
        "redirect_uris": ["http://localhost:4100/code"],
        "auth_uri": "https://accounts.google.com/o/oauth2/auth",
GitHub で README 全文を見る

インストール

uvx mcp-gsuite --accounts-file /path/to/custom/.accounts.json --credentials-dir /path/to/custom/credentials
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "mcp-gsuite": { "command": "uv", "args": [ "--directory", "<dir_to>/mcp-gsuite", "run", "mcp-gsuite" ] } } }