Skip to main content
Glama

Google Forms MCP

English | Русский

npm CI Glama License: MIT

A1 Google Forms MCP ermöglicht einer KI-App, Google Formulare in einfacher Sprache zu erstellen und zu verwalten. Erstelle eine Umfrage, wähle ihre Fragen, veröffentliche sie, wenn du bereit bist, lies Antworten und nutze Benachrichtigungen für neue Einsendungen.

Es verwendet die Google Forms API mit deinem Google-Konto. Es unterscheidet ein Entwurfsformular von einem veröffentlichten Formular und macht die Grenzen der Forms API deutlich, statt den Eindruck zu erwecken, dass jede Formularaufgabe möglich sei.

  • 13 Tools. Untersuche Formularstrukturen und Antworten, erstelle und bearbeite Formulare und Fragen, verwalte die Veröffentlichung und konfiguriere Pub/Sub-Watches.

  • Bewusst veröffentlichen. Über die API erstellte Formulare starten unveröffentlicht und können so keine Antworten sammeln, bis du sie veröffentlichst.

  • Antworten bleiben erhalten. Die API kann Antworten lesen, aber nicht erstellen oder bearbeiten; der Server hat kein Tool, das Antworten einreicht.

  • Minimale Google-Berechtigungen. Es verwendet forms.body und forms.responses.readonly, ohne breiten Drive-Zugriff.

Starte mit einer reinen Lesefrage:

Zeig mir die Antworten von gestern auf dem Kundenfeedback-Formular und fasse die Freitextantworten zusammen.

Server verbinden · Anwendungsfälle ansehen · Technische Dokumentation öffnen


So funktioniert es in einer Minute

Du: Zeig mir die Fragen und Veröffentlichungseinstellungen des Kundenfeedback-Formulars.

Assistent: Zeigt das Formular, seine Elemente, ob es veröffentlicht ist und ob es Antworten akzeptiert. Dabei ändert sich nichts.

Du: Erstelle eine Pflicht-Bewertungsfrage mit einer Skala von 1 bis 5 namens „Wie war deine Erfahrung?“ direkt nach der ersten Frage.

Assistent: Zeigt das Zielformular, die Position und die vorgeschlagene Frage und fragt dann, bevor er sie hinzufügt, um Bestätigung.

Du: Bestätige.

Assistent: Fügt die Frage dem Formular hinzu. Er veröffentlicht oder schließt das Formular nicht, wenn du es nicht separat verlangst.

Related MCP server: Google Workspace MCP Server

Inhaltsverzeichnis

Schnellstart

Du benötigst Node.js 20+, ein Google-Konto und OAuth-Anmeldedaten aus einem Google-Cloud-Projekt, in dem die Google Forms API aktiviert ist.

  1. Bereite Google-OAuth-Zugang vor.

  2. Füge den Server in deine KI-App ein.

  3. Stelle die obige reine Lesefrage.

In der App: Öffne Settings → Developer → Plugins → MCP servers, wähle Add server und füge dann npx -y mcp-google-forms@latest zusammen mit GOOGLE_FORMS_CLIENT_ID, GOOGLE_FORMS_CLIENT_SECRET und GOOGLE_FORMS_REFRESH_TOKEN hinzu.

Von der Kommandozeile:

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-Dokumentation

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-Dokumentation

Öffne Settings → Developer → Edit Config und füge Folgendes hinzu:

{
  "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"
      }
    }
  }
}

Wenn Edit Config nicht verfügbar ist, bearbeite ~/Library/Application Support/Claude/claude_desktop_config.json aufmacOS oder %APPDATA%\Claude\claude_desktop_config.json unter Windows.

Claude-Desktop-MCP-Dokumentation

Füge Folgendes zu ~/.cursor/mcp.json auf macOS/Linux oder %USERPROFILE%\.cursor\mcp.json unter Windows hinzu:

{
  "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-Dokumentation

Führe MCP: Open User Configuration aus und füge Folgendes hinzu:

{
  "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 }
  ]
}

Überprüfe es mit MCP: List Servers.

VS-Code-MCP-Dokumentation

Was du es bitten kannst zu tun

Eine Umfrage und Antworten ansehen

  • Zeige mir die Fragen, Antworteneinstellungen und den Teilnehmerlink dieses Formulars.

  • Wie viele Antworten sind seit Montag eingegangen? Fasse das Feedback der Freitextantworten zusammen.

  • Zeige mir eine einzelne Antwort anhand ihrer ID.

Formulare erstellen und verbessern

  • Erstelle ein RSVP-Formular mit Name, Essenspräferenz und Anreisedatum.

  • Füge eine Pflicht-Bewertungs-, Dropdown-, Datums-, Zeit-, Auswahl- oder Textfrage hinzu.

  • Verschiebe eine Frage oder aktualisiere Titel, Beschreibung, Quizmodus oder E-Mail-Sammlung.

Publish und Benachrichtigungen verknüpfen

  • Veröffentliche ein vorbereitetes Formular und zeige seine Teilnehmer-URL.

  • Beende die Annahme neuer Antworten, ohne das Formular zu löschen.

  • Erstelle, erneuere oder entferne einen Cloud Pub/Sub-Watch für neue Einsendungen.

