Image-GenSAFE
一个能与Cursor集成的图片生成mcp server工具,实现调用即梦逆向接口
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
[](https://mseep.ai/app/fengin-image-gen-server)
[](https://smithery.ai/server/@fengin/image-gen-server)
基于即梦AI的图像生成服务,专门设计用于与Cursor IDE集成。它接收来自Cursor的文本描述,生成相应的图像,并提供图片下载和保存功能。
此插件的开发过程可以看我的网站:开发一个MCP Server与Cursor集成,给Cursor插上翅膀!
更多AI知识,见AI全书(https://aibook.ren)
特性
- 与Cursor IDE完美集成
- 支持文本到图像的生成
- 自动保存生成的图像
- 支持自定义保存路径
- 一次生成四张图,供更多选择
安装
Installing via Smithery
To install Image-Gen-Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @fengin/image-gen-server --client claude
- 环境准备,MCP比较新的东西,依赖环境版本都比较新
- python 3.10+
- 安装npm
- 安装nodejs(实测v15 v16都不行,开发环境验证v20可以,其他未验证)
- 安装 pip install uv
- 如果要调试,还需要安装这个:npm install -g @modelcontextprotocol/[email protected]
- 克隆项目
git clone https://github.com/fengin/image-gen-server.git cd image-gen-server
- 安装依赖
pip install -r requirements.txt pip install uv
- 设置即梦Token和图片默认保存地址
修改server.py文件里面这两个配置
# API配置 JIMENG_API_TOKEN = "057f7addf85dxxxxxxxxxxxxx" # 你登录即梦获得的session_id,支持多个,在后面用逗号分隔 IMG_SAVA_FOLDER = "D:/code/image-gen-server/images" # 图片默认保存路径
Cursor集成
- 打开Cursor设置
- 点击左下角的设置图标
- 选择 Features > MCP Servers
- 点击 "Add new MCP server"
- 填写服务器配置
- Name:
image-gen-server(或其他你喜欢的名称)
- Type:
command
- Command:
e7a40348eef1OBSERVED · 2026-10-06Exposed tools (2)
2 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
generate_image | read | 根据文本描述生成图片 |
use_description | read | 列出所有可用的工具及其参数 |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- declared (1 observation(s))
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (3)
return hashlib.md5(text.encode('utf-8')).hexdigest()requests
aiohttp, aiofiles, requests, psutil, brotlipy
Gates applied: no_behavioural_pass.
e7a40348eef1full audit observations/trust-audit/mcp-server/fengin__image-gen.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-06 | e7a40348eef1 | SAFE | B | 89 | first audit |
Questions
What is the Image-Gen MCP server?
一个能与Cursor集成的图片生成mcp server工具,实现调用即梦逆向接口
What tools does Image-Gen expose?
2 in total: 2 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Image-Gen safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Image-Gen need?
No credential environment variables were found in its source, so it appears to need none.
How current is this page?
The grade is for one exact copy of the source (e7a40348eef1), read on 2026-10-06. The repository is watched and re-audited when it changes.