Swing MCP
Automates running Java Swing and JavaFX desktop applications through MCP tools for snapshots, input, forms, tables, trees, menus, and dialogs.
Install Swing MCP
Pick your client, then add it in one click or paste the config.
https://crosstech.solutions/mcp
Remote servers are added in the app, not the config file: Customize → Connectors → Add custom connector, then paste this URL.
Overview
Use cases
- Inspect a running Java desktop application's controls
- Launch or attach to a Swing or JavaFX application
- Complete forms in legacy desktop software
- Read and operate tables and trees
- Drive menus and dialogs during UI workflows
Key features
- Swing and JavaFX UI automation
- Application launch and PID-based attachment
- UI snapshots with toolkit-prefixed component UIDs
- Clicks, text entry, form filling, tables, trees, menus, and dialogs
- Stdio MCP transport with a localhost agent socket
- Optional Java evaluation disabled by default
Security & health
What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.
ActiveLast checked Today
Recent health check succeeded.
6/6 checks healthy over the last 41d
Adoption & maintenance
Factual signals from GitHub, npm, and our automated checks — not a rating.
GitHub stars4Stargazers on the source repository.
Last commit2d agoMost recent push to the default branch.
How Swing MCP works
Reviews
No reviews yet — be the first to share how it worked for you.
Frequently Asked Questions about Swing MCP
Swing MCP is an MCP server that connects AI assistants to running Java Swing and JavaFX desktop applications through a Java agent. Its tools launch or attach to apps, snapshot interfaces, click, type, fill forms, and read or operate tables, trees, menus, and dialogs.
Install the released `swing-mcp.mcpb` bundle in Claude Desktop, or register the server JAR as a stdio MCP server with `SWING_MCP_AGENT_JAR` pointing to the agent JAR. JDK 21 or newer must be available on `PATH`.
Yes, it can attach to a running application by process ID with `attach_to_app`. It can also start a JVM with the agent preloaded by using `launch_app`.
Yes, Swing MCP supports JavaFX as well as Swing, including applications that mix both toolkits. JavaFX commands run on the JavaFX Application Thread, and JavaFX component UIDs use the `fx-` prefix.
No, `evaluate_java` is disabled by default. Enable it with `swing.mcp.evaluate.enabled=true`; the operation is treated as potentially destructive by clients that honor MCP annotations.
Related MCP servers
Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.
AllMCPs Directory Badge
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
Badge Style:
Live Dynamic SVG Preview
Markdown (GitHub README)
[](https://allmcps.com/mcp/swing-mcp-2)HTML Embed
<a href="https://allmcps.com/mcp/swing-mcp-2"><img src="https://allmcps.com/api/badge/swing-mcp-2?style=directory" alt="Swing MCP on AllMCPs" /></a>