Wie sich ein Formular ändert

  1. create_form erstellt ein Formular, das standardmäßig unveröffentlicht beginnt.

  2. Fragen sind Formularelemente, die über ihre Position im Formular identifiziert werden.

  3. Veröffentlichen macht ein Formular für Teilnehmer zugänglich. Das Schließen der Antwortsammlung lässt es veröffentlicht, stoppt aber neue Einsendungen.

  4. Antworten sind ein damit separater, reiner Lesedatensatz. Die API kann die Antwort eines Teilnehmers nicht einreichen, bearbeiten oder löschen.

Dateiupload-Fragen können über die Forms API nicht erstellt werden, obwohl vorhandene Dateiupload-Elemente gelesen werden können. Eine alte Formulare, die vor dem Veröffentlichungsmodell von Google erstellt wurden, unterstützen möglicherweise keine Veröffentlichungseinstellungen.

Was sich ändern kann

Vorgang

Was passiert

Bestätigungsgrenze

Formular und Antworten lesen

Liest Formularstruktur und Antworten

Keine Änderung

Formular erstellen

Erstellt ein unveröffentlichtes Formular

Ändert Google Forms

Frage hinzufügen oder verschieben

Ändert Formularelemente

Ändert ein Formular

Formularinfo, Einstellungen oder ein Element aktualisieren

Ändert Titel, Einstellungen oder eine ausgewählte Frage

Ändert ein Formular

Veröffentlichen, Veröffentlichung aufheben, Antworten öffnen oder schließen

Ändert, wer das Formular verwenden kann

Ändert die öffentliche Verfügbarkeit eines Formulars

Element löschen

Entfernt ein ausgewähltes Fragelement

Potentiell zerstörerisch

Pub/Sub-Watch verwalten

Erstellt, erneuert oder löscht Benachrichtigungsabonnement

Potentiell destruktiv

Raw-API-Anfrage

Kann API-Methoden ohne eigenes Tool aufrufen

Potentiell destruktiv

Der KI-Client steuert die Auftragsbestätigungen. Der Server kennzeichnet Lese-, Schreib- und destructive Werkzeuge, damit der Client eine Überprüfung von einer echten Änderung unterscheiden kann.

Zugang erhalten

Google Forms erfordert OAuth 2.0; ein API-Schlüssel reicht nicht.

  1. Erstelle oder wähle ein Google-Cloud-Projekt und aktiviere Google Forms API.

  2. Konfigure den OAuth-Zustimmungsbildschirm und erstelle einen OAuth-Client für Desktop-App.

  3. Autorisier das Google-Konto, das die Formulare besitzt oder bearbeiten darf. Der OAuth 2.0 Playground -OAuth-2.0-Playground kann den Refresh Token erhalten, wenn Use your own OAuth credentials aktiviert ist.

  4. Frag beide Bereiche an:

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

OAuth-Refresh-Tokens im Testmodus können nach sieben Tagen verfallen. Veröffentliche die OAuth-App oder verwende eine interne App in einer Workspace-Domain, wenn du einen langlebigen Zugriff benötigst. Behandle Client-Secret und Refresh-Token wie Passwörter.

Konfiguration

Variable

Erforderlich

Beschreibung

GOOGLE_FORMS_CLIENT_ID

Ja*

OAuth-Client-ID.

GOOGLE_FORMS_CLIENT_SECRET

Ja*

OAuth-Client-Geheimnis.

GOOGLE_FORMS_REFRESH_TOKEN

Ja*

OAuth-Refresh-Token.

GOOGLE_FORMS_ACCESS_TOKEN

Ja*

Kurzzeitiges Alternative zum OAuth-Trio.

GOOGLE_FORMS_API_BASE

Nein

Basis-URL-Überschreibung für Google Forms API.

GOOGLE_FORMS_TIMEOUT_MS

Nein

Timeout pro Anfrage; Standard 60000 ms.

GOOGLE_FORMS_MAX_RETRIES

Nein

Wiederholungen bei temporären Fehlern; Standard 3.

* Gib entweder das OAuth-Trio oder ein Zugriffstoken an.

Daten, Grenzen und Hintergrundarbeit

  • Anfragen gehen an Google Forms. Der Server erneuert Google-OAuth-Tokens und ruft die Forms API auf. Seine anonyme Fehlertelemetrie enthält eine Installations-ID, Paketversion, KI-Client, Plattformversion und Tool-Namen – nie OAuth-Tokens, Formulardaten, Tool-Argumente oder Prompts. Set ASKADS_TELEMETRY=0, um zu deaktivieren.

  • Google wendet Pro-Minuten-Kontingente an. Die dokumentierten Grenzwerte sind 1250 Lesevorgänge pro Projekt, 5000 list_responses-Aufrufe and 100 changes. Er nach 429 verwendet der Server Backoff; Lesevorgänge werden bei Netzwerk- und 5xx-Fehlern erneut versucht, während Schreibvorgänge nach einem unsicheren Fehler nicht wiederholt werden.

  • Es gibt keinen Hintergrund-Polling. Der Server läuft nur, wenn er angeboten wird. Pub/Sub-Watches können Benachrichtigungen über neue Antworten an deine Infrastruktur senden; zusätzlich kann die KI-App geplante Aufgaben unterstützen, um regelmäßig Antworten prüft.

Technische Dokumentation

Unterstützung

Hast du einen Fehle besteht A. Erstellen Sie einen Fehler oder ein fehlendes Szenario gefunden? Erstelle ein Issue oder schreibe inTelegram.

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