DALL-E MCP 服务器
使用 DALL-E 生成/编辑图像的 MCP(模型上下文协议)服务器。
快速入门
-
克隆仓库并安装依赖: git clone https://github.com/Garoth/dalle-mcp.git cd dalle-mcp npm install npm run build
-
配置 OpenAI API 密钥: 在 Cline 设置文件中添加如下配置: { "mcpServers": { "dalle-mcp": { "command": "node", "args": ["/path/to/dalle-mcp/build/index.js"], "env": { "OPENAI_API_KEY": "your-api-key-here" } } } }
-
启动服务器: node build/index.js
-
使用 generate_image 工具生成图像,例如: { "prompt": "未来城市与飞行汽车和霓虹灯", "model": "dall-e-3", "size": "1024x1024" }