本项目允许 MCP 客户端生成壁纸图像,并将其设置为 MacOS 桌面的壁纸,为用户带来便捷的壁纸设置体验。
访问 Luma Labs Dream Machine API
git clone git@github.com:shahanneda/wallpaper-mcp.git
要将此服务器与 Claude Desktop 一起使用,请在您的 Claude Desktop 配置文件中添加以下内容:
~/Library/Application Support/Claude/claude_desktop_config.json{
"wallpaper": {
"command": "uv",
"args": [
"run",
"--with",
"mcp[cli]",
"--with",
"lumaai",
"--with",
"requests",
"mcp",
"run",
"/path/to/server.py"
],
"env": {
"LUMAAI_API_KEY": "API_KEY_HERE"
}
}
}
将 /path/to/server.py 替换为您服务器的实际路径。
在开发环境中运行:
LUMAAI_API_KEY=API_KEY_HERE mcp dev server.py --with lumaai --with requests
generate_image
prompt (字符串) - 图像的文字描述。generate_wallpaper
prompt (字符串) - 壁纸的文字描述。set_image_from_path
image_path (字符串) - 图像文件的完整路径。generate_and_set_wallpaper
prompt (字符串) - 壁纸的文字描述。此 MCP 服务器根据 MIT 许可证发布。