mcp-server-microsoft-paint
by ghuntley·★ 20·综合分 40
一个通过 JSON-RPC 控制 Microsoft Paint 的 MCP 服务器,支持绘图、形状工具和窗口管理。
概述
这个 MCP 服务器使用 Microsoft Commandline Protocol 提供对 Microsoft Paint 的编程控制。它允许启动/连接到 Paint,绘制线条和形状,设置颜色和工具属性,以及管理 Paint 窗口。服务器实现 JSON-RPC 2.0 协议进行通信,需要安装了 Paint 的 Windows 系统。使用 Rust 构建,包含 Python 示例测试客户端。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
当您需要对 Microsoft Paint 进行程序化控制,用于简单绘图任务或教育目的时。
什么时候不要选它
对于专业的图像编辑工作;此服务器仅提供基本功能,并且仅适用于安装了 Microsoft Paint 的 Windows。
此 server 暴露的工具
从 README 抽取出 9 个工具initializeFinds or launches Microsoft Paint
connectConnects to an already running Paint window
draw_lineDraws a line from one point to another
activate_windowBrings the Paint window to the foreground
get_canvas_dimensionsReturns the current canvas size
draw_pixelDraws a single pixel
draw_shapeDraws a shape (rectangle, ellipse, etc.)
select_toolSelects a drawing tool
set_colorSets the current color
可对比工具
安装
安装步骤
- 克隆仓库:
git clone https://github.com/ghuntley/mcp-server-microsoft-paint
cd mcp-server-microsoft-paint- 构建服务器:
cargo build --release- 运行服务器:
cargo run --releaseClaude Desktop 配置
添加到 Claude Desktop 的 config.json:
"mcpServers": {
"paint": {
"command": "cargo的路径",
"args": ["run", "--release", "--", "mcp-server-microsoft-paint"],
"env": {}
}
}FAQ
- 这个服务器可以在 macOS 或 Linux 上控制 Paint 吗?
- 不可以,此服务器专门为安装了 Microsoft Paint 的 Windows 10/11 设计。
- 如果 Paint 已经运行,如何处理?
- 使用 `connect` 方法并传入 client_id 和 client_name 来连接到现有的 Paint 实例,而不是初始化新实例。
mcp-server-microsoft-paint 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。