Skip to main content
Glama

Google Forms MCP

English | Русский

npm CI Glama License: MIT

A1 Google Forms MCP позволяет ИИ-приложению создавать формы Google Forms и управлять ими на простом языке. Создайте опрос, выберите его вопросы, опубликуйте его, когда будете готовы, читайте ответы и используйте уведомления о новых отправках.

Он использует Google Forms API с вашей учётной записью Google. Он различает черновую и опубликованную форму и явно показывает ограничения Forms API, а не создаёт впечатление, что любая задача с формами возможна.

  • 13 инструментов. Изучайте структуру форм и ответы, создавайте и редактируйте формы и вопросы, управляйте публикацией и настраивайте Pub/Sub-подписки.

  • Публикуйте осознанно. Формы, созданные через API, по умолчанию не опубликованы, поэтому не могут собирать ответы, пока вы их не опубликуете.

  • Ответы остаются нетронутыми. API может читать ответы, но не может создавать или изменять их; на сервере нет инструмента, который отправляет ответы.

  • Минимальные области Google. Используются forms.body и forms.responses.readonly, без широкого доступа к Drive.

Начните с вопроса, который только читает данные:

Покажи вчерашние ответы на форму обратной связи с клиентами и обобщи ответы в свободной форме.

Подключите сервер · Сценарии использования · Техническая документация


Посмотрите, как это работает, за минуту

Вы: Покажи вопросы и настройки ответов формы обратной связи с клиентами.

Ассистент: Показывает форму, её элементы, опубликована ли она и принимает ли ответы. Ничего не меняется.

Вы: Подготовь обязательный вопрос с оценкой от 1 до 5 под названием «Как вам ваш опыт?» после первого вопроса.

Ассистент: Показывает целевую форму, позицию и предлагаемый вопрос, затем запрашивает подтверждение перед добавлением.

Вы: Подтверждаю.

Ассистент: Добавляет вопрос в форму. Он не публикует и не закрывает форму, если вы не попросите об этом отдельно.

Related MCP server: Google Workspace MCP Server

Содержание

Быстрый старт

Вам нужны Node.js 20+, учётная запись Google и учётные данные OAuth из проекта Google Cloud с включённым Google Forms API.

  1. Подготовьте доступ Google OAuth.

  2. Добавьте сервер в ваше ИИ-приложение.

  3. Задайте приведённый выше вопрос, который ничего не меняет.

В приложении: откройте Settings → Plugins → MCP servers, выберите Add server и добавьте 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

Документация MCP для Codex

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

Документация MCP для Claude Code

Откройте Settings → Developer → Edit Config и добавьте:

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

Если Edit Config недоступен, отредактируйте ~/Library/Application Support/Claude/claude_desktop_config.json на macOS или %APPDATA%\Claude\claude_desktop_config.json на Windows.

Документация MCP для Claude Desktop

Добавьте это в ~/.cursor/mcp.json на macOS/Linux или в %USERPROFILE%\.cursor\mcp.json на Windows:

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

Документация MCP для Cursor

Выполните 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.

Документация MCP для VS Code

Что можно попросить сделать

Просмотр опроса и его ответов

  • Покажи вопросы этой формы, настройки ответов и ссылку для респондентов.

  • Сколько ответов поступило с понедельника? Обобщи отзывы в свободной форме.

  • Покажи один ответ по ID.

Создание и улучшение формы

  • Создай форму RSVP с именем, предпочтением по еде и датой прибытия.

  • Добавь обязательный вопрос с оценкой, раскрывающимся списком, датой, временем, выбором или текстом.

  • Измени порядок вопроса или обнови название, описание, режим теста или сбор электронных писем.

Публикация и подключение уведомлений

  • Опубликуй подготовленную форму и покажи её URL для респондентов.

  • Прекрати принимать новые ответы, не удаляя форму.

  • Создай, продли или удали подписку Cloud Pub/Sub для новых отправок.

Как изменяется форма

  1. create_form создаёт форму, которая по умолчанию не опубликована.

  2. Вопросы — это элементы, определяемые по их позиции в форме.

  3. Публикация делает форму доступной для респондентов; закрытие сбора ответов оставляет её опубликованной, но останавливает новые отправки.

  4. Ответы — это отдельная запись только для чтения. API не может отправлять, изменять или удалять ответ респондента.

