原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Microsoft Forms API

作者:Maxim-Mazurok版本 0.2.2i★ –i在你的电脑上运行
注册名称io.github.Maxim-Mazurok/msforms-api

安装

概览

作者提供的说明(英文原文)

Inspect, validate, upload, and submit Microsoft Forms responses

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 其他

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: MSFORMS_PROFILE_DIRECTORY, MSFORMS_BROWSER_CHANNEL, MSFORMS_HEADLESS

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "msforms-api": {
      "command": "npx",
      "args": [
        "-y",
        "msforms-api",
        "msforms-api-mcp"
      ],
      "env": {
        "MSFORMS_PROFILE_DIRECTORY": "your-value",
        "MSFORMS_BROWSER_CHANNEL": "your-value",
        "MSFORMS_HEADLESS": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add msforms-api --env MSFORMS_PROFILE_DIRECTORY=your-value --env MSFORMS_BROWSER_CHANNEL=your-value --env MSFORMS_HEADLESS=your-value -- npx -y msforms-api msforms-api-mcp

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "msforms-api": {
      "command": "npx",
      "args": [
        "-y",
        "msforms-api",
        "msforms-api-mcp"
      ],
      "env": {
        "MSFORMS_PROFILE_DIRECTORY": "your-value",
        "MSFORMS_BROWSER_CHANNEL": "your-value",
        "MSFORMS_HEADLESS": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "msforms-api": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "msforms-api",
        "msforms-api-mcp"
      ],
      "env": {
        "MSFORMS_PROFILE_DIRECTORY": "your-value",
        "MSFORMS_BROWSER_CHANNEL": "your-value",
        "MSFORMS_HEADLESS": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • MSFORMS_PROFILE_DIRECTORY env
    Persistent browser profile directory override
  • MSFORMS_BROWSER_CHANNEL env
    Browser channel: chrome or msedge
  • MSFORMS_HEADLESS env
    Set to false to show operational browser windows

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 Maxim-Mazurok 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 32623 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 32623 个服务器的 23% 更新
  • 基础检查结果等于或优于此分类中其他 32623 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Microsoft Forms API 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.2.2)于3个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, Draugr

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Spec Driven Development

作者:formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

在你的电脑上运行★ 440MIT14个月前更新
安装

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

在云端运行★ 211前天更新
安装

Draugr

作者:draugr-dev

Security scanning for AI agents: SAST, SCA, secrets, IaC, DAST, ranked by real risk.

在你的电脑上运行今天更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

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:

  1. MCP server for AI agents and editors — recommended for most users.
  2. Agent skill backed by the CLI for agents that can run shell commands.
  3. CLI for scripts and terminal workflows.
  4. TypeScript SDK for custom applications.

[!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:

npx -y skills add Maxim-Mazurok/msforms-api

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:

{

"mcpServers": { "microsoft-forms": { "command": "npx", "args": ["-y", "-p", "msforms-api@latest", "msforms-api-mcp"] } } }

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:

code --add-mcp '{"name":"microsoft-forms","command":"npx","args":["-y","-p","msforms-api@latest","msforms-api-mcp"]}'

Windows PowerShell:

code --add-mcp '{"name":"microsoft-forms","command":"npx","args":["-y","-p","msforms-api@latest","msforms-api-mcp"]}'

Claude Desktop

Add the MCP configuration above to claude_desktop_config.json.

Claude Code

claude mcp add microsoft-forms -- npx -y -p msforms-api@latest msforms-api-mcp

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

ToolBehavior
forms_authenticateOpens visible browser login
forms_inspectReturns normalized and raw form structure
forms_validateResolves branches and validates without submitting
forms_upload_fileUploads a local file and returns answer metadata
forms_submitCreates a response after elicited confirmation
forms_save_responseSaves an existing response link
forms_list_saved_responsesLists saved response links

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:

npx -y -p msforms-api@latest msforms-api guide

CLI

Run without installing globally:

# Sign in once

npx -y -p msforms-api@latest msforms-api auth

Inspect a form

npx -y -p msforms-api@latest msforms-api inspect \ --form 'https://forms.cloud.microsoft/Pages/ResponsePage.aspx?id=...'

Validate answers without submitting

npx -y -p msforms-api@latest msforms-api validate \ --form 'https://forms.cloud.microsoft/Pages/ResponsePage.aspx?id=...' \ --answers @answers.json

Submit only when intended

npx -y -p msforms-api@latest msforms-api submit \ --form 'https://forms.cloud.microsoft/Pages/ResponsePage.aspx?id=...' \ --answers @answers.json \ --save-response \ --confirm

Frequent CLI users can install globally:

npm install --global msforms-api

msforms-api auth

Every command emits JSON. Add --compact for single-line output.

Authentication and local data

Authentication opens a visible browser and stores its profile under:

~/.msforms-api/browser-profile

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:

msforms-api --profile ~/.config/my-forms-profile --browser chrome auth

MCP environment variables:

VariablePurpose
MSFORMS_PROFILE_DIRECTORYPersistent browser profile override
MSFORMS_BROWSER_CHANNELchrome or msedge
MSFORMS_HEADLESSSet to false to show operational browser windows

Delete ~/.msforms-api/browser-profile to remove the local session.

Answer format

Answers are keyed by exact question ID returned from forms_inspect.

Question typeInput
TextString
Single choiceOption label or ID
Multiple choiceArray of option labels or IDs
DateYYYY-MM-DD string
Rating or NPSNumber
RankingOrdered array containing every option label or ID
Matrix rowOption label, or { "id": ..., "key": ... }
File uploadArray of objects returned by forms_upload_file

Matrix answers use each row question ID, not the matrix group ID.

{

"text-question-id": "Ada Lovelace", "multiple-choice-question-id": ["Desktop", "Laptop"], "date-question-id": "2026-08-12", "ranking-question-id": ["Branching", "Uploads", "Ratings"], "matrix-row-question-id": { "label": "Agree" }, "file-question-id": [ { "name": "document.pdf", "uploadSessionUrl": "https://...", "link": "https://...", "badgerToken": null, "time": 1786492949627, "status": 3, "id": "sharepoint-item-id" } ] }

SDK

npm install msforms-api
import { MicrosoftFormsClient } from "msforms-api";

const client = new MicrosoftFormsClient(); const form = await client.getForm(formUrl);

const answers = { [form.questions[0].id]: "Example answer", };

const validation = await client.validateAnswers(formUrl, answers); if (!validation.valid) { throw new Error(JSON.stringify(validation.issues)); }

const submission = await client.submitResponse(formUrl, answers, { saveResponse: true, });

if (submission.saveResponseStatus === "failed") { console.error(submission.saveResponseError); await client.saveResponse( formUrl, submission.responseId, submission.submitDate, ); }

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 branchTargetId values.
  • 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:

{

"id": "source-question-id", "type": "Question.Choice", "options": [ { "label": "Yes", "branchTargetId": "target-question-id" } ] }

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:

GET  /formapi/api/{tenant}/users/{owner}/light/runtimeForms('{formId}')

POST /formapi/api/{tenant}/users/{owner}/forms('{formId}')/responses POST /formapi/api/{tenant}/users/{o

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx