Google Forms MCP Server

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 表单 MCP 服务器

该 MCP 服务器使用 Google Forms API 提供创建和编辑表单以及获取回复等功能。

如何构建

初始设置

克隆存储库后,安装依赖项:

cd google-forms-server npm install

构建服务器

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

构建脚本以获取刷新令牌

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

在开发环境中运行

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

如何设置

  1. 在 Google Cloud Console 中创建一个项目并启用 Google Forms API。
  2. 获取 OAuth 2.0 客户端 ID 和密钥。
    • API 和服务 > 凭证 > 创建凭证 > OAuth 客户端 ID
    • 应用程序类型:选择“桌面应用程序”
  3. 设置环境变量以获取刷新令牌。
    export GOOGLE_CLIENT_ID="あなたのクライアントID" export GOOGLE_CLIENT_SECRET="あなたのクライアントシークレット" cd google-forms-server npm run build node build/get-refresh-token.js
    注意:如果运行get-refresh-token.js时出现错误,请运行以下命令:
    cd google-forms-server npm run build:token node build/get-refresh-token.js
  4. 复制显示的刷新令牌。
  5. 更新 Claude 桌面应用程序的配置文件。
    • 打开~/Library/Application Support/Claude/claude_desktop_config.json
    • 将环境变量添加到mcpServers部分中的google-forms-server :GXP7
  6. 重新启动 Claude 的桌面应用程序。

可用工具

该 MCP 服务器提供以下工具:

  1. create_form - 创建一个新的 Google 表单
  2. add_text_question - 向表单添加文本问题
  3. add_multiple_choice_question - 向表单添加多项选择题
  4. get_form - 获取表单的详细信息
  5. get_form_responses - 获取表单回复

使用示例

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

Claude 使用 MCP 工具创建表单,例如:

  1. 使用create_form工具创建新表单
  2. 使用add_text_questionadd_multiple_choice_question工具添加问题
  3. 查看创建的表单的URL
-
security - not tested
F
license - not found
-
quality - not tested

支持与 Google Forms API 交互,以通过自然语言命令创建表单、添加问题和检索答复。

  1. ビルド方法
    1. 初期セットアップ
    2. サーバーのビルド
    3. リフレッシュトークン取得スクリプトのビルド
    4. 開発環境における実行
  2. セットアップ方法
    1. 使用可能なツール
      1. 使用例
        ID: pj6j2l2dba