Вопросы с загрузкой файлов нельзя создать через Forms API, хотя существующие элементы с загрузкой файлов можно читать. Устаревшие формы, созданные до модели публикации Google, могут не поддерживать настройки публикации.

Что может измениться

Операция

Что происходит

Граница подтверждения

Чтение формы и её ответов

Читает структуру формы и ответы

Без изменений

Создание формы

Добавляет неопубликованную форму

Изменяет Google Forms

Добавление или перемещение вопроса

Изменяет элементы формы

Изменяет форму

Обновление информации о форме, настроек или элемента

Изменяет название, настройки или выбранный вопрос

Изменяет форму

Публикация, снятие с публикации, открытие или закрытие ответов

Изменяет, кто может пользоваться формой

Изменяет публичную доступность формы

Удаление элемента

Удаляет выбранный вопрос

Разрушающее действие

Управление подпиской Pub/Sub

Создаёт, продлевает или удаляет доставку уведомлений

Потенциально разрушающее действие

Прямой запрос к API

Может вызывать методы API без отдельного инструмента

Потенциально разрушающее действие

ИИ-клиент управляет запросами на подтверждение. Сервер помечает инструменты чтения, записи и разрушающие, чтобы клиент мог отличить просмотр от реального изменения.

Получение доступа

Google Forms требует OAuth 2.0; ключа API недостаточно.

  1. Создайте или выберите проект Google Cloud и включите Google Forms API.

  2. Настройте экран согласия OAuth и создайте OAuth-клиент Desktop app.

  3. Авторизуйте учётную запись Google, которая владеет формами или может их редактировать. OAuth 2.0 Playground может получить токен обновления, когда включён параметр Use your own OAuth credentials.

  4. Запросите обе области:

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

Токены обновления OAuth в тестовом режиме могут истекать через семь дней. Если вам нужен долгосрочный доступ, опубликуйте OAuth-приложение или используйте внутреннее приложение в домене Workspace. Относитесь к секрету клиента и токену обновления как к паролям.

Конфигурация

Переменная

Обязательная

Описание

GOOGLE_FORMS_CLIENT_ID

Да*

Идентификатор OAuth-клиента.

GOOGLE_FORMS_CLIENT_SECRET

Да*

Секрет OAuth-клиента.

GOOGLE_FORMS_REFRESH_TOKEN

Да*

Токен обновления OAuth.

GOOGLE_FORMS_ACCESS_TOKEN

Да*

Кратковременная альтернатива триаде OAuth.

GOOGLE_FORMS_API_BASE

Нет

Переопределение базового URL Google Forms API.

GOOGLE_FORMS_TIMEOUT_MS

Нет

Тайм-аут на запрос; по умолчанию 60000 мс.

GOOGLE_FORMS_MAX_RETRIES

Нет

Повторы при временных ошибках; по умолчанию 3.

* Укажите либо триаду OAuth, либо токен доступа.

Данные, лимиты и фоновая работа

  • Запросы идут в Google Forms. Локальный сервер обновляет токены Google OAuth и вызывает Forms API. Его анонимная телеметрия содержит идентификатор установки, версию пакета, клиент ИИ, версии платформ и имена инструментов — но никогда токены OAuth, данные форм, аргументы инструментов или запросы. Установите ASKADS_TELEMETRY=0, чтобы отказаться от телеметрии.

  • Google применяет поминутные квоты. Документированные лимиты: 975 чтений на проект, 450 вызовов list_responses и 375 записей. При 429 сервер использует backoff; чтения также повторяются после сетевых ошибок и ошибок 5xx, а записи не повторяются после неопределённого сбоя.

  • Фонового опроса нет. Сервер работает только при вызове. Подписки Pub/Sub могут уведомлять вашу собственную инфраструктуру о новых ответах; если ваше ИИ-приложение поддерживает запланированные задачи, оно также может периодически проверять ответы.

Техническая документация

Поддержка

Нашли ошибку или нужен сценарий? Создайте issue или напишите в 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