Google Forms MCP Server

by masatoshi118

Integrations

  • Provides tools for creating and managing Google Forms, including creating forms, adding text and multiple choice questions, retrieving form details, and collecting form responses.

Google Forms MCP Server

This MCP server uses the Google Forms API to provide functions such as creating and editing forms and getting responses.

How to build

Initial Setup

After cloning the repository, install the dependencies:

cd google-forms-server npm install

Building the Server

# メインのMCPサーバーをビルド npm run build

Build the script to obtain a refresh token

# リフレッシュトークン取得スクリプトをビルド npm run build:token

Running in a development environment

# サーバーを直接実行 node build/index.js # または、npm scriptを使用 npm run start

How to set it up

  1. Create a project in the Google Cloud Console and enable the Google Forms API.
  2. Obtain an OAuth 2.0 client ID and secret.
    • APIs and Services > Credentials > Create Credentials > OAuth Client ID
    • Application Type: Select "Desktop App"
  3. Set the environment variables to get the refresh token.
    export GOOGLE_CLIENT_ID="あなたのクライアントID" export GOOGLE_CLIENT_SECRET="あなたのクライアントシークレット" cd google-forms-server npm run build node build/get-refresh-token.js
    Note: If an error occurs when running get-refresh-token.js, run the following command:
    cd google-forms-server npm run build:token node build/get-refresh-token.js
  4. Copy the refresh token that is displayed.
  5. Update the configuration file for Claude's desktop app.
    • Open ~/Library/Application Support/Claude/claude_desktop_config.json .
    • Add the environment variable to google-forms-server in mcpServers section: GXP7
  6. Restart Claude's desktop app.

Available Tools

This MCP server provides the following tools:

  1. create_form - Creates a new Google Form
  2. add_text_question - Adds a text question to the form
  3. add_multiple_choice_question - Adds a multiple choice question to the form
  4. get_form - Gets the details of a form
  5. get_form_responses - Get form responses

Usage Example

フォームを作成して、いくつかの質問を追加してください。

Claude creates forms using MCP tools such as:

  1. Create a new form using the create_form tool
  2. Add questions using add_text_question and add_multiple_choice_question tools
  3. View the URL of the created form
-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Enables interaction with Google Forms API to create forms, add questions, and retrieve responses through natural language commands.

  1. How to build
    1. Initial Setup
    2. Building the Server
    3. Build the script to obtain a refresh token
    4. Running in a development environment
  2. How to set it up
    1. Available Tools
      1. Usage Example

        Related MCP Servers

        • -
          security
          F
          license
          -
          quality
          Enables form management, response handling, and analytics through the Fillout.io API for enhanced form interactions and insights.
          Last updated -
          TypeScript
        • -
          security
          A
          license
          -
          quality
          Integrates with Google Tasks to allow listing, reading, searching, creating, updating, and deleting tasks.
          Last updated -
          15
          TypeScript
          MIT License
        • A
          security
          A
          license
          A
          quality
          Enables extracting data from websites using natural language prompts, allowing users to specify exactly what content they want in plain English and returning structured JSON data.
          Last updated -
          1
          1,379
          4
          TypeScript
          MIT License
          • Apple
          • Linux
        • -
          security
          F
          license
          -
          quality
          Provides browser automation capabilities through an API endpoint that interprets natural language commands to perform web tasks using OpenAI's GPT models.
          Last updated -
          Python

        View all related MCP servers

        ID: pj6j2l2dba