
Microsoft Forms API
io.github.Maxim-MazurokPublished by GitHub account Maxim-Mazurokv0.2.2Updated Oct 24, 2026
Inspect, validate, upload, and submit Microsoft Forms responses
The publisher's own server: Microsoft Learn MCP
Overview
Local MCP server that lets an assistant inspect Microsoft Forms, validate answers, upload files and submit responses through a signed-in browser session.
- What you can do
- Inspect forms: read normalized and raw form structure, question types, options, required state, text validation, matrix rows, file restrictions and branching targets, and authenticate via a visible browser login. Validate answers: resolve branches and check or serialize answers without submitting. Upload files: send a local file through the authenticated Forms frontend and return answer metadata. Submit responses: create a response after explicit confirmation, then save or list response links in the signed-in account.
- When to use it
- Useful when you need an assistant to read a Microsoft Form and explain its questions and branching, prepare and check answers before a human submits, or automate filling in and submitting forms you are authorized to respond to.
- Requirements
- Runs locally via npx with Node.js 22 or later. Needs Google Chrome or Microsoft Edge, or Playwright Chromium is installed automatically. A Microsoft Forms sign-in is required on first use; the session is stored in a local browser profile directory, overridable with MSFORMS_PROFILE_DIRECTORY. MSFORMS_BROWSER_CHANNEL selects chrome or msedge, and MSFORMS_HEADLESS set to false shows browser windows.
Installation
In SourceWeft
- Open Microsoft Forms API in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
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
Source: README.md at commit c2726ad
Tools
0Version history
1- v0.2.2LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Other Microsoft integrations

Microsoft Learn MCP
com.microsoftOfficial publisher
A free remote MCP server that lets an AI assistant search official Microsoft Learn documentation, find code samples, and fetch documentation pages as markdown.

Playwright Cloud Browsers
com.microsoftOfficial publisher
Remote MCP server giving AI agents managed Playwright cloud browsers to create sessions, navigate and inspect pages, and interact with elements.

Microsoft Sentinel Data Exploration
com.microsoftOfficial publisher
Remote Microsoft Sentinel MCP server that lets an assistant find relevant tables and retrieve security data from the Sentinel data lake using natural language.
Visio
com.microsoft
Lets an assistant create, update and read Microsoft Visio diagrams by driving the Visio desktop application on the user's Windows machine.

Microsoft Clarity MCP
Published by GitHub account surendranb
Local MCP server that pulls Microsoft Clarity behavioral UX data — rage clicks, dead clicks, quick backs and JS errors — into an AI assistant.