メインコンテンツにスキップ

google_workspace_mcp

Control Gmail, Google Calendar, Docs, Sheets, Slides, Chat, Forms, Tasks, Search & Drive with AI - Comprehensive Google Workspace / G Suite MCP Server & CLI Tool

AI Summary

Google Workspace MCP Server

MCP server enabling natural language control of Google Workspace services.

Target Users

Mid-level developers integrating AI assistants with Google Workspace via MCP.

Problems Solved

Integrating Google Workspace APIs with AI via standardized MCP protocol is challenging.

Script ID

  1. In GAS Editor: Click "Libraries +" → Paste into "Script ID" field → Click "Look up"
  2. "google_workspace_mcp" will appear in the search results
  3. Select the latest version (highest number) from "Version" dropdown
  4. Click "Add"

Tags

Main Features
1
Easy Setup

Desktop OAuth clients eliminate redirect URI and port configuration needs.

2
Tool Tiers

Core, extended, complete tiers match API quotas with progressive features.

3
Multi-User Auth

OAuth 2.1 bearer tokens enable multi-user and stateless operation.

Examples

Main Functions

FunctionDescription
list_script_projectsList Apps Script projects
run_script_functionExecute script function
create_script_projectCreate script project

Examples

Manage Apps Script Projects
/**
 * Apps Scriptプロジェクト管理
 * ・プロジェクト一覧取得: list_script_projects()
 * ・プロジェクト内容取得: get_script_project(projectId)
 * ・関数実行: run_script_function(projectId, functionName, parameters)
 */
function manageAppsScriptProjects() {
  // READMEに具体的なJavaScriptコード例が記載されていないため、一般的な使用イメージ
  // 実際の使用はMCPクライアント経由のPythonツール呼び出し
}

Authentication Setup
/**
 * 認証設定
 * ・環境変数設定: export GOOGLE_OAUTH_CLIENT_ID="..."
 * ・開発モード: export OAUTHLIB_INSECURE_TRANSPORT=1
 * ・OAuth2.1有効化: export MCP_ENABLE_OAUTH21=true
 */
function setupAuth() {
  // README記載の環境変数設定例を使用
  // JavaScriptコードではなくbashコマンド
}

Sample Code

Post a Sample

No sample codes for this library yet

Be the first to post a sample!

Post a Sample