Cover image
Try Now
2025-03-29

Google工作区的MCP服务器

3 years

Works with Finder

1

Github Watches

0

Github Forks

0

Github Stars

Google Workspace MCP

A Model Context Protocol (MCP) server for Google Workspace that provides tools for managing Google Workspace resources through the Admin SDK.

Prerequisites

  1. A Google Cloud Platform project with the Admin SDK API enabled
  2. A service account with appropriate permissions
  3. A Google Workspace admin user to impersonate

Setup

Service Account Configuration

  1. Create a service account in the Google Cloud Console
  2. Grant the service account appropriate permissions for Google Workspace Admin SDK
  3. Create and download a JSON key file for the service account
  4. Enable domain-wide delegation for the service account
  5. Grant the necessary OAuth scopes to the service account in your Google Workspace Admin Console

Environment Variables

The application requires the following environment variables to be set:

Variable Description
GOOGLE_SERVICE_ACCOUNT The path to the service account JSON key file
GOOGLE_ADMIN_EMAIL The email address of the Google Workspace admin user to impersonate

Usage

Build

make build

config

{
 "mcpServers": {
    "googleworkspace-mcp": {
     "command": "/go/bin/google-workspace-mcp",
     "args": [],
     "env": {
       "GOOGLE_SERVICE_ACCOUNT": "test.json",
       "GOOGLE_ADMIN_EMAIL": "admin@yourdomain.com"
     },
     "disabled": false,
     "autoApprove": []
   }
 }
}

Note: Make sure your service account has the necessary API access enabled in Google Cloud Console (Admin SDK API, Gmail API, and Calendar API).

Available Tools

  • directory_users - List all users in your Google Workspace directory
  • create_user - Create a new user in Google Workspace
  • list_gmail - List recent Gmail messages (requires Gmail API access)
  • list_calendar_events - List upcoming calendar events for a user (requires Calendar API access)
  • create_calendar_event - Create a new calendar event (requires Calendar API access)

Required OAuth Scopes

When setting up domain-wide delegation for your service account, ensure you grant the following OAuth scopes:

  • https://www.googleapis.com/auth/admin.directory.user - For accessing and managing directory user information
  • https://www.googleapis.com/auth/gmail.readonly - For reading Gmail messages
  • https://www.googleapis.com/auth/calendar - For reading and writing calendar events

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Lists Tailwind CSS classes in monospaced font

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • Yasir Eryilmaz
  • AI scriptwriting assistant for short, engaging video content.

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

  • deemkeen
  • 用电源组合控制您的MBOT2:MQTT+MCP+LLM

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

    Reviews

    1 (1)
    Avatar
    user_UEfNFTAJ
    2025-04-16

    As a devoted user of the google-workspace-mcp application, I must say it's a game-changer for managing Google Workspace. The tool, created by orvice, offers seamless integration and efficient functionality that enhances productivity. Thanks to its intuitive design and comprehensive features, navigating through various tasks has never been easier. Highly recommended for anyone looking to optimize their Google Workspace experience!