ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที รีวิวและบัญชีผู้ใช้จะมาในขั้นถัดไป
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · อธิบายเป็นภาษาคน

Netwright

โดย ricfaninรุ่น 2.1.0i★ –iรันบนเครื่อง
ชื่อใน registryio.github.ricfanin/netwright

ติดตั้ง

ภาพรวม

คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)

Playwright-style automation of .NET desktop apps (WPF, WinForms, WinUI) for AI agents.

สามเสาของ PopNx MCP

สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน

ใช้ทำอะไรได้

ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry

  • การเชื่อมต่อ: รันบนเครื่อง
  • ช่องทาง (transport): stdio
  • หมวด: เว็บและเบราว์เซอร์

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ก่อนติดตั้ง

คุณใช้แอปไหน

เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”

เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json

{
  "mcpServers": {
    "netwright": {
      "command": "dnx",
      "args": [
        "Netwright",
        "--yes"
      ],
      "env": {
        "NETWRIGHT_ALLOW": "ใส่ค่าของคุณ"
      }
    }
  }
}

พิมพ์คำสั่งนี้ใน Terminal

claude mcp add netwright --env NETWRIGHT_ALLOW='ใส่ค่าของคุณ' -- dnx Netwright --yes

เติมค่าที่เว้นว่างไว้ก่อนรัน

เปิดใน Cursor

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json

