
Microsoft Forms API
io.github.Maxim-Mazurok由 GitHub 账号 Maxim-Mazurok 发布v0.2.2更新于 Oct 24, 2026
Inspect, validate, upload, and submit Microsoft Forms responses
发布方自己的服务:Microsoft Learn MCP
概览
本地 MCP 服务器,让助手通过已登录的浏览器会话查看 Microsoft Forms、校验答案、上传文件并提交回复。
- 可以做什么
- 查看表单:读取规范化及原始表单结构、题型、选项、必填状态、文本校验、矩阵行、文件限制和分支目标,并通过可见的浏览器登录完成认证。校验答案:解析分支并在不提交的情况下检查或序列化答案。上传文件:通过已认证的 Forms 前端上传本地文件并返回答案元数据。提交回复:在明确确认后创建回复,并在已登录账户中保存或列出回复链接。
- 适用场景
- 适合需要助手阅读 Microsoft Form 并解释其问题与分支、在人工提交前准备和检查答案,或自动化填写并提交你有权回复的表单的场景。
- 运行要求
- 通过 npx 在本地运行,需要 Node.js 22 或更高版本。需要 Google Chrome 或 Microsoft Edge,两者都不可用时会自动安装 Playwright Chromium。首次使用需登录 Microsoft Forms,会话保存在本地浏览器配置目录中,可用 MSFORMS_PROFILE_DIRECTORY 覆盖。MSFORMS_BROWSER_CHANNEL 选择 chrome 或 msedge,MSFORMS_HEADLESS 设为 false 可显示浏览器窗口。
安装
在 SourceWeft 中
- 打开 控制台中的 Microsoft Forms API,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
msforms-api
AI-native Microsoft Forms automation for inspecting forms, resolving branching, validating answers, uploading files, submitting responses, and saving response links.
Use it as:
- MCP server for AI agents and editors — recommended for most users.
- Agent skill backed by the CLI for agents that can run shell commands.
- CLI for scripts and terminal workflows.
- TypeScript SDK for custom applications.
[Install in VS Code] [Install in VS Code Insiders] [Install in Cursor] [npm version] [CI]
[!NOTE] This project was generated by GitHub Copilot App using GPT-5.6 Sol with Extra High reasoning in Autopilot mode.
[!WARNING] This project uses reverse-engineered Microsoft Forms web APIs. Microsoft does not document or guarantee these endpoints. They can change without notice. This project is not affiliated with or endorsed by Microsoft.
Quick start
Prerequisites
- Node.js 22 or later.
- Google Chrome or Microsoft Edge. Playwright Chromium is installed automatically when neither is available.
Install as an agent skill
The CLI skill teaches agents how to inspect branching, prepare and validate answers, upload authorized files, and require explicit approval before submission:
The installer detects supported agents such as Claude Code, Cursor, GitHub Copilot, and Codex, then asks where to install the skill. Choose global scope to use it across projects.
The skill runs msforms-api through npx, so it does not require a global
package installation or MCP configuration. It is an alternative interface to
the MCP server; both use the same CLI and SDK behavior.
Install in an AI tool
Click an install badge above, or use this MCP configuration. For Cursor, save
it as ~/.cursor/mcp.json:
On first use, ask your agent to authenticate Microsoft Forms. A browser opens for sign-in, then future operations reuse the persistent session.
Try:
Inspect this Microsoft Form and explain every question, validation, upload rule, and branch:
https://forms.cloud.microsoft/...
The agent can prepare and validate answers without submitting. Submission uses a separate destructive MCP tool and requires explicit confirmation.
VS Code CLI installation
macOS / Linux:
Windows PowerShell:
Claude Desktop
Add the MCP configuration above to claude_desktop_config.json.
Claude Code
Windsurf and other MCP clients
Add the MCP configuration above to your client's MCP configuration file.
What agents can do
- Read complete form metadata, including raw API objects.
- Understand question types, options, required state, and text validation.
- Resolve choice branching through stable question identifiers.
- Inspect matrix rows and their shared options.
- Inspect file count, size, and extension restrictions.
- Validate and serialize answers without submitting.
- Upload files through the authenticated Forms frontend.
- Submit only after explicit confirmation.
- Save and list response links in the signed-in account.
MCP tools
forms_submit is marked destructive and non-idempotent. It uses MCP v2
multi-round-trip elicitation. Declined or false confirmation never reaches
submission code.
Cross-cutting workflow and safety guidance is also available through:
CLI
Run without installing globally:
Frequent CLI users can install globally:
Every command emits JSON. Add --compact for single-line output.
Authentication and local data
Authentication opens a visible browser and stores its profile under:
The SDK uses that profile to obtain scoped Forms cookies, an anti-forgery token, and session metadata. It does not print or return those credentials. Normal reads and submissions use direct Forms HTTP requests. File upload is browser-assisted because the Forms frontend manages SharePoint authorization.
Override the profile or browser:
MCP environment variables:
Delete ~/.msforms-api/browser-profile to remove the local session.
Answer format
Answers are keyed by exact question ID returned from forms_inspect.
Matrix answers use each row question ID, not the matrix group ID.
SDK
submitResponse() is direct at SDK level. Applications using the SDK must
implement their own user confirmation boundary. CLI requires --confirm; MCP
requires elicitation.
submissionStatus: "submitted" or a returned responseId means the permanent
response exists. A requested response-link save can fail independently. In
that case, saveResponseStatus is "failed", submission details remain in the
result, and callers must not submit again. Retry only the idempotent
saveResponse() operation.
Form structure
The normalized form model includes:
- IDs, titles, subtitles, order, type, and required state.
- Choice labels and
branchTargetIdvalues. - Matrix rows with inherited options.
- Text validation boundaries and rules.
- File upload restrictions.
- Parsed form settings.
- Full raw form and question objects for forward compatibility.
Example branch:
forms_validate returns visible question IDs, issues, and the exact serialized
answer array. Questions skipped by branching are omitted.
How it works
Browser bootstrap exposes the anti-forgery token, server session ID, form-owner tenant and user, responder tenant and user, and form prefetch URL. The client combines that data with scoped Forms cookies for direct requests.
Observed endpoint families:
The normalized model retains raw objects so newly introduced Forms properties remain inspectable before this package adds first-class support.
Limitations
- APIs are private and may change.
- File upload currently requires the upload question to be visible in the rendered branch.
- Authentication depends on Microsoft Forms web login behavior.
- The package is for legitimate form automation. Respect form owners, tenant policies, privacy requirements, and applicable law.
Development
See CONTRIBUTING.md.
License
来源:README.md,提交 c2726ad
工具
0版本历史
1- v0.2.2最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
其他 Microsoft 集成

Microsoft Learn MCP
com.microsoft官方发布者
一个免费的远程 MCP 服务器,让 AI 助手搜索微软官方 Learn 文档、查找代码示例,并把文档页面抓取为 markdown。

Playwright Cloud Browsers
com.microsoft官方发布者
远程 MCP 服务器,为 AI 智能体提供托管的 Playwright 云端浏览器,可创建会话、访问并检查页面、与页面元素交互。

Microsoft Sentinel Data Exploration
com.microsoft官方发布者
远程 Microsoft Sentinel MCP 服务器,让助手用自然语言查找相关表并从 Sentinel 数据湖检索安全数据。
Visio
com.microsoft
让助手通过桌面自动化在用户的 Windows 机器上创建、更新和读取 Microsoft Visio 图表。

Microsoft Clarity MCP
由 GitHub 账号 surendranb 发布
本地 MCP 服务器,把 Microsoft Clarity 的行为 UX 数据(暴怒点击、无效点击、快速返回、JS 错误)提供给 AI 助手分析。