Image Content Moderation
Audit images for adult, political, and violent content using the nx-mcp-audit MCP service.
Setup
Configure the MCP server and API key in .mcp.json:
{
"mcpServers": {
"nx-mcp-audit": {
"type": "url",
"url": "https://mcp.api-inference.modelscope.net/da16b3f65bdb4e/mcp",
"env": {
"NX_API_KEY": "your-api-key-here"
}
}
}
}
Restart Claude Code after configuring.
Usage
- Collect images from a folder path or URL
- Compress large images to fit gateway limits (sharp auto-install)
- Call the nx_img_audit MCP tool for each image
- Summarize results in a table with pass, block, or fail status
- Provide recommendations for blocked images
Response Fields
- safe: true for pass, false for blocked
- source: audit engine (e.g. wechat)
- summary: aggregate stats (total, pass, block, error)