Skip to main content
Glama

Google Forms MCP Server

by masatoshi118

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

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.

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

  1. 如何构建
    1. 初始设置
    2. 构建服务器
    3. 构建脚本以获取刷新令牌
    4. 在开发环境中运行
  2. 如何设置
    1. 可用工具
      1. 使用示例

        Related MCP Servers

        • A
          security
          A
          license
          A
          quality
          Utilizes Gemini API and Google Search to generate answers based on the latest information for user queries.
          Last updated -
          3
          22
          JavaScript
          MIT License
        • -
          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 -
          70
          TypeScript
          MIT License
        • A
          security
          A
          license
          A
          quality
          Enables search capabilities using a Google Custom Search Engine, allowing users to input a search term and retrieve search result titles, links, and snippets, while facilitating integration with other tools for content extraction and advanced search strategies.
          Last updated -
          1
          28
          Python
          The Unlicense

        View all related MCP servers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/masatoshi118/mcp_google_froms'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server