Google 表单 MCP 服务器
该 MCP 服务器使用 Google Forms API 提供创建和编辑表单以及获取回复等功能。
如何构建
初始设置
克隆存储库后,安装依赖项:
构建服务器
构建脚本以获取刷新令牌
在开发环境中运行
如何设置
在 Google Cloud Console 中创建一个项目并启用 Google Forms API。
从 API 和服务 > 库中搜索“Google Forms API”并启用它。
获取 OAuth 2.0 客户端 ID 和密钥。
API 和服务 > 凭证 > 创建凭证 > OAuth 客户端 ID
应用程序类型:选择“桌面应用程序”
设置环境变量以获取刷新令牌。
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复制显示的刷新令牌。
更新 Claude 桌面应用程序的配置文件。
打开
~/Library/Application Support/Claude/claude_desktop_config.json
。将环境变量添加到
mcpServers
部分中的google-forms-server
:GXP7
重新启动 Claude 的桌面应用程序。
可用工具
该 MCP 服务器提供以下工具:
create_form
- 创建一个新的 Google 表单add_text_question
- 向表单添加文本问题add_multiple_choice_question
- 向表单添加多项选择题get_form
- 获取表单的详细信息get_form_responses
- 获取表单回复
使用示例
Claude 使用 MCP 工具创建表单,例如:
使用
create_form
工具创建新表单使用
add_text_question
和add_multiple_choice_question
工具添加问题查看创建的表单的URL
This server cannot be installed
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 交互,以通过自然语言命令创建表单、添加问题和检索答复。
Related MCP Servers
- AsecurityAlicenseAqualityUtilizes Gemini API and Google Search to generate answers based on the latest information for user queries.Last updated -23MIT License
- -securityFlicense-qualityEnables form management, response handling, and analytics through the Fillout.io API for enhanced form interactions and insights.Last updated -
- -securityAlicense-qualityIntegrates with Google Tasks to allow listing, reading, searching, creating, updating, and deleting tasks.Last updated -84MIT License
- -securityAlicense-qualityEnables interaction with Gmail through the Gmail API to read, send, and manage emails. Supports multiple Gmail accounts with real-time monitoring and advanced features for email search and attachment handling.Last updated -16Apache 2.0