# XamlMcp

MCP server to inspect and control live XAML applications. Gives AI agents access to visual trees, runtime styles, and simulated input.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed · ★ 27
- Author: trrahul
- License: Apache-2.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/trrahul/XamlMcp
- Updated: 2026-08-05
- HTML: https://affpapa.org/en/nevibecode/mcp/xamlmcp

## What it does

This tool connects coding assistants to active desktop programs running on Avalonia, WPF, WinUI 3, or .NET MAUI. Through a local connection, the model navigates visual hierarchies and inspects layout properties. It can also simulate user input.

The architecture uses two parts. You install an in-process agent package like `XamlMcp.Wpf` or `XamlMcp.Avalonia` into your application, then hook it up using `AttachXamlMcp()`. The companion `XamlMcp.Server` tool communicates with AI clients over stdio.

Running the `xamlmcp` tool requires the .NET 10 SDK, even if your target app targets .NET 8. Avalonia projects must run on at least version 11.3.18 to prevent package downgrade issues. Platforms like iOS and Mac Catalyst are unsupported.

## Install

### Claude Code (native platform)

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

## When to use it
- inspect visual and logical component trees in running desktop apps
- read UI element properties and active style resources dynamically
- capture application screenshots directly from the client session
- simulate keystrokes and pointer clicks to test user flows

## Example prompts
- Inspect the visual tree of the main window and find all text input elements.
- Capture a screenshot of the active view and check if the error badge is visible.
- Click the submit button and report any updated property values on the status label.

## 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
