# Wpf Visual Tree

> Wpf Visual Tree is an open-source MCP server for developer tools. Inspect and drive running WPF apps: visual tree, bindings, screenshots, drags and touch. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** Windows, CLI
- **Repository:** https://github.com/faze79/wpfvisualtreemcp
- **MCP Registry name:** io.github.faze79/wpf-visual-tree
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-18

## About

Debugging a WPF layout or binding usually means opening Snoop or Visual Studio's live tree by hand. This server lets an agent do the same on a running app without changing its source: it lists WPF processes, walks the visual and logical trees, reads dependency properties, inspects bindings and DataContext, and captures binding errors with classification.

It also acts on the app. A mouse-drag tool handles slider thumbs, splitters and drag-and-drop, a touch tool sends taps, long presses, swipes, pinch and rotation, and elements can be targeted by AutomationId. The README says touch behaviour depends on the application's own input support. The 38-tool server and CLI share one engine, and a separate C# Automation NuGet package exposes the same engine for tests, including DataGrid and TreeView helpers and record-and-replay with xUnit export.

Version 0.20.0 verifies WPF on .NET 8 to 10 and .NET Framework 4.7.2 to 4.8.1 on x86 and x64. It runs on Windows, needs a .NET 8, 9 or 10 desktop runtime, and is MIT licensed.

## Features

- **Tree navigation:** Walks visual and logical trees and reads all dependency properties.
- **Binding diagnosis:** Shows converters, DataContext and automatically captured binding errors.
- **Mouse drag:** wpf_drag moves between elements or by an offset with any mouse button.
- **Touch gestures:** wpf_touch_gesture sends tap, hold, swipe, pinch and rotate.
- **C# test SDK:** An Automation NuGet package drives the app from test code.
- **Record and replay:** Workflows can be recorded, replayed and exported to xUnit.

## Good for

- Ask why a Save button is disabled in a running WPF app
- Find and fix binding errors without a debugger session
- Automate drag-and-drop checks in UI tests
- Capture a full-window screenshot for review

## Install

### Claude Code (Terminal)

```sh
claude mcp add wpf-visual-tree -- dnx WpfVisualTreeMcp --yes
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "wpf-visual-tree": {
      "command": "dnx",
      "args": [
        "WpfVisualTreeMcp",
        "--yes"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "wpf-visual-tree": {
      "command": "dnx",
      "args": [
        "WpfVisualTreeMcp",
        "--yes"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "wpf-visual-tree": {
      "type": "stdio",
      "command": "dnx",
      "args": [
        "WpfVisualTreeMcp",
        "--yes"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "wpf-visual-tree": {
      "command": "dnx",
      "args": [
        "WpfVisualTreeMcp",
        "--yes"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "wpf-visual-tree": {
      "command": "dnx",
      "args": [
        "WpfVisualTreeMcp",
        "--yes"
      ]
    }
  }
}
```

## Tools

- `wpf_touch_gesture`: Sends tap, long press, swipe, pinch and rotation gestures.
- `wpf_drag`: Drags between elements or by a displacement.

## FAQ

### Do I need to change my app?

No. The README says it inspects running apps without source changes.

### Which frameworks work?

WPF on .NET Framework 4.7.2, 4.8, 4.8.1 and .NET 8, 9 and 10.

### Is there a CLI?

Yes. The same executable works as a command-line tool.

### What is the licence?

MIT.

### Is Wpf Visual Tree free?

Yes. Wpf Visual Tree is open source, so you can use and self-host it for free.

### How do I add Wpf Visual Tree to Claude Code?

Run this command in your terminal: claude mcp add wpf-visual-tree -- dnx WpfVisualTreeMcp --yes

### What are the best alternatives to Wpf Visual Tree?

The closest alternatives to Wpf Visual Tree are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/wpf-visual-tree
