Skip to main content
Glama

JavaFX 的模型上下文协议服务器

该模型上下文协议 (MCP) 服务器使大型语言模型 (LLM) 能够使用 JavaFX 原语进行绘图。

该服务器使用 Quarkus MCP 和 JavaFX 实现。

最初的想法和实施来自@konczdev

JFX 演示

点击此处观看视频。

一般用法

  1. 安装jbang

  2. 配置您的 MCP 客户端以jbang jfx@quarkiverse/quarkus-mcp-servers形式运行服务器(请参阅下面的Claude 桌面配置)

Related MCP server: Paint MCP

Claude 桌面配置和mcp-cli

将其添加到您的claude_desktop_config.json或server_config.json文件中:

{
  "mcpServers": {
    "jfx": {
      "command": "jbang",
      "args": [
        "jfx@quarkiverse/quarkus-mcp-servers"
      ]
    }
  }
}

原生映像/可执行文件

目前,由于 JavaFX 依赖关系,jfx 服务器无法编译为本机可执行文件。

使用 GluonFX 应该可以实现这一点,但目前这留给读者作为练习。如果您对此感兴趣,请提交 issue 或 PR。

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Exposes a Pygame-based drawing canvas as an MCP server, allowing LLMs to create digital art using standard shapes and freehand paths. It features a specialized oil paint mode that simulates realistic color mixing, paint depletion, and textured brush strokes.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables creating and refining pencil-style drawings as layered HTML Canvas snippets through natural language descriptions, using classical construction methodology.
      ISC
    • A
      license
      A
      quality
      C
      maintenance
      Gives AI agents a real paint canvas over MCP — layers, anti-aliased shapes, paths, brushes, fills, gradients, filters, transforms, undo/redo, and PNG/JPG/BMP/SVG import-export — with every drawing call returning the picture so the model can inspect and correct its own work. Ships one tool per operation plus a batch tool, preview, inspect, and an optional localhost live view.
      25
      MIT