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

Excel Webview2 MCP

作者:dsbissett版本 0.0.13i★ –i在你的电脑上运行
注册名称io.github.dsbissett/excel-webview2-mcp

安装

概览

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

MCP server for Excel add-ins via WebView2 CDP

PopNx MCP 的三大支柱

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

它能帮你做什么

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

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 文档、表格与办公

安装

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

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 注册中心没有列出需要填写的密钥。

你需要

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

你用的是哪个应用?

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

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

{
  "mcpServers": {
    "excel-webview2": {
      "command": "npx",
      "args": [
        "-y",
        "@dsbissett/excel-webview2-mcp"
      ]
    }
  }
}

在终端中运行这条命令

claude mcp add excel-webview2 -- npx -y @dsbissett/excel-webview2-mcp

在 Cursor 中打开

或者自己复制设置

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

{
  "mcpServers": {
    "excel-webview2": {
      "command": "npx",
      "args": [
        "-y",
        "@dsbissett/excel-webview2-mcp"
      ]
    }
  }
}

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

在 VS Code 中打开

或者自己复制设置

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

{
  "servers": {
    "excel-webview2": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@dsbissett/excel-webview2-mcp"
      ]
    }
  }
}

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

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

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

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

它能做什么

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

基础检查i

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

  • ✓ 通过

    作者与仓库一致

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

  • … 尚未检查

    仍在维护

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

  • … 尚未检查

    有许可证

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

  • – 不适用

    端点有响应

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

  • – 不适用

    使用 OAuth 登录

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

  • … 尚未检查

    工具描述中没有隐藏指令

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

与“文档、表格与办公”中的其他服务器比较i

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

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

常见问题

Excel Webview2 MCP 安全吗?

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

它需要哪些密钥或代码?

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

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

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

它还在维护吗?

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

哪些应用可以使用它?

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

有什么可以替代它?

同一分类中有:Agent-Native Calendar, Excel MCP Server, MCP Server for Excel

替代选择

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

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

Agent-Native Calendar

作者:BuilderIO

Agent-Native Google Calendar - manage events, sync, and public booking

在云端运行★ 7,620MIT2个月前更新
安装

Excel MCP Server

作者:haris-musa

Create and edit Excel files with AI: charts, PivotTables, formulas. No Excel needed.

在你的电脑上运行★ 4,276MIT7天前更新
安装

MCP Server for Excel

作者:sbroenne

Excel automation for AI - Sheets, Power Query, DAX, VBA, Tables, Ranges and more. Windows only.

在你的电脑上运行★ 847MIT4天前更新
安装

作者的 README

打开 README

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

Excel WebView2 MCP

Professional MCP connectivity for Microsoft Excel add-ins running inside WebView2.

ItemValue
Package@dsbissett/excel-webview2-mcp
UpstreamFork of ChromeDevTools/chrome-devtools-mcp
Target runtimeExcel add-ins hosted in WebView2
Debug endpointhttp://127.0.0.1:9222
Recommended setupClaude Code plugin marketplace

[!IMPORTANT]

As of v0.0.2, this server can launch Excel and sideload your add-in for you. You no longer need to start the dev server or attach a debugger before using it — excel_launch_addin will start your local dev server (if configured) and launch Excel with WebView2 remote debugging enabled on port 9222.

Manual pre-launch is still supported: if an Excel add-in is already running with remote debugging on 9222, the server will attach to it.

What's New in v0.0.2

  • Add-in lifecycle management — new tools launch and stop Excel add-ins directly from Claude Code:
  • excel_detect_addin — discover manifest and dev server configuration for the current project.
  • excel_launch_addin — start the dev server (if needed) and launch Excel with the add-in sideloaded and CDP port 9222 enabled.
  • excel_stop_addin — tear down the launched Excel session and dev server process tree.
  • Read-only Excel inspection tools — a broad set of read operations for inspecting workbooks, worksheets, ranges, tables, pivots, charts, and more. None of these mutate workbook state:
  • Context & structure: excel_context_info, excel_workbook_info, excel_list_worksheets, excel_worksheet_info, excel_active_range, excel_used_range.
  • Range reads: excel_read_range, excel_range_properties, excel_range_formulas, excel_range_special_cells, excel_find_in_range.
  • Formatting & validation: excel_list_conditional_formats, excel_list_data_validations.
  • Tables & names: excel_list_tables, excel_table_info, excel_table_rows, excel_table_filters, excel_list_named_items.
  • Comments & shapes: excel_list_comments, excel_list_shapes.
  • Calculation & pivots: excel_calculation_state, excel_list_pivot_tables, excel_pivot_table_info, excel_pivot_table_values.
  • Charts: excel_list_charts, excel_chart_info, excel_chart_image.
  • Misc: excel_custom_xml_parts, excel_settings_get.
  • Socket-based port detection replaces HTTP polling for more reliable dev-server and CDP readiness checks on Node 24.
  • Robust cleanup on Windows — excel_stop_addin now force-kills the dev server process tree via taskkill.

Fork Notice

This repository is a fork of the Chrome DevTools MCP repository, ChromeDevTools/chrome-devtools-mcp. It preserves the upstream DevTools and MCP foundation, while adapting the connection model for Microsoft Excel add-ins hosted in WebView2.

What This Project Does

  • Connects Claude Code to a locally running Excel add-in through the Chrome DevTools Protocol (CDP).
  • Exposes MCP tools for inspection, automation, screenshots, console access, network inspection, and performance analysis.
  • Targets the embedded WebView2 runtime used by Excel add-ins instead of a standalone Chrome session.

Connection Model

Claude Code

