google-forms-mcp
Create and manage Google Forms, including adding questions and retrieving responses. Streamline form management through the integration with the Google Forms API.
Author

delorenj
Quick Info
Actions
Tags
Google Forms MCP Server
This MCP server uses the Google Forms API to provide functions such as creating and editing forms, and retrieving responses.
Build Instructions
Initial Setup
After cloning the repository, install dependencies:
cd google-forms-server
npm install
Build the Server
# Build the main MCP server
npm run build
Build the Refresh Token Script
# Build the refresh token acquisition script
npm run build:token
Running in Development Environment
# Run the server directly
node build/index.js
# Or, use the npm script
npm run start
Setup Instructions
-
Create a project in the Google Cloud Console and enable the Google Forms API.
- https://console.cloud.google.com/
- Search for "Google Forms API" in API & Services > Library and enable it.
-
Obtain an OAuth 2.0 Client ID and Secret.
- API & Services > Credentials > Create Credentials > OAuth client ID
- Application type: Select "Desktop app"
-
Set environment variables and obtain a refresh token.
bash export GOOGLE_CLIENT_ID="YOUR_CLIENT_ID" export GOOGLE_CLIENT_SECRET="YOUR_CLIENT_SECRET" cd google-forms-server npm run build node build/get-refresh-token.jsNote: If you encounter an error when running
get-refresh-token.js, execute the following commands:bash cd google-forms-server npm run build:token node build/get-refresh-token.js -
Copy the displayed refresh token.
-
Update the Claude desktop app's configuration file.
- Open
~/Library/Application Support/Claude/claude_desktop_config.json. - Add environment variables to the
google-forms-serverin themcpServerssection:json "google-forms-server": { "command": "node", "args": [ "/path/to/your/mcp-google-form/google-forms-server/build/index.js" // Update this path ], "env": { "GOOGLE_CLIENT_ID": "YOUR_CLIENT_ID", "GOOGLE_CLIENT_SECRET": "YOUR_CLIENT_SECRET", "GOOGLE_REFRESH_TOKEN": "YOUR_REFRESH_TOKEN" } }Note: Ensure the path inargspoints to the correct location ofindex.json your system.
- Open
-
Restart the Claude desktop app.
Available Tools
This MCP server provides the following tools:
create_form- Creates a new Google Formadd_text_question- Adds a text question to the formadd_multiple_choice_question- Adds a multiple-choice question to the formget_form- Retrieves the details of a formget_form_responses- Retrieves the responses for a form
Usage Example
I want to guage my dev team's familiarity and comfort level integrating AI in their workflow.
Use your google forms tools to create a 2-4 minute multiple-choice survey!
Claude will use MCP tools like the following to create the form:
- Use the
create_formtool to create a new form - Use the
add_text_questionoradd_multiple_choice_questiontools to add questions - Display the URL of the created form
