Skip to main content
Glama

Google Forms MCP

英語 | ロシア語

npm CI Glama License: MIT

A1 Google Forms MCP は、AIアプリが平易な言葉でGoogle Formsを作成・管理できるようにします。アンケートを作成し、質問を選び、準備ができたら公開し、回答を読み取り、新しい回答の通知を利用できます。

これは、あなたのGoogleアカウントでGoogle Forms APIを使用します。下書きフォームと公開済みフォームを区別し、あらゆるフォーム操作が可能であるかのように示唆するのではなく、Forms APIの制限を明示します。

  • 13のツール。 フォーム構造と回答を検査し、フォームと質問を作成・編集し、公開を管理し、Pub/Subウォッチを設定できます。

  • 意図的な公開。 APIを通じて作成されたフォームは未公開で始まるため、公開するまで回答を収集できません。

  • 回答はそのまま保持されます。 APIは回答を読み取れますが、回答の作成や編集はできません。サーバーには回答を送信するツールはありません。

  • 最小限のGoogleスコープ。 forms.body と forms.responses.readonly を使用し、広範なDriveアクセスは行いません。

顧客フィードバックフォームへの昨日の回答を見せて、自由記述の回答を要約してください。

サーバーに接続する · ユースケースを見る · 技術ドキュメントを開く


1分で動作を確認する

あなた: 顧客フィードバックフォームの質問と回答設定を見せてください。

アシスタント: フォーム、その項目、公開されているかどうか、回答を受け付けているかどうかを表示します。何も変更しません。

あなた: 最初の質問の後に、「ご体験はいかがでしたか?」という必須の1〜5評価質問を準備してください。

アシスタント: 対象のフォーム、位置、提案した質問を表示し、追加する前に確認を求めます。

あなた: 確認してください。

アシスタント: 質問をフォームに追加します。個別に依頼しない限り、フォームを公開したり閉じたりしません。

Related MCP server: Google Workspace MCP Server

目次

クイックスタート

Node.js 20以上、Googleアカウント、およびGoogle Forms APIが有効なGoogle CloudプロジェクトのOAuth認証情報が必要です。

  1. Google OAuthアクセスを準備します。

  2. AIアプリにサーバーを追加します。

  3. 上記の読み取り専用の質問を依頼してください。

アプリ内: 設定 → プラグイン → MCPサーバー を開き、サーバーを追加 を選択して、npx -y mcp-google-forms@latest を GOOGLE_FORMS_CLIENT_ID、GOOGLE_FORMS_CLIENT_SECRET、GOOGLE_FORMS_REFRESH_TOKEN とともに追加します。

コマンドラインから:

codex mcp add google-forms \
  --env GOOGLE_FORMS_CLIENT_ID=your_client_id \
  --env GOOGLE_FORMS_CLIENT_SECRET=your_client_secret \
  --env GOOGLE_FORMS_REFRESH_TOKEN=your_refresh_token \
  -- npx -y mcp-google-forms@latest
codex mcp list

Codex MCPドキュメント

claude mcp add \
  --env GOOGLE_FORMS_CLIENT_ID=your_client_id \
  --env GOOGLE_FORMS_CLIENT_SECRET=your_client_secret \
  --env GOOGLE_FORMS_REFRESH_TOKEN=your_refresh_token \
  --transport stdio --scope user google-forms \
  -- npx -y mcp-google-forms@latest
claude mcp list

Claude Code MCPドキュメント

設定 → 開発者 → 設定を編集 を開き、以下を追加します:

{
  "mcpServers": {
    "google-forms": {
      "command": "npx",
      "args": ["-y", "mcp-google-forms@latest"],
      "env": {
        "GOOGLE_FORMS_CLIENT_ID": "your_client_id",
        "GOOGLE_FORMS_CLIENT_SECRET": "your_client_secret",
        "GOOGLE_FORMS_REFRESH_TOKEN": "your_refresh_token"
      }
    }
  }
}

設定を編集 が利用できない場合は、macOSでは ~/Library/Application Support/Claude/claude_desktop_config.json、Windowsでは %APPDATA%\Claude\claude_desktop_config.json を編集します。

Claude Desktop MCPドキュメント

macOS/Linuxでは ~/.cursor/mcp.json に、Windowsでは %USERPROFILE%\.cursor\mcp.json に以下を追加します:

