Browser Use
Browser agents and stealth cloud browsers for AI: run web tasks, fill forms, extract data.
作者提供的说明(英文原文)
Playwright-style automation of .NET desktop apps (WPF, WinForms, WinUI) for AI agents.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
NETWRIGHT_ALLOW你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"netwright": {
"command": "dnx",
"args": [
"Netwright",
"--yes"
],
"env": {
"NETWRIGHT_ALLOW": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add netwright --env NETWRIGHT_ALLOW=your-value -- dnx Netwright --yes运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"netwright": {
"command": "dnx",
"args": [
"Netwright",
"--yes"
],
"env": {
"NETWRIGHT_ALLOW": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"netwright": {
"type": "stdio",
"command": "dnx",
"args": [
"Netwright",
"--yes"
],
"env": {
"NETWRIGHT_ALLOW": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
NETWRIGHT_ALLOW env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 ricfanin 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(2.1.0)于29天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 .NET。
同一分类中有:Browser Use, Chrome DevTools MCP, MCP Server Browser
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Browser agents and stealth cloud browsers for AI: run web tasks, fill forms, extract data.
MCP server for Chrome DevTools
MCP server for browser use access
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Playwright-style automation for .NET desktop apps. Netwright is an MCP server that lets AI agents see and operate WPF, WinForms and WinUI apps: they launch your project, read the UI as compact text, act without stealing your mouse, verify the result, and turn the verified flow into a regression test.
▶ Watch it with sound
Formerly WPF-MCP. Version 2.0 is a rewrite; see Migrating from WPF-MCP 1.x.
> desktop_app action=launch project=src/Orders/Orders.csproj
Launched Orders.exe (pid 9120, WPF, launched by Netwright)
desktop_snapshot
desktop_set_state target=#chkTerms checked=true
checked checkbox "Accept terms" [e6] #chkTerms ~ checkbox "Accept terms" [e6] #chkTerms checked ~ button "Save" [e7] #btnSave
desktop_click target=#btnSave
clicked button "Save" [e7] #btnSave
.csproj, captures stdout/stderr and Trace output, and reports crashes with the exception and stack trace.e12) stay valid across snapshots.desktop_expect verifies state, and desktop_export_test turns the session into a C# test on Netwright.Testing (xUnit, NUnit or MSTest).Same scenarios, same Fixture App, same token encoding for every server (full methodology and all numbers in benchmarks/results):
| WPF Fixture App, median of 5 runs | WPF-MCP 1.0 | FlaUI-MCP | Windows-MCP | Netwright 2.0 |
|---|---|---|---|---|
| Tool definitions, sent every turn (tokens) | 2,023 (24 tools) | 1,418 (12) | 3,984 (20) | 1,387 (15) |
| Snapshot of a form (tokens) | 1,023 | 785 | 1,956¹ | 385 |
| Snapshot of a 1000-row grid (tokens) | 3,988 | 6,234 | 1,897¹ | 627 |
| Fill and submit a form: calls / tokens | 10 / 2,463 | 10 / 3,469 | –² | 6 / 549 |
| Same form on WinForms: success | 0/5 | 0/5 | –² | 5/5 |
| Wait for an async load: calls / tokens | 5 / 3,337 | 5 / 2,484 | –² | 3 / 405 |
| Screenshot (tokens) | 25,073 | 1,000 | 1,944 | 1,020 |
| WinForms grid with 1000 non-virtualized rows: snapshot time | 9.2 s | 12.9 s | 0.3 s¹ | 1.5 s |
¹ Windows-MCP summarizes the whole desktop instead of the app's UI tree; its grid snapshot does not include the rows. ² Its actions work at screen coordinates with the real mouse, so scripted flows were not run.
Tokens are counted with o200k_base as a proxy for Claude's tokenizer. Netwright's actions are slower per call: the form flow takes ~1.8 s against ~0.6 s, because each action waits for the UI to settle. In exchange the response already contains the result, so the agent needs fewer calls and far fewer tokens.
Requires Windows 10/11 and the .NET 10 SDK. Your apps can target any .NET or .NET Framework version.
Claude Code
claude mcp add netwright -- dnx Netwright --yes
Any MCP client (Claude Desktop, Cursor, VS Code, Copilot…)
{
"mcpServers": { "netwright": { "command": "dnx", "args": ["Netwright", "--yes"] } } }
Prefer a global tool? Run dotnet tool install -g Netwright and use "command": "netwright". To restrict which apps an agent may touch, add "--", "--allow", "MyApp*" to the args. See the Integration Guide for all options.
| Tool | What it does |
|---|---|
desktop_app | Launch an .exe or build and launch a project, attach, close, status |
desktop_snapshot | The UI as compact text with Refs |
desktop_find | Elements matching a Selector (#id, role "name", a >> b) |
desktop_inspect | Properties, patterns and a stable Selector of one element |
desktop_click | Click (background; right/double click with foreground) |
desktop_type | Set text (background) or type real keys |
desktop_set_state | Check, select, expand, set a value, or pick an item by name |
desktop_press_key | Key presses and shortcuts (foreground) |
desktop_scroll | Scroll by direction, to an edge, or into view |
desktop_window | List, activate, minimize, maximize, restore, close windows |
desktop_screenshot | Image of a window or element, even when covered |
desktop_wait | Wait for an element state or for text; reports what changed |
desktop_expect | Retrying assertions: text, value, enabled, checked, count… |
desktop_logs | App output: stdout, stderr, debug/trace |
desktop_export_test | Turn the session into a C# regression test |
Full reference: docs/TOOLS_REFERENCE.md.
| Tier | Technology | What that means |
|---|---|---|
| 1 | WPF, WinForms (.NET 6+ and .NET Framework 4.x) | A Fixture App, integration tests on every change, benchmarked |
| 2 | WinUI 3, .NET MAUI on Windows | A Fixture App and integration tests |
| 3 | Avalonia, Uno Platform | Best effort through UI Automation |
Other Windows apps (Win32, Qt, Electron…) often work because Netwright speaks plain UI Automation, but they are not supported.
Automation works best when your app sets AutomationProperties.AutomationId (WPF/WinUI) or Name (WinForms) on the controls you care about. See Making your app automation-friendly.
[Fact]
public async Task Saving_an_order_asks_for_confirmation() { await using var app = await DesktopApp.LaunchProjectAsync(@"..\..\..\..\src\Orders\Orders.csproj");
await app.TypeAsync("#txtCustomer", "Rossi"); await app.CheckAsync("#chkTerms"); await app.ClickAsync("#btnSave");
await app.Expect("window \"Confirm\"").ToBeVisibleAsync(); }
dotnet add package Netwright.Testing. This is the code desktop_export_test writes for you.
Netwright captures each window with one cached UI Automation query. Windows are found with Win32, only about 20 properties are requested, and offscreen elements are filtered inside the provider. From that capture it renders filtered text, resolves Selectors in memory, and diffs trees by RuntimeId to build Change Reports. Details and measurements: docs/ARCHITECTURE.md. Vocabulary: CONTEXT.md. Decisions: docs/adr.
| 1.x | 2.0 | ||
|---|---|---|---|
wpf_launch_application, wpf_attach_application, wpf_close_application | `desktop_app action=launch\ | attach\ | close` |
wpf_snapshot (refs reset on every snapshot) | desktop_snapshot (refs are stable) | ||
wpf_find_element, wpf_get_element_properties | desktop_find, desktop_inspect | ||
wpf_click, wpf_type | desktop_click, desktop_type; both accept a Ref or a Selector | ||
wpf_set_value, wpf_toggle, wpf_select, wpf_expand_collapse | desktop_set_state (value, checked, item, expanded) | ||
wpf_press_key | desktop_press_key foreground=true | ||
wpf_scroll, wpf_scroll_into_view, wpf_focus | desktop_scroll (direction, to, into_view) | ||
wpf_list_windows, wpf_switch_window, wpf_window_action | desktop_window | ||
wpf_take_screenshot (base64 text) | desktop_screenshot (image content) | ||
wpf_wait_for | desktop_wait (also waits for text) | ||
wpf_console_messages | desktop_logs | ||
wpf_set_background_mode | Background is the default; pass foreground=true per call when needed | ||
JSON envelopes (success, data, metadata) | Compact text; errors are isError results with code and hint |
The package is now Netwright (command netwright), replacing WpfMcp.Server (wpf-mcp).
Issues and PRs are welcome. See CONTRIBUTING.md. Build and test with .\scripts\build.ps1 -Integration, and measure with .\scripts\benchmark.ps1.
MIT