图片生成服务工具
一个与Cursor集成的图片生成MCP服务器工具,实现调用即梦AI逆向接口。
快速入门
-
克隆项目: git clone https://github.com/fengin/image-gen-server.git cd image-gen-server
-
安装依赖: pip install -r requirements.txt pip install uv
-
配置环境: 修改
server.py
中的以下变量:- JIMENG_API_TOKEN:即梦AI的Token
- IMG_SAVA_FOLDER:图片保存路径
-
启动服务: uv run --with fastmcp fastmcp run server.py
-
在Cursor中配置MCP服务器:
- 打开Cursor设置 > Features > MCP Servers
- 添加新服务器,填写命令路径。
-
使用方法: 在Cursor的Agent模式下输入提示词,生成所需图片。
更多详细信息请参考 README。