{
  "mcpServers": {
    "google-forms": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "mcp-google-forms@latest"],
      "env": {
        "GOOGLE_FORMS_CLIENT_ID": "your_client_id",
        "GOOGLE_FORMS_CLIENT_SECRET": "your_client_secret",
        "GOOGLE_FORMS_REFRESH_TOKEN": "your_refresh_token"
      }
    }
  }
}

Cursor MCPドキュメント

MCP: Open User Configuration を実行し、以下を追加します:

{
  "servers": {
    "google-forms": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "mcp-google-forms@latest"],
      "env": {
        "GOOGLE_FORMS_CLIENT_ID": "${input:forms_client_id}",
        "GOOGLE_FORMS_CLIENT_SECRET": "${input:forms_client_secret}",
        "GOOGLE_FORMS_REFRESH_TOKEN": "${input:forms_refresh_token}"
      }
    }
  },
  "inputs": [
    { "type": "promptString", "id": "forms_client_id", "description": "Google OAuth client ID" },
    { "type": "promptString", "id": "forms_client_secret", "description": "Google OAuth client secret", "password": true },
    { "type": "promptString", "id": "forms_refresh_token", "description": "Google OAuth refresh token", "password": true }
  ]
}

MCP: List Servers で確認します。

VS Code MCPドキュメント

何を依頼できるか

アンケートとその回答を調べる

  • このフォームの質問、回答設定、回答者リンクを表示する。

  • 月曜日から何件の回答が届きましたか?自由記述のフィードバックを要約してください。

  • IDを指定して1件の回答を表示する。

フォームを作成・改善する

  • 名前、食事の好み、到着日を含むRSVPフォームを作成する。

  • 必須の評価、ドロップダウン、日付、時刻、選択肢、テキストの質問を追加する。

  • 質問を並べ替えたり、タイトル、説明、クイズモード、メールアドレス収集を更新したりする。

公開と通知の接続

  • 準備したフォームを公開し、回答者用URLを表示する。

  • フォームを削除せずに新しい回答の受け付けを停止する。

  • 新しい回答に対するCloud Pub/Subウォッチを作成、更新、または削除する。

フォームがどう変わるか

  1. create_form はフォームを作成します。このフォームは既定では未公開で開始します。

  2. 質問は項目であり、フォーム内の位置によって識別されます。

  3. 公開すると、回答者がフォームを利用できるようになります。回答の収集を停止してもフォームは公開されたままですが、新しい回答は受け付けなくなります。

  4. 回答は独立した読み取り専用のレコードです。APIは回答者の回答を送信、編集、削除できません。

ファイルアップロードの質問はForms APIでは作成できませんが、既存のファイルアップロード項目は読み取ることができます。Googleの公開モデルより前に作成されたレガシーフォームでは、公開設定がサポートされない場合があります。

変更できること

操作

動作

確認の境界

フォームとその回答を読み取る

フォーム構造と回答を読み取る

変更なし

フォームを作成する

未公開のフォームを追加する

Google Formsを変更する

質問を追加または移動する

フォームの項目を変更する

フォームを変更する

フォーム情報、設定、または項目を更新する

タイトル、設定、または選択した質問を変更する

フォームを変更する

公開、非公開、回答の受け付け開始・停止

フォームを利用できる人を変更する

フォームの公開状況を変更する

項目を削除する

選択した質問を削除する

破壊的

Pub/Subウォッチを管理する

通知配信を作成、更新、または削除する

破壊的な可能性がある

生のAPIリクエスト

専用ツールなしでAPIメソッドを呼び出せる

破壊的な可能性がある

AIクライアントが確認プロンプトを制御します。サーバーは読み取り、書き込み、破壊的なツールをマークするため、クライアントは調査(読み取り)と実際の変更を区別できます。

アクセス権の取得

Google FormsではOAuth 2.0が必要です。APIキーだけでは不十分です。

  1. Google Cloudプロジェクトを作成または選択し、Google Forms APIを有効にします。

  2. OAuth同意画面を設定し、デスクトップアプリのOAuthクライアントを作成します。

  3. フォームを所有している、または編集できるGoogleアカウントを承認します。OAuth 2.0 Playgroundは、独自のOAuth認証情報を使用が有効になっている場合、リフレッシュトークンを取得できます。

  4. 両方のスコープをリクエストします:

    https://www.googleapis.com/auth/forms.body
    https://www.googleapis.com/auth/forms.responses.readonly

