Xhs Image Mcp — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Xhs Image Mcp (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
将文章/文本转换为小红书风格图片卡片的 MCP Server,支持 AI 生成封面图。
GEMINI_API_KEY 后自动生成 AI 封面,无需手动开启| 比例 | 尺寸 | 说明 |
|---|---|---|
| 3:4 | 1080×1440px | 推荐,占据最大屏幕空间 |
| 1:1 | 1080×1080px | 方形,适合产品展示 |
| 4:3 | 1080×810px | 横版,适合风景照 |
npm install -g xhs-image-mcp
npx playwright install chromium或从源码安装:
git clone https://github.com/dthinkr/xhs-image-mcp.git
cd xhs-image-mcp
npm install
npx playwright install chromium
npm run buildClaude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"xhs-image": {
"command": "npx",
"args": ["-y", "xhs-image-mcp"],
"env": {
"GEMINI_API_KEY": "your_api_key_here"
}
}
}
}Claude Code (~/.claude/settings.json):
{
"mcpServers": {
"xhs-image": {
"command": "npx",
"args": ["-y", "xhs-image-mcp"]
}
}
}npm testtext_to_images将文本转换为图片序列。
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
text | string | Yes | 文本内容 |
title | string | 标题(用于封面) | |
theme | string | minimal / elegant / warm / dark | |
ratio | string | 3:4 / 1:1 / 4:3 | |
fontSize | string | small / medium / large | |
showCover | boolean | 是否生成封面页 | |
generateAiCover | boolean | 使用 AI 生成封面图(设置 API Key 后默认开启,传 false 可禁用) | |
outputDir | string | 输出目录,图片保存为 PNG |
file_to_images将 Markdown/文本文件转换为图片。
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
filePath | string | Yes | 文件路径 (.md/.txt) |
title | string | 覆盖自动提取的标题 | |
theme | string | 主题 | |
generateAiCover | boolean | AI 封面(设置 API Key 后默认开启,传 false 可禁用) | |
outputDir | string | 输出目录 |
estimate_pages估算页数(不生成图片)。
list_themes列出所有可用主题。
| 主题 | 风格 | 适用场景 |
|---|---|---|
minimal | 白底黑字,简约 | 知识干货、教程 |
elegant | 米白衬线,书卷气 | 小说、散文、诗歌 |
warm | 暖色渐变,卡片式 | 情感生活、分享 |
dark | 深色护眼 | 夜间阅读、科技 |
| 变量 | 说明 |
|---|---|
GEMINI_API_KEY | Google Gemini API Key,用于 AI 封面生成(设置后自动启用 AI 封面) |
获取 API Key: https://aistudio.google.com/app/apikey
MIT
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.