使用说明
Illustrator MCP服务器
Adobe Illustrator与JavaScript兼容。事实上,你需要用这些脚本以编程方式生成一些超大的东西。机器人擅长JavaScript。
这个MCP服务器让我们的机器人直接将脚本发送到Illustrator并查看结果。
由于它依赖于AppleScript,因此只与MacOS兼容。我只在Claude Desktop上测试过。
~/Library/Application\ Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"illustrator": {
"command": "uv",
"args": [
"--directory",
"/Users/you/code/mcp/illustrator-mcp-server",
"run",
"illustrator"
]
}
}
}
测试
要查看日志(连接到Claude Desktop时):
tail -n 20 -F ~/Library/Logs/Claude/mcp*.log
使用交互式方式测试此MCP服务器 检查员:
npx @modelcontextprotocol/inspector -- uv run illustrator
在Illustrator中运行以下代码:
npx @modelcontextprotocol/inspector --cli uv run illustrator --method tools/call --tool-name run --tool-arg code='log("hi")'