テストモードのOAuthリフレッシュトークンは7日後に失効することがあります。長期間のアクセスが必要な場合は、OAuthアプリを公開するか、Workspaceドメインで内部アプリを使用してください。クライアントシークレットとリフレッシュトークンはパスワードとして扱ってください。

設定

変数

必須

説明

GOOGLE_FORMS_CLIENT_ID

はい*

OAuthクライアントID。

GOOGLE_FORMS_CLIENT_SECRET

はい*

OAuthクライアントシークレット。

GOOGLE_FORMS_REFRESH_TOKEN

はい*

OAuthリフレッシュトークン。

GOOGLE_FORMS_ACCESS_TOKEN

はい*

OAuth 3点セットに代わる短時間有効なアクセストークン。

GOOGLE_FORMS_API_BASE

いいえ

Google Forms APIのベースURLの上書き。

GOOGLE_FORMS_TIMEOUT_MS

いいえ

リクエストごとのタイムアウト。既定値は 60000 ミリ秒。

GOOGLE_FORMS_MAX_RETRIES

いいえ

一時的なエラーの再試行回数。既定値は 3。

* OAuth 3点セットまたはアクセストークンのいずれかを指定します。

データ、制限、バックグラウンド処理

  • リクエストはGoogle Formsに送信されます。 ローカルサーバーはGoogle OAuthトークンを更新し、Forms APIを呼び出します。その匿名テレメトリには、インストールID、パッケージバージョン、AIクライアントとプラットフォームのバージョン、ツール名が含まれます。OAuthトークン、フォームデータ、ツールの引数、プロンプトが含まれることは決してありません。オプトアウトするには ASKADS_TELEMETRY=0 を設定します。

  • Googleは1分あたりのクォータを適用します。 ドキュメント化されている制限は、プロジェクトごとに読み取り975回、list_responses 呼び出し450回、書き込み375回です。429 の場合はサーバーがバックオフを使用します。読み取りはネットワークエラーや 5xx エラーの後にも再試行されますが、書き込みは不確実な障害の後に再実行されることはありません。

  • バックグラウンドでのポーリングはありません。 サーバーは呼び出されたときだけ実行されます。Pub/Subウォッチは、新しい回答について独自のインフラストラクチャに通知できます。AIアプリがスケジュールタスクをサポートしている場合は、定期的に回答を確認することもできます。

技術ドキュメント

サポート

バグを見つけた場合やシナリオが必要な場合は、イシューを作成 するか、Telegram でご連絡ください。

Available Tools

19 tools
add_questionAdd a questionA

Adds a question to the form (a convenience wrapper over batchUpdate createItem). Types: text (short answer), paragraph (long answer), radio (single choice), checkbox (multiple choice), dropdown, scale (linear scale low..high), date, time, rating (stars/hearts/thumbs). Choice types require options[]. Returns the created itemId and questionId from the batchUpdate replies. index inserts at that 0-based position; omit it to append at the end (costs one extra read to count items). Quiz grading (points, correct answers, feedback) cannot be set here — after adding, use update_question with the questionItem.question.grading mask. File-upload questions cannot be created via the API, and question grids (questionGroupItem) need raw_request with a batchUpdate body.

Inputs: type (required), title (required), form_id (required), low, +13 more.

auth_statusGoogle connection statusA
Read-onlyIdempotent

Shows whether this server is connected to Google: token presence and source (env variables or a stored in-chat login), expiry, the Google account email, granted vs missing OAuth scopes, where the credentials file lives and where the OAuth client comes from. Makes no network calls and never returns the token itself. Call it first when other tools report the server is not connected.

Inputs: no named parameters.

create_formCreate a formA

Creates a new Google Form and returns it (formId, revisionId, responderUri, publishSettings). The API only accepts a title and an optional document title at creation (the Drive file name — it cannot be changed later through this API) — add questions with add_question and change settings with update_form_settings afterwards. IMPORTANT: API-created forms are UNPUBLISHED by default and do not accept responses; pass publish=true to publish immediately, or call set_publish_settings later. If the chained publish step fails, the form still exists: the result carries formId with published:false and publish_error — finish with set_publish_settings, never create_form again. Share the responderUri with respondents once published.

