
nguyenvanduocit/google-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
Google MCP でモデルコンテキストプロトコル (MCP) を実装することで、AI モデルは、標準化されたインターフェイスを介して Google サービスとやり取りすることができます.
概要
Google MCP でモデルコンテキストプロトコル (MCP) を実装することで、AI モデルは、標準化されたインターフェイスを介して Google サービスとやり取りすることができます。 - 次の API で 1.23.2 以上 - Google Cloud プラットフォーム アカウントを有効にします。 - Google カレンダー API - Gmail API - Google チャット API - Google Cloud 認証情報 (OAuth 2.0 クライアント ID) 2. 設定で .env ファイルを作成します。 [https://developers.google.com/workspace/chat/authenticate-authorize-chat-user] ENABLE TOOLS 環境変数は、ツールグループのコンマ区切りリストで有効にすることができます。 利用可能なグループは次のとおりです。 - カレンダー - Googleカレンダーツール - gmail - Gmailツール - チャット - Googleチャットツール タイトル、説明、時間、参加者とGoogleカレンダーで新しいイベントを作成します。 カスタマイズ可能な時間範囲と結果の制限でGoogleカレンダーでイベントをリストします。 タイトル、説明、時間、参加者を含む既存のイベントの詳細を更新します.
概要(AI 翻訳)
Google MCP でモデルコンテキストプロトコル (MCP) を実装することで、AI モデルは、標準化されたインターフェイスを介して Google サービスとやり取りすることができます。
前提条件
・1.23.2以上
- 以下の API で Google Cloud Platform アカウントを有効にします。
- GoogleカレンダーAPI
- GmailのAPI
- GoogleチャットAPI
- Googleクラウド認証(OAuth 2.0クライアントID)
インストール
##Goでインストールする
-
サーバーをインストールします。
-
設定で[
.envファイルを作成します。
[https://developers.google.com/workspace/chat/authenticate-authorize-chat-user]
3。 Claudeの構成を設定します。
ツールを有効にする
ENABLE_TOOLS 環境変数は、ツールグループのコンマ区切りリストで有効にすることができます。 利用可能なグループ:
- [
calendar- Googleカレンダーツール - [
gmail- Gmailツール - [
gchat- Googleチャットツール
すべてのツールを有効にするために空にしておく。
利用可能なツール
グループ: カレンダー
カレンダー create event
タイトル、説明、時間、参加者とGoogleカレンダーで新しいイベントを作成します。
カレンダー list events
カスタマイズ可能な時間範囲と結果の制限でGoogleカレンダーでイベントをリストします。
カレンダー update event
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Google MCP - Model Context Protocol (MCP) Server
The Model Context Protocol (MCP) implementation in Google MCP enables AI models to interact with Google services through a standardized interface.
Prerequisites
- Go 1.23.2 or higher
- Google Cloud Platform account with the following APIs enabled:
- Google Calendar API
- Gmail API
- Google Chat API
- Google Cloud credentials (OAuth 2.0 Client ID)
Installation
Installing via Go
- Install the server:
go install github.com/nguyenvanduocit/google-mcp@latest
- Create a
.envfile with your configuration:
# Required for Google Services
GOOGLE_CREDENTIALS_FILE= # Required: Path to Google Cloud credentials JSON file
GOOGLE_TOKEN_FILE= # Required: Path to store Google OAuth tokens
# Optional configurations
ENABLE_TOOLS= # Optional: Comma-separated list of tool groups to enable (empty = all enabled)
PROXY_URL= # Optional: HTTP/HTTPS proxy URL if needed
https://developers.google.com/workspace/chat/authenticate-authorize-chat-user
- Configure your Claude’s config:
{
"mcpServers": {
"google_mcp": {
"command": "google-mcp",
"args": ["-env", "/path/to/.env"]
}
}
}
Enable Tools
The ENABLE_TOOLS environment variable is a comma-separated list of tool groups to enable. Available groups are:
calendar- Google Calendar toolsgmail- Gmail toolsgchat- Google Chat tools
Leave it empty to enable all tools.
Available Tools
Group: calendar
calendar_create_event
Create a new event in Google Calendar with title, description, time, and attendees.
calendar_list_events
List upcoming events in Google Calendar with customizable time range and result limit.
calendar_update_event
Update an existing event’s details including title, description, time, and attendees.
calendar_respond_to_event
Respond to an event invitation (accept, decline, or tentative).
Group: gchat
gchat_list_spaces
List all available Google Chat spaces/rooms.
gchat_send_message
Send a message to a Google Chat space or direct message.
Group: gmail
gmail_search
Search emails in Gmail using Gmail’s search syntax.
gmail_move_to_spam
Move specific emails to spam folder in Gmail by message IDs.
gmail_create_filter
Create a Gmail filter with specified criteria and actions:
- Filter by sender, recipient, subject, or custom query
- Add labels
- Mark as important
- Mark as read
- Archive messages
gmail_list_filters
List all Gmail filters in the account.
gmail_list_labels
List all Gmail labels in the account.
gmail_delete_filter
Delete a Gmail filter by its ID.
gmail_delete_label
Delete a Gmail label by its ID.
CLI Usage
In addition to the MCP server, google-mcp ships a standalone CLI binary (google-cli) for direct terminal use — no MCP client needed.
Installation
just install-cli
# or
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"google_mcp": {
"command": "google-mcp",
"args": ["-env", "/path/to/.env"]
}
}
}