{
  "mcpServers": {
    "netwright": {
      "command": "dnx",
      "args": [
        "Netwright",
        "--yes"
      ],
      "env": {
        "NETWRIGHT_ALLOW": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

เปิดใน VS Code

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .vscode/mcp.json ของโปรเจกต์

{
  "servers": {
    "netwright": {
      "type": "stdio",
      "command": "dnx",
      "args": [
        "Netwright",
        "--yes"
      ],
      "env": {
        "NETWRIGHT_ALLOW": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น

ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี

ค่าที่ต้องใส่เอง

  • NETWRIGHT_ALLOW env
    Optional ';'-separated wildcard patterns of apps the agent may launch or attach to.

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

ทำอะไรได้บ้าง

รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub ricfanin ซึ่งเป็นเจ้าของ repo

  • … ยังไม่ตรวจ

    ยังมีคนดูแล

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • … ยังไม่ตรวจ

    มีสัญญาอนุญาต (license)

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • – ไม่เกี่ยว

    endpoint ตอบ

    ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต

เทียบกับตัวอื่นในหมวด เว็บและเบราว์เซอร์i

  • ดาวมากกว่า 0% ของอีก 878 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 56% ของอีก 878 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 878 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

Netwright ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (2.1.0) เข้า registry 28 วันที่ผ่านมา

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี .NET ในเครื่องด้วย

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี Browser Use, Chrome DevTools MCP, MCP Server Browser

ตัวที่ใช้แทนได้

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

Browser Use

โดย browser-use

ให้ AI ทำงานบนเว็บแทนคุณ เช่น กรอกฟอร์ม ค้นหา และดึงข้อมูล ใช้เบราว์เซอร์บนคลาวด์ของผู้ทำหรือรันในเครื่องก็ได้

บนเครื่องหรือคลาวด์★ 120,087MITอัปเดต 17 วันที่ผ่านมา
ติดตั้ง

Chrome DevTools MCP

โดย ChromeDevTools

ให้ AI ใช้เครื่องมือนักพัฒนาของ Chrome ตรวจหน้าเว็บ ดูว่าโหลดช้าตรงไหน และหาข้อผิดพลาด ทำโดยทีม Chrome DevTools

รันบนเครื่อง★ 54,821Apache-2.0อัปเดต 15 วันที่ผ่านมา
ติดตั้ง

MCP Server Browser

โดย bytedance

MCP server for browser use access

รันบนเครื่อง★ 39,550Apache-2.0อัปเดต 14 เดือนที่ผ่านมา
ติดตั้ง

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

Netwright

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)

  • window "Orders" [e1]

desktop_snapshot

  • window "Orders" [e1]
  • textbox "Customer" [e4] #txtCustomer
  • combobox "Country" [e5] #cmbCountry collapsed
  • checkbox "Accept terms" [e6] #chkTerms unchecked
  • button "Save" [e7] #btnSave disabled

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

  • window "Confirm" [e9] modal
  • text "Save order 42?"
  • button "Yes" [e10]

Why Netwright

  • Made for .NET apps. Works with WPF, WinForms (.NET and .NET Framework 4.x) and WinUI/MAUI through UI Automation. It launches straight from a .csproj, captures stdout/stderr and Trace output, and reports crashes with the exception and stack trace.
  • Cheap in tokens.
  • Snapshots are filtered to what an agent needs: unnamed layout panes are collapsed, and grids are summarized row by row.
  • Actions answer with a Change Report of what appeared, disappeared or changed, so the agent rarely needs another snapshot.
  • Refs (e12) stay valid across snapshots.
  • Stays out of your way. Actions run in the background: in apps Netwright launches, a small companion performs them inside the app, so it never takes the foreground and bound fields commit like a real edit. You keep working while the agent tests. Key presses and right-clicks are explicit, briefly take focus, and give it back.
  • Reliable by default.
  • Every action waits until its target is enabled and on screen.
  • It then waits for the UI to settle, so async screens don't need sleeps.
  • Failures come back as error codes with a hint about what to do next.
  • From exploration to regression tests. desktop_expect verifies state, and desktop_export_test turns the session into a C# test on Netwright.Testing (xUnit, NUnit or MSTest).

Benchmark

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 runsWPF-MCP 1.0FlaUI-MCPWindows-MCPNetwright 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,0237851,956¹385
Snapshot of a 1000-row grid (tokens)3,9886,2341,897¹627
Fill and submit a form: calls / tokens10 / 2,46310 / 3,469–²6 / 549
Same form on WinForms: success0/50/5–²5/5
Wait for an async load: calls / tokens5 / 3,3375 / 2,484–²3 / 405
Screenshot (tokens)25,0731,0001,9441,020
WinForms grid with 1000 non-virtualized rows: snapshot time9.2 s12.9 s0.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.

Install

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.

Tools

ToolWhat it does
desktop_appLaunch an .exe or build and launch a project, attach, close, status
desktop_snapshotThe UI as compact text with Refs
desktop_findElements matching a Selector (#id, role "name", a >> b)
desktop_inspectProperties, patterns and a stable Selector of one element
desktop_clickClick (background; right/double click with foreground)
desktop_typeSet text (background) or type real keys
desktop_set_stateCheck, select, expand, set a value, or pick an item by name
desktop_press_keyKey presses and shortcuts (foreground)
desktop_scrollScroll by direction, to an edge, or into view
desktop_windowList, activate, minimize, maximize, restore, close windows
desktop_screenshotImage of a window or element, even when covered
desktop_waitWait for an element state or for text; reports what changed
desktop_expectRetrying assertions: text, value, enabled, checked, count…
desktop_logsApp output: stdout, stderr, debug/trace
desktop_export_testTurn the session into a C# regression test

Full reference: docs/TOOLS_REFERENCE.md.

Supported UI technologies

TierTechnologyWhat that means
1WPF, WinForms (.NET 6+ and .NET Framework 4.x)A Fixture App, integration tests on every change, benchmarked
2WinUI 3, .NET MAUI on WindowsA Fixture App and integration tests
3Avalonia, Uno PlatformBest 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.

Regression tests without an agent

[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.

How it works

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.

Migrating from WPF-MCP 1.x

1.x2.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_propertiesdesktop_find, desktop_inspect
wpf_click, wpf_typedesktop_click, desktop_type; both accept a Ref or a Selector
wpf_set_value, wpf_toggle, wpf_select, wpf_expand_collapsedesktop_set_state (value, checked, item, expanded)
wpf_press_keydesktop_press_key foreground=true
wpf_scroll, wpf_scroll_into_view, wpf_focusdesktop_scroll (direction, to, into_view)
wpf_list_windows, wpf_switch_window, wpf_window_actiondesktop_window
wpf_take_screenshot (base64 text)desktop_screenshot (image content)
wpf_wait_fordesktop_wait (also waits for text)
wpf_console_messagesdesktop_logs
wpf_set_background_modeBackground 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).

Contributing

Issues and PRs are welcome. See CONTRIBUTING.md. Build and test with .\scripts\build.ps1 -Integration, and measure with .\scripts\benchmark.ps1.

License

MIT

ถาม PopNx