Puter MCP
Puter MCP enables AI tools to interact with Puter: manage files, websites, workers, and more
MCP server for Google Docs integration with OAuth2 and service account support.
使っているAIアプリを選んで、設定をコピーしてください。
チェック 3/3 合格 · あなたのパソコンで動きます · ✓ コマンド確認済み 2026年11月14日
まず:どの AI を使っていますか?
使っているアプリを選ぶと、下に手順が表示されます。
Claude につなげますが、先に準備が必要です
Google Docs のキーが必要です(提供元のサイトで作成) · 先にパソコンへ Node.js を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
このメッセージを Claude のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。
このパソコンの Claude に MCP server Google Docs を入れてください。順番に:1) node -v で Node.js があるか確認。なければ https://nodejs.org/en/download から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "google-docs": { "command": "npx", "args": [ "-y", "google-docs-workspace-mcp-server" ], "env": { "GOOGLE_DOCS_OAUTH_CLIENT_ID": "your-value", "GOOGLE_DOCS_OAUTH_CLIENT_SECRET": "your-value", "GOOGLE_DOCS_OAUTH_REFRESH_TOKEN": "your-value", "GOOGLE_DOCS_SERVICE_ACCOUNT_PRIVATE_KEY": "your-value" } } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) GOOGLE_DOCS_OAUTH_CLIENT_ID, GOOGLE_DOCS_OAUTH_CLIENT_SECRET, GOOGLE_DOCS_OAUTH_REFRESH_TOKEN, GOOGLE_DOCS_SERVICE_ACCOUNT_PRIVATE_KEY は "your-value" のままにして、本当の値は私がファイルかアプリの入力欄に自分で貼るよう伝える。チャットにキーを書かせない。5) 了承した内容を実行し、Google Docs のツールが本当に表示されるか確認する。このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。
もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter
node -vMac:⌘ + Space を押し、Terminal と入力して Enter
Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」
まだ入っていない場合: 公式ダウンロードページで LTS 版と、クリックで進むインストーラーを選びます:Mac は .pkg、Windows は .msi。ダブルクリックして最後まで進めるだけで、curl コマンドは不要です
入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: node -v
一度入れれば、Node.js を使うすべてのツールで使えます
提供元のサイトで登録し、次の手順で使う API キーを作ります。料金や無料プランは提供元のサイトで確認してください。
キーの取り方は下の提供元 README にあります
SettingsDeveloperEdit Config
{
"mcpServers": {
"google-docs": {
"command": "npx",
"args": [
"-y",
"google-docs-workspace-mcp-server"
],
"env": {
"GOOGLE_DOCS_OAUTH_CLIENT_ID": "your-value",
"GOOGLE_DOCS_OAUTH_CLIENT_SECRET": "your-value",
"GOOGLE_DOCS_OAUTH_REFRESH_TOKEN": "your-value",
"GOOGLE_DOCS_SERVICE_ACCOUNT_PRIVATE_KEY": "your-value"
}
}
}
}キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください
Google Docs を使って、私に何ができるか教えて、1 つやってみせて✓ Claude が Google Docs を使っていると言うか、回答に Google Docs のツール名が出れば接続成功です
上のコマンドはこれらがなくても動きます。変えたいときだけ作者の説明に沿って追加してください。
GOOGLE_DOCS_SERVICE_ACCOUNT_CLIENT_EMAIL Service account email address for domain-wide delegation.GOOGLE_DOCS_IMPERSONATE_EMAIL Email address to impersonate in Google Workspace.GOOGLE_DOCS_ENABLED_TOOLGROUPS Comma-separated list of tool groups to enable (readonly, readwrite, readwrite_external).説明は英語の原文のままです。
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
ChatGPT はまだ Google Docs につなげません
Google Docs はパソコンに入れて使うものですが、ChatGPT は Web 上で動くサーバーにしかつなげません
A · Google Docs につなげるアプリを使う
Claude Code につなげますが、先に準備が必要です
Google Docs のキーが必要です(提供元のサイトで作成) · 先にパソコンへ Node.js を入れてください(1 回だけ)
このメッセージを Claude Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。
このパソコンの Claude Code に MCP server Google Docs を入れてください。順番に:1) node -v で Node.js があるか確認。なければ https://nodejs.org/en/download から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):claude mcp add --scope user google-docs --env GOOGLE_DOCS_OAUTH_CLIENT_ID=your-value --env GOOGLE_DOCS_OAUTH_CLIENT_SECRET=your-value --env GOOGLE_DOCS_OAUTH_REFRESH_TOKEN=your-value --env GOOGLE_DOCS_SERVICE_ACCOUNT_PRIVATE_KEY=your-value -- npx -y google-docs-workspace-mcp-server 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) GOOGLE_DOCS_OAUTH_CLIENT_ID, GOOGLE_DOCS_OAUTH_CLIENT_SECRET, GOOGLE_DOCS_OAUTH_REFRESH_TOKEN, GOOGLE_DOCS_SERVICE_ACCOUNT_PRIVATE_KEY は "your-value" のままにして、本当の値は私がファイルかアプリの入力欄に自分で貼るよう伝える。チャットにキーを書かせない。5) 了承した内容を実行し、Google Docs のツールが本当に表示されるか確認する。このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。
もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter
node -vMac:⌘ + Space を押し、Terminal と入力して Enter
Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」
まだ入っていない場合: 公式ダウンロードページで LTS 版と、クリックで進むインストーラーを選びます:Mac は .pkg、Windows は .msi。ダブルクリックして最後まで進めるだけで、curl コマンドは不要です
入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: node -v
一度入れれば、Node.js を使うすべてのツールで使えます
提供元のサイトで登録し、次の手順で使う API キーを作ります。料金や無料プランは提供元のサイトで確認してください。
キーの取り方は下の提供元 README にあります
Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く
claude mcp add --scope user google-docs --env GOOGLE_DOCS_OAUTH_CLIENT_ID=your-value --env GOOGLE_DOCS_OAUTH_CLIENT_SECRET=your-value --env GOOGLE_DOCS_OAUTH_REFRESH_TOKEN=your-value --env GOOGLE_DOCS_SERVICE_ACCOUNT_PRIVATE_KEY=your-value -- npx -y google-docs-workspace-mcp-serverEnter の前に「your-value」を自分のキーに書き換えてください
キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください
Google Docs が一覧にあり、接続済みと表示されれば OK です
Google Docs を使って、私に何ができるか教えて、1 つやってみせて✓ Claude Code が Google Docs を使っていると言うか、回答に Google Docs のツール名が出れば接続成功です
上のコマンドはこれらがなくても動きます。変えたいときだけ作者の説明に沿って追加してください。
GOOGLE_DOCS_SERVICE_ACCOUNT_CLIENT_EMAIL Service account email address for domain-wide delegation.GOOGLE_DOCS_IMPERSONATE_EMAIL Email address to impersonate in Google Workspace.GOOGLE_DOCS_ENABLED_TOOLGROUPS Comma-separated list of tool groups to enable (readonly, readwrite, readwrite_external).説明は英語の原文のままです。
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
Cursor につなげますが、先に準備が必要です
Google Docs のキーが必要です(提供元のサイトで作成) · 先にパソコンへ Node.js を入れてください(1 回だけ)
このメッセージを Cursor のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。
このパソコンの Cursor に MCP server Google Docs を入れてください。順番に:1) node -v で Node.js があるか確認。なければ https://nodejs.org/en/download から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "google-docs": { "command": "npx", "args": [ "-y", "google-docs-workspace-mcp-server" ], "env": { "GOOGLE_DOCS_OAUTH_CLIENT_ID": "your-value", "GOOGLE_DOCS_OAUTH_CLIENT_SECRET": "your-value", "GOOGLE_DOCS_OAUTH_REFRESH_TOKEN": "your-value", "GOOGLE_DOCS_SERVICE_ACCOUNT_PRIVATE_KEY": "your-value" } } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) GOOGLE_DOCS_OAUTH_CLIENT_ID, GOOGLE_DOCS_OAUTH_CLIENT_SECRET, GOOGLE_DOCS_OAUTH_REFRESH_TOKEN, GOOGLE_DOCS_SERVICE_ACCOUNT_PRIVATE_KEY は "your-value" のままにして、本当の値は私がファイルかアプリの入力欄に自分で貼るよう伝える。チャットにキーを書かせない。5) 了承した内容を実行し、Google Docs のツールが本当に表示されるか確認する。このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。
もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter
node -vMac:⌘ + Space を押し、Terminal と入力して Enter
Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」
まだ入っていない場合: 公式ダウンロードページで LTS 版と、クリックで進むインストーラーを選びます:Mac は .pkg、Windows は .msi。ダブルクリックして最後まで進めるだけで、curl コマンドは不要です
入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: node -v
一度入れれば、Node.js を使うすべてのツールで使えます
提供元のサイトで登録し、次の手順で使う API キーを作ります。料金や無料プランは提供元のサイトで確認してください。
キーの取り方は下の提供元 README にあります
Google Docs の設定で GOOGLE_DOCS_OAUTH_CLIENT_ID, GOOGLE_DOCS_OAUTH_CLIENT_SECRET, GOOGLE_DOCS_OAUTH_REFRESH_TOKEN, GOOGLE_DOCS_SERVICE_ACCOUNT_PRIVATE_KEY が空です。自分のキーを入れて保存します
キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください
Google Docs を使って、私に何ができるか教えて、1 つやってみせて✓ Cursor が Google Docs を使っていると言うか、回答に Google Docs のツール名が出れば接続成功です
上のコマンドはこれらがなくても動きます。変えたいときだけ作者の説明に沿って追加してください。
GOOGLE_DOCS_SERVICE_ACCOUNT_CLIENT_EMAIL Service account email address for domain-wide delegation.GOOGLE_DOCS_IMPERSONATE_EMAIL Email address to impersonate in Google Workspace.GOOGLE_DOCS_ENABLED_TOOLGROUPS Comma-separated list of tool groups to enable (readonly, readwrite, readwrite_external).説明は英語の原文のままです。
メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
VS Code につなげますが、先に準備が必要です
Google Docs のキーが必要です(提供元のサイトで作成) · 先にパソコンへ Node.js を入れてください(1 回だけ)
このメッセージを VS Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。
このパソコンの VS Code に MCP server Google Docs を入れてください。順番に:1) node -v で Node.js があるか確認。なければ https://nodejs.org/en/download から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "servers": { "google-docs": { "type": "stdio", "command": "npx", "args": [ "-y", "google-docs-workspace-mcp-server" ], "env": { "GOOGLE_DOCS_OAUTH_CLIENT_ID": "your-value", "GOOGLE_DOCS_OAUTH_CLIENT_SECRET": "your-value", "GOOGLE_DOCS_OAUTH_REFRESH_TOKEN": "your-value", "GOOGLE_DOCS_SERVICE_ACCOUNT_PRIVATE_KEY": "your-value" } } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) GOOGLE_DOCS_OAUTH_CLIENT_ID, GOOGLE_DOCS_OAUTH_CLIENT_SECRET, GOOGLE_DOCS_OAUTH_REFRESH_TOKEN, GOOGLE_DOCS_SERVICE_ACCOUNT_PRIVATE_KEY は "your-value" のままにして、本当の値は私がファイルかアプリの入力欄に自分で貼るよう伝える。チャットにキーを書かせない。5) 了承した内容を実行し、Google Docs のツールが本当に表示されるか確認する。このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。
もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter
node -vMac:⌘ + Space を押し、Terminal と入力して Enter
Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」
まだ入っていない場合: 公式ダウンロードページで LTS 版と、クリックで進むインストーラーを選びます:Mac は .pkg、Windows は .msi。ダブルクリックして最後まで進めるだけで、curl コマンドは不要です
入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: node -v
一度入れれば、Node.js を使うすべてのツールで使えます
提供元のサイトで登録し、次の手順で使う API キーを作ります。料金や無料プランは提供元のサイトで確認してください。
キーの取り方は下の提供元 README にあります
Google Docs の設定で GOOGLE_DOCS_OAUTH_CLIENT_ID, GOOGLE_DOCS_OAUTH_CLIENT_SECRET, GOOGLE_DOCS_OAUTH_REFRESH_TOKEN, GOOGLE_DOCS_SERVICE_ACCOUNT_PRIVATE_KEY が空です。自分のキーを入れて保存します
キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください
Google Docs を使って、私に何ができるか教えて、1 つやってみせて✓ VS Code が Google Docs を使っていると言うか、回答に Google Docs のツール名が出れば接続成功です
上のコマンドはこれらがなくても動きます。変えたいときだけ作者の説明に沿って追加してください。
GOOGLE_DOCS_SERVICE_ACCOUNT_CLIENT_EMAIL Service account email address for domain-wide delegation.GOOGLE_DOCS_IMPERSONATE_EMAIL Email address to impersonate in Google Workspace.GOOGLE_DOCS_ENABLED_TOOLGROUPS Comma-separated list of tool groups to enable (readonly, readwrite, readwrite_external).説明は英語の原文のままです。
メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
Windsurf、Zed、Gemini CLI など MCP を使える他のアプリは追加方法がそれぞれ違います。アプリ一覧で確認してください
JSON 設定は下の「開発者向け」にあります
Claude Code
claude mcp add --scope user google-docs --env GOOGLE_DOCS_OAUTH_CLIENT_ID=your-value --env GOOGLE_DOCS_OAUTH_CLIENT_SECRET=your-value --env GOOGLE_DOCS_OAUTH_REFRESH_TOKEN=your-value --env GOOGLE_DOCS_SERVICE_ACCOUNT_PRIVATE_KEY=your-value -- npx -y google-docs-workspace-mcp-serverClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"google-docs": {
"command": "npx",
"args": [
"-y",
"google-docs-workspace-mcp-server"
],
"env": {
"GOOGLE_DOCS_OAUTH_CLIENT_ID": "your-value",
"GOOGLE_DOCS_OAUTH_CLIENT_SECRET": "your-value",
"GOOGLE_DOCS_OAUTH_REFRESH_TOKEN": "your-value",
"GOOGLE_DOCS_SERVICE_ACCOUNT_PRIVATE_KEY": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"google-docs": {
"command": "npx",
"args": [
"-y",
"google-docs-workspace-mcp-server"
],
"env": {
"GOOGLE_DOCS_OAUTH_CLIENT_ID": "your-value",
"GOOGLE_DOCS_OAUTH_CLIENT_SECRET": "your-value",
"GOOGLE_DOCS_OAUTH_REFRESH_TOKEN": "your-value",
"GOOGLE_DOCS_SERVICE_ACCOUNT_PRIVATE_KEY": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"google-docs": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"google-docs-workspace-mcp-server"
],
"env": {
"GOOGLE_DOCS_OAUTH_CLIENT_ID": "your-value",
"GOOGLE_DOCS_OAUTH_CLIENT_SECRET": "your-value",
"GOOGLE_DOCS_OAUTH_REFRESH_TOKEN": "your-value",
"GOOGLE_DOCS_SERVICE_ACCOUNT_PRIVATE_KEY": "your-value"
}
}
}
}GOOGLE_DOCS_OAUTH_CLIENT_ID 秘密 必須 envGOOGLE_DOCS_OAUTH_CLIENT_SECRET 秘密 必須 envGOOGLE_DOCS_OAUTH_REFRESH_TOKEN 秘密 必須 envGOOGLE_DOCS_SERVICE_ACCOUNT_CLIENT_EMAIL envGOOGLE_DOCS_SERVICE_ACCOUNT_PRIVATE_KEY 秘密 必須 envGOOGLE_DOCS_IMPERSONATE_EMAIL envGOOGLE_DOCS_ENABLED_TOOLGROUPS env説明は英語の原文のままです。
この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
このサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。
パソコン上で動かせるアプリ
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月15日にチェック
レジストリ名はドメイン pulsemcp.com で確認済みです(レジストリがドメインの所有を確認しています)
コードの最終更新:36 日前
MITを使用
これはパソコンで動くため、インターネット上のエンドポイントはありません
パソコンで動き、代わりにローカルの設定を使います
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
まだ確認していません
質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。
まだレビューはありません
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
当てはまる基本チェック3項目のうち3項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
入力が必要なもの:GOOGLE_DOCS_OAUTH_CLIENT_ID, GOOGLE_DOCS_OAUTH_CLIENT_SECRET, GOOGLE_DOCS_OAUTH_REFRESH_TOKEN, GOOGLE_DOCS_SERVICE_ACCOUNT_PRIVATE_KEY
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
GitHubリポジトリの最終更新は36 日前、最新バージョン(0.1.4)がレジストリに届いたのは5 か月前です。
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。
同じカテゴリには:Puter MCP, XcodeBuildMCP, Anki MCP Server, Sosumi, Zapier
同じカテゴリでほかの作者のもの。コマンドは確認済み。公式を先に、次にスター順。
カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
Puter MCP enables AI tools to interact with Puter: manage files, websites, workers, and more
XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.
MCP server for Anki flashcards: adaptive review, notes, media, and deck management via AnkiConnect.
Search and read Apple developer documentation, HIG, and WWDC transcripts as Markdown.
Hosted MCP server connecting AI assistants to 9,000+ apps and 40,000+ actions via Zapier.
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
An MCP (Model Context Protocol) server that provides Google Docs integration for AI assistants. Supports both personal Google accounts (via OAuth2) and Google Workspace accounts (via service account with domain-wide delegation).
documents.batchUpdate requests for full structural controlGOOGLE_DOCS_ENABLED_TOOLGROUPSnpm install google-docs-workspace-mcp-server
Or run directly with npx:
npx google-docs-workspace-mcp-server
This server supports two authentication modes. Choose the one that matches your account type.
Use this for personal @gmail.com accounts or any Google account without Workspace admin access.
Run the built-in setup command:
npx google-docs-workspace-mcp-server oauth-setup <client_id> <client_secret>
You can also pass credentials via environment variables:
GOOGLE_DOCS_OAUTH_CLIENT_ID=... GOOGLE_DOCS_OAUTH_CLIENT_SECRET=... npx google-docs-workspace-mcp-server oauth-setup
Port conflict? If port 3000 is already in use, specify a different port:
PORT=3001 npx google-docs-workspace-mcp-server oauth-setup <client_id> <client_secret>
Desktop app credentials automatically allow http://localhost redirects on any port, so no additional Google Cloud Console configuration is needed.
This will open your browser for Google sign-in and print the refresh token. You only need to do this once — the refresh token does not expire (as long as the OAuth consent screen is published).
| Variable | Required | Description |
|---|---|---|
GOOGLE_DOCS_OAUTH_CLIENT_ID | Yes | OAuth2 client ID from Google Cloud Console |
GOOGLE_DOCS_OAUTH_CLIENT_SECRET | Yes | OAuth2 client secret |
GOOGLE_DOCS_OAUTH_REFRESH_TOKEN | Yes | Refresh token from the setup script |
GOOGLE_DOCS_ENABLED_TOOLGROUPS | No | Comma-separated list of tool groups (default: all) |
{
"mcpServers": { "google-docs": { "command": "npx", "args": ["google-docs-workspace-mcp-server"], "env": { "GOOGLE_DOCS_OAUTH_CLIENT_ID": "your-client-id.apps.googleusercontent.com", "GOOGLE_DOCS_OAUTH_CLIENT_SECRET": "your-client-secret", "GOOGLE_DOCS_OAUTH_REFRESH_TOKEN": "your-refresh-token" } } } }
Use this for Google Workspace organizations where a domain admin can grant domain-wide delegation.
https://www.googleapis.com/auth/documents (read and edit documents)https://www.googleapis.com/auth/drive (full read/write access to the impersonated user's Drive — required to export, read comments on, and manage arbitrary existing docs, including files this app did not create)| Variable | Required | Description |
|---|---|---|
GOOGLE_DOCS_SERVICE_ACCOUNT_CLIENT_EMAIL | Yes | Service account email address |
GOOGLE_DOCS_SERVICE_ACCOUNT_PRIVATE_KEY | Yes | Service account private key (PEM format) |
GOOGLE_DOCS_IMPERSONATE_EMAIL | Yes | Email address to impersonate |
GOOGLE_DOCS_ENABLED_TOOLGROUPS | No | Comma-separated list of tool groups to enable (default: all groups) |
You can find the client_email and private_key values in your service account JSON key file.
{
"mcpServers": { "google-docs": { "command": "npx", "args": ["google-docs-workspace-mcp-server"], "env": { "GOOGLE_DOCS_SERVICE_ACCOUNT_CLIENT_EMAIL": "my-service-account@my-project.iam.gserviceaccount.com", "GOOGLE_DOCS_SERVICE_ACCOUNT_PRIVATE_KEY": "[PopNx MCP ตัดค่าที่หน้าตาเหมือนกุญแจออก]", "GOOGLE_DOCS_IMPERSONATE_EMAIL": "user@yourdomain.com" } } } }
Note: For the private key, you can either:
\n for newlines (as shown above)The server supports three tool groups for permission-based access control:
| Group | Tools Included | Risk Level |
|---|---|---|
readonly | get_document, get_document_outline, export_document, list_comments | Low |
readwrite | All readonly tools + create_document, update_document, delete_document, append_text, insert_text, replace_text | Medium |
readwrite_external | All readwrite tools + share_document | High |
By default, all tool groups are enabled. To restrict access, set the GOOGLE_DOCS_ENABLED_TOOLGROUPS environment variable:
# Read-only access (no writes or sharing)
GOOGLE_DOCS_ENABLED_TOOLGROUPS=readonly
GOOGLE_DOCS_ENABLED_TOOLGROUPS=readwrite
GOOGLE_DOCS_ENABLED_TOOLGROUPS=readwrite_external
Security Note: The share_document tool is in a separate readwrite_external group because it can grant access to users outside your organization, which carries higher risk than purely internal edits.
All tools that take a document_id accept either a raw Google Docs ID (e.g., 1AbCdEf...) or a shareable Docs URL (e.g., https://docs.google.com/document/d/1AbCdEf.../edit). The server extracts the ID automatically.
Fetch a Google Doc and return its title, outline, and full body.
Parameters:
document_id (string, required): Google Docs ID or URLformat (string, optional): text (default) for human-readable output, or json for the raw documents.get API resourceReturn only the heading structure of a document — useful for getting your bearings on a long doc without pulling the full body.
Parameters:
document_id (string, required): Google Docs ID or URLCreate a new Google Doc.
Parameters:
title (string, required): Document titleinitial_content (string, optional): Plain text inserted into the new documentApply raw documents.batchUpdate requests. This is the escape hatch for any Docs API operation not covered by the more focused tools (e.g., applying paragraph styles, inserting tables, manipulating named ranges).
Parameters:
document_id (string, required): Google Docs ID or URLrequests (array, required): Array of documents.batchUpdate request objects (API reference)Example:
{
"document_id": "1AbCdEf...", "requests": [ { "insertText": { "location": { "index": 1 }, "text": "Hello, world!\n" } }, { "updateParagraphStyle": { "range": { "startIndex": 1, "endIndex": 14 }, "paragraphStyle": { "namedStyleType": "HEADING_1" }, "fields": "namedStyleType" } } ] }
Append text to the end of a document. Resolves the end-of-body index for you.
Parameters:
document_id (string, required): Google Docs ID or URLtext (string, required): Text to appendInsert text at a specific index.
Parameters:
document_id (string, required): Google Docs ID or URLindex (number, required): Insertion index (must be ≥ 1)text (string, required): Text to insertFind and replace text throughout a document. Reports the number of occurrences replaced.
Parameters:
document_id (string, required): Google Docs ID or URLfind (string, required): String to findreplace (string, required): Replacement stringmatch_case (boolean, optional): Whether matching is case-sensitive (default: false)Move a document to Drive trash by default, or permanently delete it.
Parameters:
document_id (string, required): Google Docs ID or URLpermanent (boolean, optional): When true, permanently delete instead of trashing (default: false)Export a document in a different format.
Parameters:
document_id (string, required): Google Docs ID or URLformat (string, required): One of markdown, html, txt, pdf, docx, odt, rtf, epubText formats (markdown, html, txt) are returned inline. Binary formats (pdf, docx, odt, rtf, epub) are returned base64-encoded.
List the comments on a document, including threaded replies and resolved state. Reads the Drive comments.list API and surfaces each comment's author, timestamps, resolved/open state, the anchored quoted text it refers to, the comment body, and any replies (including replies that resolved or reopened the thread).
Parameters:
document_id (string, required): Google Docs ID or URLinclude_resolved (boolean, optional): Include resolved (closed) threads (default: true). Set false to see only open comments.