Inputs: title (required), publish, document_title.

delete_itemDelete an itemA
Destructive

Deletes the item at the given 0-based index (question, page break, text block, ...). Deletion shifts every later item one position down — re-check indexes with get_form between successive deletes.

Inputs: index (required), form_id (required).

finish_loginFinish the Google loginA
Idempotent

Second step: waits up to 20 s for the browser consent to finish, saves the tokens to an owner-only file and verifies the login with a read-only identity call, returning the account email and the granted scopes. After success every tool works immediately — no client restart. If the user granted only part of the requested permissions, the login is still saved and missingScopes lists what will not work. Logging in under a different Google account replaces the previous login (its refresh token is revoked best-effort) and the response carries previousAccountEmail so the change never goes unnoticed.

Inputs: no named parameters.

get_formGet a formA
Read-onlyIdempotent

Returns the full form: info (title, description), settings (quiz mode, email collection), items[] with their itemId/questionId and question definitions, publishSettings, responderUri and linkedSheetId. Items are returned in order — their 0-based positions are the indexes that update_question, delete_item and move_item address, so call this before mutating items.

Inputs: form_id (required).

get_responseGet one responseA
Read-onlyIdempotent

Fetches a single submission by its responseId (from list_responses): answers keyed by questionId, createTime, lastSubmittedTime, respondentEmail and totalScore when available. Map questionId to the question text via get_form.

Inputs: form_id (required), response_id (required).

list_responsesList form responsesA
Read-onlyIdempotent

Lists submitted responses: responseId, createTime, lastSubmittedTime, respondentEmail (only when email collection is on), answers keyed by questionId (map questionId → question via get_form), and totalScore for graded quizzes. submitted_after keeps only responses submitted strictly after that RFC3339 UTC timestamp — the API's only filter; there is no ordering or email filter, do that client-side. Paginate with page_token from nextPageToken. Note: this endpoint has a lower per-minute quota than other reads — poll incrementally with submitted_after rather than re-listing everything. The API is read-only for responses; submitting them programmatically is impossible.

Inputs: form_id (required), page_size, page_token, submitted_after.

logoutDisconnect from GoogleA
Destructive

Revokes the stored token at Google (oauth2.googleapis.com/revoke) and deletes the local credentials file. Tokens supplied via env variables are NOT touched — remove them from the MCP client config manually; envTokenStillSet in the response says whether any are still in effect.

Inputs: no named parameters.

manage_watchesManage push-notification watchesA
Destructive

Manages Cloud Pub/Sub push-notification watches on a form. action=create needs event_type (RESPONSES = new submissions, SCHEMA = form structure changes) and topic_name; the topic must live in your Cloud project and grant the Pub/Sub Publisher role to forms-notifications@system.gserviceaccount.com. action=list shows your watches; delete and renew need watch_id. Watches expire after 7 days — renew extends 7 days from now and reactivates a SUSPENDED watch. Notifications carry only formId/watchId/eventType attributes (no payload): on RESPONSES call list_responses with submitted_after, on SCHEMA call get_form. Limits: 1 watch per user per form+event type, 20 per Cloud project.

Inputs: action (required), form_id (required), watch_id, event_type, +1 more.

move_itemMove an itemA

Moves the item at from_index to to_index (both 0-based, to_index is the position after removal). Use get_form to see the current order first.

Inputs: form_id (required), to_index (required), from_index (required).

raw_requestRaw Google Forms API callA
Destructive

Escape hatch to call any Google Forms API v1 path directly, for requests the typed tools don't cover — e.g. a batchUpdate with questionGroupItem grids, writeControl/requiredRevisionId, includeFormInResponse, or several requests at once: path "v1/forms/:batchUpdate", method POST, body {"requests":[...]}. The path may carry a query string (e.g. "v1/forms//responses?filter=timestamp%20%3E%202026-08-01T00:00:00Z"). The Bearer token is added automatically; the method defaults to GET.

Inputs: path (required), body, method.

set_clientSave the OAuth clientA
Idempotent

Saves the OAuth client credentials from the JSON file downloaded from Google Cloud Console ('Download JSON' on a Desktop-app client). Pass the file PATH — the secret must never be pasted into the chat. The client is stored once in the shared ~/.config/mcp-google-auth/client.json (owner-only) and reused by every mcp-google-* server; tokens stay per-server. After this, call start_login.

