MCP server for the Google Forms API: create forms, manage questions, read responses and watches.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
MCP server for the Google Forms API: create forms, add and edit questions, publish, read responses and set up push notifications for new submissions β from Claude, Cursor, Codex and other AI clients, in natural language.
Ask your assistant to "make a customer-feedback survey with a rating question and publish it", "show me yesterday's responses", or "close the form for responses" β it drives the Forms API for you, from a blank form to response analysis.
Get OAuth credentials for the Google Forms API.
Add the server β for example, in Claude Code (other clients):
Ask the assistant: "Create a form called 'Team lunch survey' with a dropdown of three restaurants and publish it."
| Tool | Description |
|---|---|
create_form | Create a form (optionally publish it right away β API-created forms start unpublished). |
get_form | Full form structure: info, settings, items with ids, publish state, responder URL. |
update_form_info | Change the title, description or document title. |
update_form_settings | Toggle quiz mode and email collection. |
add_question | Add a question: text, paragraph, radio, checkbox, dropdown, scale, date, time, rating. |
update_question | Update an existing item by index with an explicit update mask. |
delete_item | Delete the item at an index. |
move_item | Reorder items. |
set_publish_settings | Publish/unpublish, open/close response collection. |
list_responses | List submissions, incrementally with submitted_after; paginated. |
get_response | Fetch one submission by id. |
manage_watches | Create/list/delete/renew Cloud Pub/Sub push-notification watches. |
raw_request | Escape hatch: any Forms API v1 path (e.g. a custom batchUpdate with grids). |
Plus resilience built in: automatic OAuth token refresh (including on 401), retries with backoff on 429 (and on 5xx/network errors for reads only β writes are never replayed), a request timeout, and an SSRF guard so the token can't leak to a foreign host.
publish: true on create_form or set_publish_settings. Legacy forms (from before the
publish model) don't support set_publish_settings at all.list_responses 450, writes 375); the server
backs off on 429 automatically.Requires Node.js 20+ (runs via npx, no separate install).
claude_desktop_config.json β macOS ~/Library/Application Support/Claude/, Windows %APPDATA%\Claude\
~/.cursor/mcp.json (or .cursor/mcp.json in the project)
.vscode/mcp.json β note the servers key (not mcpServers)
The Forms API has no API-key access β every call needs OAuth 2.0. One-time setup, ~10 minutes:
https://developers.google.com/oauthplayground as an authorized redirect URI
to the OAuth client first).https://www.googleapis.com/auth/forms.body https://www.googleapis.com/auth/forms.responses.readonly
and click Authorize APIs, signing in with the test-user account.GOOGLE_FORMS_CLIENT_ID, GOOGLE_FORMS_CLIENT_SECRET and
GOOGLE_FORMS_REFRESH_TOKEN. The server exchanges the refresh token for short-lived access
tokens automatically.Scope notes: forms.body + forms.responses.readonly is the minimal, recommended pair (no
broad Drive access). While the consent screen stays in Testing mode, refresh tokens expire
after 7 days β publish the app (or keep it Internal in a Workspace domain) for long-lived tokens.
β οΈ The credentials are stored in plain text in your client's config β treat them like a password. The refresh token grants access to your forms until revoked at myaccount.google.com/permissions.
| Variable | Required | Default | Description |
|---|---|---|---|
GOOGLE_FORMS_CLIENT_ID | yes* | β | OAuth2 client id (refresh flow). |
GOOGLE_FORMS_CLIENT_SECRET | yes* | β | OAuth2 client secret (refresh flow). |
GOOGLE_FORMS_REFRESH_TOKEN | yes* | β | OAuth2 refresh token (refresh flow). |
GOOGLE_FORMS_ACCESS_TOKEN | yes* | β | Alternative: a static access token (~1 h lifetime), mostly for testing. |
GOOGLE_FORMS_API_BASE | no | https://forms.googleapis.com | API root override. |
GOOGLE_FORMS_TIMEOUT_MS | no | 60000 | Per-request timeout, ms. |
GOOGLE_FORMS_MAX_RETRIES | no | 3 | Retries on transient errors. |
* Either the three refresh-flow variables together, or GOOGLE_FORMS_ACCESS_TOKEN.
Questions, ideas, issues β Telegram @gistrec or GitHub issues.
MIT β see LICENSE.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/google-forms-mcp)<a href="https://allmcps.com/mcp/google-forms-mcp"><img src="https://allmcps.com/api/badge/google-forms-mcp?style=directory" alt="Google Forms MCP on AllMCPs" /></a>