# wpf-visual-tree

This MCP server lets an AI agent inspect and operate a running WPF app, including its element tree, bindings, screenshots, and UI input.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed · ★ 20
- Author: faze79
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/faze79/WPFVisualTreeMcp
- Updated: 2026-10-22
- HTML: https://affpapa.org/en/nevibecode/mcp/wpf-visual-tree

## What it does

wpf-visual-tree exposes a running WPF application through MCP. An agent can discover WPF processes, walk visual and logical trees, read control properties, search elements by type or name, and watch property changes.

It also inspects bindings, DataContext, resources, styles, templates, and binding errors. The server supports screenshots, text entry, clicks, mouse dragging, and touch gestures. Setup requires the .NET 8 Desktop Runtime, the `WpfVisualTreeMcp-vX.Y.Z-win-x64.zip` package, and an `.mcp.json` entry pointing to `WpfVisualTreeMcp.Server.exe`. Touch actions depend on input support in the application, so they can fail when the app does not handle those gestures.

## Install

### Claude Code (native platform)

**Install**
- The MCP registry has no launch command for it: see the repository README

## When to use it
- inspect a WPF visual or logical tree
- trace a binding error through its DataContext
- check control properties, resources, or styles
- capture the state of a running WPF window
- send text, clicks, drags, or touch input

## Example prompts
- Inspect my running WPF app and explain why the Save button is disabled.
- Find the binding problem affecting the status field and inspect its DataContext.
- Search the element tree, fill the form, and submit it.

## Similar
- [Front-End Checklist](https://affpapa.org/en/nevibecode/mcp/front-end-checklist.md) — MCP server · ★ 74559
- [tldraw](https://affpapa.org/en/nevibecode/mcp/tldraw.md) — MCP server · ★ 51091
- [Figma-Context-MCP](https://affpapa.org/en/nevibecode/mcp/figma-context-mcp.md) — MCP server · ★ 16062
- [mcp-server-chart](https://affpapa.org/en/nevibecode/mcp/mcp-server-chart.md) — MCP server · ★ 4402
- [Dembrandt](https://affpapa.org/en/nevibecode/mcp/dembrandt.md) — MCP server · ★ 3821
- [RevoGrid DataGrid MCP Pro](https://affpapa.org/en/nevibecode/mcp/revogrid-datagrid-mcp-pro.md) — MCP server · ★ 3450

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
