Wpf Visual Tree
Inspect and drive running WPF apps: visual tree, bindings, screenshots, drags and touch
- Pricing
- Open source
- Platforms
- Windows, CLI
- Runs
- Locally
- Version
- 0.20.0
- Listing updated
- today
Similar MCP servers
About Wpf Visual Tree
Wpf Visual Tree is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.
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.
Install
Run in a terminal
claude mcp add wpf-visual-tree -- dnx WpfVisualTreeMcp --yesAdd to claude_desktop_config.json
{
"mcpServers": {
"wpf-visual-tree": {
"command": "dnx",
"args": [
"WpfVisualTreeMcp",
"--yes"
]
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"wpf-visual-tree": {
"command": "dnx",
"args": [
"WpfVisualTreeMcp",
"--yes"
]
}
}
}Add to .vscode/mcp.json
{
"servers": {
"wpf-visual-tree": {
"type": "stdio",
"command": "dnx",
"args": [
"WpfVisualTreeMcp",
"--yes"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"wpf-visual-tree": {
"command": "dnx",
"args": [
"WpfVisualTreeMcp",
"--yes"
]
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"wpf-visual-tree": {
"command": "dnx",
"args": [
"WpfVisualTreeMcp",
"--yes"
]
}
}
}Using several servers? Build one config file with the MCP config generator.
Tools this server provides (2)
Taken from the project documentation; the running server may differ.
- wpf_touch_gesture
- Sends tap, long press, swipe, pinch and rotation gestures.
- wpf_drag
- Drags between elements or by a displacement.
What it does
- 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
Pricing
Open source
MIT licensed.
Wpf Visual Tree 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.