Inputs: path (required).

set_publish_settingsPublish or unpublish a formA
DestructiveIdempotent

Publishes or unpublishes the form and opens/closes response collection. is_accepting_responses defaults to mirroring is_published (publish = start accepting, unpublish = stop). Use is_published=true with is_accepting_responses=false to keep a published form visible but closed. Fails on legacy forms created before the publish model existed — those are managed only in the Forms UI.

Inputs: form_id (required), is_published (required), is_accepting_responses.

setup_instructionsSetup instructionsA
Read-onlyIdempotent

This server ships with a built-in OAuth client, so connecting normally needs only start_login + finish_login; call this for the details or to switch to your own client. The checklist adapts to the client in use: with the built-in client it is just the two login calls, and it adds the steps for your OWN client — creating a Google Cloud project and a Desktop-app OAuth client, publishing the consent screen (mandatory — Testing-mode refresh tokens die after 7 days), downloading the client JSON and handing its PATH to set_client. Works without any credentials; with your own client already configured it shortens to 'enable the API + log in' (one client serves the whole mcp-google-* line). Never asks the user to paste secrets into the chat.

Inputs: no named parameters.

start_loginStart the Google loginA
Idempotent

First step of connecting from the chat, without editing config files or restarting the client. Returns authorizeUrl — show it to the user as a clickable link and ask them to open it in the browser ON THIS MACHINE, pick the Google account and approve access. A one-shot listener on 127.0.0.1 catches Google's redirect; the code is exchanged locally and never passes through the chat. Does not open the browser itself. The attempt lives 10 minutes; when the browser shows the success page, call finish_login.

Inputs: no named parameters.

update_form_infoUpdate form infoA
DestructiveIdempotent

Changes the form's title and/or description. Only the provided fields are touched (the updateMask is computed automatically); at least one field is required. The document title (the Drive file name) is set once at create_form and cannot be changed through the Forms API — renaming the file needs the Drive API, which this server does not cover. Returns the batchUpdate replies with the new revisionId.

Inputs: form_id (required), title, description.

update_form_settingsUpdate form settingsA
DestructiveIdempotent

Toggles quiz mode (grading with points) and/or the email collection mode. Quiz mode only enables grading — points, correct answers and feedback are set per question afterwards via update_question with the questionItem.question.grading mask (add_question cannot set them). email_collection_type: DO_NOT_COLLECT, VERIFIED (respondent must be signed in; email verified) or RESPONDER_INPUT (respondent types an email). At least one field is required; only the provided fields are touched.

Inputs: form_id (required), is_quiz, email_collection_type.

update_questionUpdate an itemA
DestructiveIdempotent

Updates an existing item (question or other) via batchUpdate updateItem. The item is addressed by its 0-based index — call get_form first to see current positions and the item's current shape. item is a raw Forms API Item object with the new values; update_mask names the fields to replace, e.g. "title" or "title,questionItem.question.required". Only masked fields change; masking a field the item object leaves unset clears it.

Inputs: item (required), index (required), form_id (required), update_mask (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.3/5.0

    Scored across 19 tools

    Disambiguation4/5

    Most tools target a distinct resource+action, and the descriptions actively separate the confusable pairs (update_form_info vs update_form_settings vs set_publish_settings, add_question vs update_question). Minor overlap remains: set_client and setup_instructions both concern OAuth client configuration, and raw_request can duplicate almost any typed tool, though it is clearly framed as an escape hatch.

    Naming Consistency4/5

    The dominant pattern is verb_noun with a consistent snake_case style: create_form, get_form, update_form_info, add_question, delete_item, move_item, list_responses, get_response, manage_watches. Deviations are few — auth_status is noun-first, logout is verb-only, and raw_request is a bare noun — but the set reads predictably.

    Tool Count4/5

    19 tools is on the high side but each maps to a real operation: a 6-tool OAuth lifecycle, form CRUD/settings, item manipulation, response reading, watches, and one escape hatch. Nothing looks redundant or padded, though the auth cluster could arguably be compressed.

    Completeness4/5

    Coverage is strong for the Forms API: form create/read/update, publish/close, question add/update/delete/move, response list/get, and watch management, with raw_request covering uncovered paths like question grids. Real gaps remain — no delete_form or duplicate_form (explicitly deferred to the Drive API) and no batch question creation.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers