See the UI
A structured snapshot of the component tree — every button, field, table, tree, menu and dialog with a stable id — instead of guessing from pixels. Find components by text, name, tooltip or class.
An MCP server that lets Claude and other AI assistants operate any Java Swing application: see the UI as a component tree, click, type, fill forms, read tables and trees, drive menus and dialogs. No API. No rewrite. The app never knows.
io.github.crosstech-solutions-bv/swing-mcp
The agent loads into the app's JVM and exposes 39 tools over MCP. Everything runs on the Swing event thread, so it behaves like a very fast, very patient user.
A structured snapshot of the component tree — every button, field, table, tree, menu and dialog with a stable id — instead of guessing from pixels. Find components by text, name, tooltip or class.
Click, hover, focus, type, fill text fields and spinners, pick combo-box options, select table cells and tree nodes, drive menus and right-click menus, drag, scroll, press keys.
Whole JTable contents as structured data, list and tree items, component
properties, the clipboard, and screenshots of a window or a single component.
Modal dialogs are detected and answered instead of blocking the session. wait_for
waits for UI conditions. Several apps can be driven in parallel sessions.
Start the app with the agent preloaded, or attach to an already-running JVM by process id — useful for the tool that has been open on someone's desk since 2014.
The agent listens on loopback only and requires a per-session token. Arbitrary code
execution in the target JVM (evaluate_java) is off unless you switch it on.
Launched apps are closed when the server shuts down.
PATHAny JDK build works. Check with java -version.
swing-mcp.mcpbClaude Desktop installs it as an extension. Using Claude Code, Cursor, VS Code, IntelliJ or Windsurf instead? The installation guide has the jar-based config for each.
Ask the assistant to launch your application, or attach to a running one.
take_snapshot returns the component tree with ids; from there the assistant
clicks, fills and reads on its own. The tool reference lists all 39 tools on one page.



ERP clients, point-of-sale screens, lab and logistics tools, internal apps written a decade ago: they work, nobody dares rewrite them, and they have no API. Swing MCP gives that software a safe, permissioned door into the AI era, without changing the application.
Exploratory and regression tests against the real application, driven by an assistant that sees components, not screenshots. Reproduce a bug from a sentence.
Read that table the vendor never exposed. Pull records out of a tool whose only export is a printout.
The forty-screen data-entry job, the daily status check, the nightly close: describe it once, let the assistant drive.
No. The agent is a standard Java agent loaded into the JVM at launch (-javaagent)
or attached afterwards by process id. Your code, jars and data are untouched; remove the
agent and nothing remains.
Not today: Swing only. If you run a different desktop stack, that is exactly the kind of connector we build for clients — see below.
Anything that speaks MCP over stdio. Claude Desktop installs the bundle in one click; Claude Code, Cursor, VS Code, IntelliJ IDEA and Windsurf use the two jars with the config from the installation guide.
The agent only listens on localhost, only accepts commands carrying the per-session token it generated, and code execution inside the JVM is disabled by default. The assistant can do anything a user at the keyboard could — so give it the same account and permissions you would give a new colleague, and start on a test environment.
Nothing. MIT licence, no telemetry, no account. CrossTech makes its living building connectors and AI systems for clients; Swing MCP is our public proof that we can.
We connect AI assistants to the software businesses actually run — Swing, web apps, internal tools, databases — with permissions, audit logs and the code handed over to you. Start with a free 30-minute look at your systems; if a connector isn't worth it for you, we'll say so.
Book a free audit