
a-bonus/google-docs-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
究極のGoogleドキュメント、スプレッドシート、ドライブ、Gmail、GoogleカレンダーMCPサーバー。このMCP(主にClaude Desktop用)はGoogleスイートに完全アクセスでき、Claudeがその機能を実行できるようにします。
概要
Claude Desktop、カーソル、または任意のMCPクライアントをGoogleドキュメント、Google Sheets、Googleドライブ、Gmail、Googleカレンダーに接続してください。 1. Google Cloud Consoleにアクセスする 2.プロジェクトを作成または選択する 3.、 、 を有効にする。(外部設定、メールアドレスをテストユーザーとして追加し、gmail.modiveおよびcalendar.eventsのスコープをドキュメント/スシート/ドライブのスコープに加えて追加する) 5.(デスクトップアプリタイプ)を作成する 6.確認画面から と をコピーする もっと詳しく知りたいですか?このページの下部にあるステップバイステップの手順をご覧ください。 これによりGoogle認証のためにブラウザが開きます。承認後、リフレッシュトークンは~/.config/google-docs-mcp/token.jsonに保存されます。 MCPクライアントが必要なときにサーバーは自動的に起動します。 チームのために一度だけデプロイすれば、ローカルインストールは不要です。サーバーはMCP OAuth 2.1を使用しているため、MCPクライアントが自動的に認証を処理します。
概要(AI 翻訳)
Claude Desktop、カーソル、または任意のMCPクライアントをGoogleドキュメント、Google Sheets、Googleドライブ、Gmail、Googleカレンダーに接続してください。
クイックスタート
1.Google Cloud OAuth クライアントを作成する
- Google Cloud Consoleへ
- プロジェクトの作成または選択
- Google Docs API、Google Sheets API、Google Drive API、Gmail API、Google カレンダー API を有効にしてください
- OAuth同意画面の設定(外部で、メールアドレスをテストユーザーとして追加し、
gmail.modify]およびcalendar.eventsスコープをDocs/Sheets/Driveスコープに加えて追加) - OAuthクライアントID(デスクトップアプリタイプ)を作成する
- 確認画面からクライアントIDおよびクライアントシークレットをコピーします
もっと詳しく知りたいですか?このページの下部にあるステップバイステップの手順をご覧ください。
2.認可
これによりGoogle認証のためにブラウザが開きます。承認後、リフレッシュトークンは~/.config/google-docs-mcp/token.jsonに保存されます。
3.MCPクライアントに追加
Claude Desktop / カーソル / ウィンドサーフィン:
MCPクライアントが必要なときにサーバーは自動的に起動します。
リモートデプロイメント(クラウドラン)
チームのために一度だけデプロイすればいいです。ローカルインストールは不要です。サーバーはMCP OAuth 2を使用しています。
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Google Docs, Sheets, Drive, Gmail & Calendar MCP Server
Connect Claude Desktop, Cursor, or any MCP client to your Google Docs, Google Sheets, Google Drive, Gmail, and Google Calendar.
Quick Start
1. Create a Google Cloud OAuth Client
- Go to the Google Cloud Console
- Create or select a project
- Enable the Google Docs API, Google Sheets API, Google Drive API, Gmail API, and Google Calendar API
- Configure the OAuth consent screen (External, add your email as a test user, and add the
gmail.modifyandcalendar.eventsscopes alongside the Docs/Sheets/Drive scopes) - Create an OAuth client ID (Desktop app type)
- Copy the Client ID and Client Secret from the confirmation screen
Need more detail? See step-by-step instructions at the bottom of this page.
2. Authorize
GOOGLE_CLIENT_ID="your-client-id" \
GOOGLE_CLIENT_SECRET="your-client-secret" \
npx -y @a-bonus/google-docs-mcp auth
This opens your browser for Google authorization. After you approve, the refresh token is saved to ~/.config/google-docs-mcp/token.json.
3. Add to Your MCP Client
Claude Desktop / Cursor / Windsurf:
{
"mcpServers": {
"google-docs": {
"command": "npx",
"args": ["-y", "@a-bonus/google-docs-mcp"],
"env": {
"GOOGLE_CLIENT_ID": "your-client-id",
"GOOGLE_CLIENT_SECRET": "your-client-secret"
}
}
}
}
The server starts automatically when your MCP client needs it.
Remote Deployment (Cloud Run)
Deploy once for your team – no local installs required. The server uses MCP OAuth 2.1 so your MCP client handles authentication automatically.
gcloud run deploy google-docs-mcp \
--source . \
--region europe-west3 \
--port 8080 \
--allow-unauthenticated \
--set-env-vars "^|^MCP_TRANSPORT=httpStream|BASE_URL=https://your-service.run.app|GOOGLE_CLIENT_ID=...|GOOGLE_CLIENT_SECRET=...|TOKEN_STORE=firestore|JWT_SIGNING_KEY=your-secret-key"
Then each user just adds the URL to their MCP client – no npx, no tokens, no local setup:
{
"mcpServers": {
"google-docs": {
"type": "streamableHttp",
"url": "https://your-service.run.app/mcp"
}
}
}
Your MCP client will prompt for Google sign-in on first connection. See Remote Deployment for details.
What Can It Do?
Tools across Google Docs, Sheets, and Drive:
Google Docs
| Tool | Description |
|---|
インストール
npx -y @a-bonus/google-docs-mcp設定
{
"mcpServers": {
"google-docs": {
"command": "npx",
"args": ["-y", "@a-bonus/google-docs-mcp"],
"env": {
"GOOGLE_CLIENT_ID": "your-client-id",
"GOOGLE_CLIENT_SECRET": "your-client-secret"
}
}
}
}