Skip to main content
MCP server CX Codex

wpf-visual-tree — Claude Code MCP server

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

Open on GitHub

What wpf-visual-tree 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.

What it helps with

  • 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 for the agent

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

How to install wpf-visual-tree

Install

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

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about wpf-visual-tree

How do I install wpf-visual-tree in Claude Code?

Install the .NET 8 Desktop Runtime, download and extract WpfVisualTreeMcp-vX.Y.Z-win-x64.zip, then add an .mcp.json server entry whose command points to WpfVisualTreeMcp.Server.exe. Ask the agent to inspect a running WPF application.

What does wpf-visual-tree do?

It gives an AI agent access to a WPF app's visual and logical trees, control properties, bindings, DataContext, resources, and binding errors. The agent can also interact with the UI and capture screenshots.

What does the server require?

It requires the .NET 8 Desktop Runtime and the WpfVisualTreeMcp-vX.Y.Z-win-x64.zip package. Touch operations rely on the WPF application's own input support.

Similar MCP servers

All MCP servers for Frontend and UI →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor