Draw a circle on the JavaFX canvas
Draw a rectangle on the JavaFX canvas
Draw a line on the JavaFX canvas
Draw text on the JavaFX canvas
The JavaFX Drawing MCP server enables Large Language Models to create visual content using JavaFX primitives. Built on Quarkus MCP, this tool allows AI models to generate and manipulate graphical elements in real-time. Originally conceived by @konczdev, this implementation provides a powerful interface for AI-driven visual creation.
The JavaFX Drawing MCP server bridges the gap between Large Language Models and graphical creation, allowing AI models to generate visual content using JavaFX primitives. This server enables AI assistants to create drawings, diagrams, and visual representations directly through conversation.
To use the JavaFX Drawing MCP server, you'll need to:
The server runs as a JBang application, making it easy to deploy without complex setup procedures.
Add the following configuration to your claude_desktop_config.json
file:
{
"mcpServers": {
"jfx": {
"command": "jbang",
"args": [
"jfx@quarkiverse/quarkus-mcp-servers"
]
}
}
}
If you're using mcp-cli, add the same configuration to your server_config.json
file.
Once configured, you can interact with the JavaFX Drawing MCP through your AI assistant. The server will interpret commands to create visual elements using JavaFX primitives.
You can ask the AI to:
Currently, the JavaFX server cannot be compiled to a native executable due to JavaFX dependencies. While it may be possible to create a native image using GluonFX, this functionality is not yet implemented.
You can see a demonstration of the JavaFX Drawing MCP in action in the demo video.