| v excel-webview2-mcp | v WebView2 remote debugging endpoint (localhost:9222) | v Locally running Excel add-in

That separation matters: excel-webview2-mcp is a bridge to an existing debug session. It is not the thing that launches or hosts the add-in.

Prerequisites

You have two supported workflows:

Auto-launch (recommended, v0.0.2+)
  1. Your Office add-in project (with a manifest.xml and a dev server script) lives on disk.
  2. Excel desktop is installed on Windows.
  3. Node.js is installed and npx @dsbissett/excel-webview2-mcp@latest is runnable.

Call excel_detect_addin first to confirm the project is discovered, then excel_launch_addin to start the dev server and sideload the add-in into Excel with CDP port 9222 enabled. Use excel_stop_addin to tear everything down.

Manual / pre-attached
  1. Your Excel add-in is already loaded and running in the local Excel desktop client.
  2. WebView2 remote debugging is enabled and bound to port 9222 (see Launching Excel with the debug port).
  3. The debugging endpoint is reachable at http://127.0.0.1:9222.

Verify with:

curl http://127.0.0.1:9222/json

Launching Excel with the debug port

This section applies to Excel desktop on Windows. Per Microsoft's WebView2 and Office add-in documentation, the supported way to pass Chromium flags into the WebView2 runtime is WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS. The WebView2 team also documents a registry-based fallback for persistent configuration.

If you are using Excel for Mac, this MCP server does not apply. Microsoft documents Excel for Mac debugging through Safari Web Inspector instead of a WebView2 CDP port.

Sources:

Windows: preferred local-dev setup

Set the environment variable before launching Excel so the Excel process inherits it:

$env:WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS="--remote-debugging-port=9222"

Then:

  1. Launch Excel from that same shell or from a parent process that inherited the variable.
  2. Start your add-in locally.
  3. Confirm the debug endpoint is live.

Worked example:

$env:WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS="--remote-debugging-port=9222"

start excel.exe

The Office add-ins team documents this environment-variable mechanism generically for WebView2-hosted add-ins, and the WebView2 team documents --remote-debugging-port=9222 as a valid browser argument.

Windows: persistent registry fallback

If you need a persistent machine-local setting, the WebView2 team documents this registry policy path:

HKEY_CURRENT_USER\Software\Policies\Microsoft\Edge\WebView2\AdditionalBrowserArguments

Use:

  • Value name: EXCEL.EXE
  • Value data: --remote-debugging-port=9222

Use the environment variable first for local development. It is easier to turn on and off and avoids leaving a persistent machine-wide setting behind.

Verify the endpoint

Run:

curl http://127.0.0.1:9222/json/version

A healthy response is JSON and includes fields such as:

{

"Browser": "...", "Protocol-Version": "...", "webSocketDebuggerUrl": "ws://127.0.0.1:9222/devtools/browser/..." }

If that curl command fails, Excel is not exposing the WebView2 debug port yet, and excel-webview2-mcp will not be able to attach.

Installation

The server ships as the npm package @dsbissett/excel-webview2-mcp and is invoked via npx. The configuration below is the same across every host — only the location of the config file changes.

Canonical MCP entry:

{

"mcpServers": { "excel-webview2": { "command": "npx", "args": ["@dsbissett/excel-webview2-mcp@latest"] } } }

Claude Code (CLI)

One-liner:

claude mcp add excel-webview2 -- npx @dsbissett/excel-webview2-mcp@latest

Use claude mcp add --scope user ... to make the server available in every project, or --scope project to check the config into .mcp.json for teammates.

Alternatively, install the bundled plugin:

  1. Add the marketplace from .claude-plugin/marketplace.json with /plugin marketplace add dsbissett/excel-webview2-mcp.
  2. Install with /plugin install excel-webview2-mcp.

Claude Code (VS Code extension)

  1. Open the Claude Code side panel in VS Code.
  2. Open the command palette and run Claude Code: Manage MCP Servers (or click the MCP icon in the Claude panel).
  3. Choose Add Server and paste the canonical MCP entry above, or run the claude mcp add command in the VS Code integrated terminal — the extension reads the same config.

Cursor

Edit ~/.cursor/mcp.json (global) or .cursor/mcp.json in the project root and add the canonical MCP entry above. Restart Cursor, then open Settings → MCP to confirm excel-webview2 shows as connected.

Codex (OpenAI Codex CLI)

Codex reads MCP servers from ~/.codex/config.toml. Add:

[mcp_servers.excel-webview2]

command = "npx" args = ["@dsbissett/excel-webview2-mcp@latest"]

Then launch codex and confirm the server appears in /mcp.

GitHub Copilot (VS Code)

GitHub Copilot Chat in VS Code supports MCP servers through the agent-mode configuration.

  1. Create or edit .vscode/mcp.json in your workspace (or the user-level mcp.json via MCP: Open User Configuration from the command palette).
  2. Add the server entry:
   {

"servers": { "excel-webview2": { "command": "npx", "args": ["@dsbissett/excel-webview2-mcp@latest"] } } }

  1. Open Copilot Chat, switch to Agent mode, and click the Tools icon to confirm the excel-webview2 tools are available. Use MCP: List Servers from the command palette to inspect status or restart the server.
Verifying the install

After adding the server, ask the model to call excel_detect_addin from your Office add-in project directory. A successful response confirms the MCP server is wired up; from there excel_launch_addin will take care of starting Excel.

By default, the server connects to the local WebView2 debugging endpoint at http://127.0.0.1:9222.

Local Development

npm install

npm run build npm start

Supported Node.js versions are ^20.19.0, ^22.12.0, or >=23.

问 PopNx