wd_tagger_mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@wd_tagger_mcpGenerate tags for this image: https://example.com/image.png"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
wd_tagger_mcp
一个专用于 WD Tagger 反推图片标签的 MCP 服务。支持通过 base64/data URL 或 HTTP/HTTPS URL 提交图片。端口、模型路径和标签路径都在 config.toml 中配置,其中文件路径必须使用相对路径。
目录
.
config.toml
models/
wd-eva02-large-tagger-v3/
model.onnx
selected_tags.csv
wd_tagger_mcp/
server.py
tagger.py
config.pyRelated MCP server: nanobanana-mcp
安装项目与依赖
建议在 Python 虚拟环境中安装和运行本项目。在项目根目录安装:
python -m pip install -e .模型下载
默认配置使用 Hugging Face 上的 SmilingWolf/wd-eva02-large-tagger-v3。只需下载以下两个文件:
model.onnx:ONNX 模型权重,约 1.26 GB。
selected_tags.csv:与模型匹配的标签和分类信息。
下载后按以下目录结构放置:
models/
wd-eva02-large-tagger-v3/
model.onnx
selected_tags.csv本服务通过 ONNX Runtime 载入 model.onnx,不需要下载仓库中的 model.safetensors 或 model.msgpack。如果将文件放在其他位置,请同步修改 config.toml 中的 model_path 和 tags_path;这两个配置项必须使用相对于 config.toml 的路径。
更换模型
本服务兼容 SmilingWolf 的以下官方模型。
v3:
v2:
切换模型时,下载对应仓库的 model.onnx 和 selected_tags.csv,放入独立目录,然后修改 config.toml:
[model]
model_path = "models/wd-convnext-tagger-v3/model.onnx"
tags_path = "models/wd-convnext-tagger-v3/selected_tags.csv"每个模型都必须使用同一个仓库中与其配套的 selected_tags.csv,不能在 v2、v3 或不同模型之间混用模型和标签文件。服务会自动读取 ONNX 模型的输入尺寸,并在启动时校验输入布局、输出标签数与 CSV 是否匹配。修改配置后需要重启服务。
启动
在项目根目录启动 MCP 服务:
python -m wd_tagger_mcp.server --config config.toml该命令会在当前终端中前台运行服务。当前 config.toml 使用 SSE transport,监听地址为:
0.0.0.0:48765服务日志写入 config.toml 中 [logging].log_path 指定的文件,默认为:
logs/wd-tagger-mcp-server.log要停止服务,在运行它的终端中按 Ctrl+C。
默认保留 Danbooru 标签中的下划线,例如 looking_at_viewer。如果需要输出更接近自然语言的 looking at viewer,可在 config.toml 中设置:
[tagging]
replace_underscore = true工具
wd_tagger_tag_image_base64: 传入 base64 或 data URL,返回 prompt、general tags、character tags、rating tags。wd_tagger_tag_image_url: 传入 HTTP/HTTPS 图片 URL,服务端下载图片后返回 prompt、general tags、character tags、rating tags。
示例参数:
{
"image_base64": "data:image/png;base64,iVBORw0KGgo...",
"general_threshold": 0.35,
"character_threshold": 0.85,
"include_rating": false
}{
"image_url": "https://example.com/image.png",
"general_threshold": 0.35,
"character_threshold": 0.85,
"include_rating": false
}This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceMCP server for generating images via text-to-image and image-to-image using lk888 API, returning base64 PNG and metadata.MIT
- FlicenseAqualityDmaintenanceMCP server for AI image generation supporting text-to-image and image-to-image editing via any OpenAI-compatible service, with configurable models, aspect ratios, and sizes.2
- AlicenseAqualityDmaintenanceMCP server that provides image generation, captioning, and tagging via ComfyUI API, configurable for agent tools.43MIT
- Alicense-qualityDmaintenanceMCP server providing image analysis tools for AI agents, including metadata extraction, favicon discovery, and placeholder generation.32MIT
Related MCP Connectors
MCP server for NanoBanana AI image generation and editing
MCP server for Wan AI video generation
MCP server for Flux AI image generation
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Jeric-X/wd_tagger_mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server