WPFVisualTreeMcp logo

WPFVisualTreeMcp

by faze79

Inspect, diagnose, screenshot, and interact with running WPF applications through MCP.

Install WPFVisualTreeMcp

Run the project’s own setup commands, in order.

Setup steps from the project

faze79/WPFVisualTreeMcp installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Start the server
    dnx WpfVisualTreeMcp                        # runs the MCP stdio server
    

Overview

faze79/WPFVisualTreeMcp connects MCP-compatible agents to running Windows Presentation Foundation applications for UI inspection and interaction. It can attach to WPF processes through automatic DLL injection, inspect visual trees, dependency properties, bindings, resources, styles, and DataContext values, and capture screenshots that include popups or menus. Interaction tools support clicking, dragging, scrolling, mouse movement, property edits, recording, replay, and assertions. Reach for it when an agent needs to investigate or exercise a live WPF desktop UI without changing the application's source code.

Use cases

  • Inspect a live WPF visual tree and locate controls by AutomationId
  • Diagnose broken bindings and disabled controls
  • Capture screenshots of windows with open popups or menus
  • Record and replay desktop UI workflows
  • Test reversible dependency-property changes

Key features

  • Automatic injection into running x86 and x64 WPF processes
  • Visual tree, property, binding, DataContext, resource, and style inspection
  • Deep element search across windows, adorners, and popups
  • Screenshots with popup, menu, and scrollable-content capture
  • Workflow recording, replay, assertions, and xUnit export
  • Live WPF interaction and reversible property editing

Tools37

What WPFVisualTreeMcp lets your agent do. Expand a tool for its parameters.

Self-reported~1.0k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

18/18 checks healthy over the last 82d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars23Stargazers on the source repository.
Last commit1mo agoMost recent push to the default branch.
Tools exposed37Callable tools this server registers over MCP.
Directory activity11 viewsConfig copies, upvotes, and views on AllMCPs.

How WPFVisualTreeMcp works

What faze79/WPFVisualTreeMcp does

faze79/WPFVisualTreeMcp exposes a running WPF desktop application's UI through the Model Context Protocol. It is intended for Windows-based inspection, debugging, and UI automation, including applications built for .NET Framework 4.7.2, 4.8, or 4.8.1 and applications built for .NET 8, .NET 9, or .NET 10. Both x86 and x64 WPF processes are supported.

The server can discover WPF applications, attach to a selected process, and inspect its visual hierarchy. Agents can search for controls by AutomationId, type, x:Name, visible text, property values, or visibility. Deep searches extend across windows, adorners, and popups. Returned element data includes text, identifiers, enabled and visible state, and screen bounds.

How it works

After attachment, the server operates against the live process rather than a project or source tree. Automatic injection can be enabled during wpf_attach, allowing inspection without adding code to the target application. Screenshots can target a window or element; screen capture includes open popups and menus, while full-content rendering can include scrollable content.

Diagnostic tools inspect dependency properties, bindings, converters, StringFormat, MultiBinding, binding errors, DataContext inheritance, resources, styles, and templates. wpf_evaluate_binding traces how a value was resolved and can identify the point where a binding path fails. Trigger inspection reports the conditions, current values, active state, and setters for style and control-template triggers.

For interaction, the server can invoke or physically click controls, move the mouse, scroll, drag between elements or points, edit dependency properties, highlight elements, and monitor property changes. State-changing actions include property edits, clicks, and drags. Edits can be reverted to the previous binding, value, or default.

Setup and configuration

Install the global tool with dotnet tool install -g WpfVisualTreeMcp, or download and extract the Windows package from the project's latest release. The packaged executable requires a .NET 8, 9, or 10 Desktop Runtime. Register the executable as an MCP server using the client’s standard stdio configuration; for example, Claude Code can launch WpfVisualTreeMcp.Server.exe with no arguments from .mcp.json.

The executable also provides a command-line interface, including a help command and an update command. Start the MCP client after registration, launch the WPF application, and use wpf_list_processes followed by wpf_attach to select a target.

Tools and capabilities

  • Inspect visual trees, dependency properties, DataContext values, bindings, binding errors, resources, styles, and templates.
  • Search controls with exact identifiers, type, name, text, property values, and visibility filters.
  • Capture element, window, screen, and scrollable-content screenshots.
  • Diagnose binding resolution and trigger behavior, then watch properties for changes.
  • Record workflows, assert dependency-property values, replay against a fresh application, and export stopped recordings as xUnit projects or workflow JSON.
  • Exercise live controls with clicks, mouse movement, scrolling, dragging, highlighting, and reversible property edits.

Limitations and notes

The server targets running WPF applications on Windows; it is not a general web or cross-platform UI inspector. Physical mouse input and other state-changing operations can alter the target application. Popup and menu coverage depends on using the appropriate screen or deep-search modes, while touch behavior depends on the application's input support. The separate WpfVisualTreeMcp.Automation C# package provides an SDK for attaching to processes and driving inspection or input from .NET test projects.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about WPFVisualTreeMcp

faze79/WPFVisualTreeMcp is an MCP server that connects AI agents to running Windows WPF applications. Its main tools list processes, attach to apps, inspect visual trees and dependency properties, diagnose bindings, capture screenshots, and interact with controls through clicks, scrolling, dragging, and property edits.

Install it with `dotnet tool install -g WpfVisualTreeMcp`, or download the Windows package from the latest release and register its executable in your MCP client. The packaged executable requires a .NET 8, 9, or 10 Desktop Runtime.

Yes, Cursor is named as a supported MCP client for this server. Register the server using Cursor’s MCP configuration, launch the WPF application, then use the process-listing and attachment tools to connect to it.

Use `wpf_get_binding_errors` to list captured errors and `wpf_report` for aggregate binding and validation diagnostics. For a specific property, `wpf_evaluate_binding` explains value resolution hop by hop and identifies where a binding path fails.

Yes, it can record workflows, replay them against a fresh application, and stop at the first failed step. A stopped recording can also be exported as a runnable xUnit project or workflow JSON.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewWPFVisualTreeMcp AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/faze79-wpfvisualtreemcp?style=directory)](https://allmcps.com/mcp/faze79-wpfvisualtreemcp)
HTML Embed
<a href="https://allmcps.com/mcp/faze79-wpfvisualtreemcp"><img src="https://allmcps.com/api/badge/faze79-wpfvisualtreemcp?style=directory" alt="WPFVisualTreeMcp on AllMCPs" /></a>