MCP server: nudity detection as tools for Claude, Cursor, VS Code and Codex
A hosted MCP endpoint and a local npm package give AI agents the tools analyze_url, analyze_file and get_account, with the same keys and credits as the API.
- Hosted endpoint at
https://api.sfwapi.dev/mcp(Streamable HTTP): send your API key as anAuthorization: Bearerheader, nothing to install - Local package
npx -y @sfwapi/mcp(stdio) with the key inSFWAPI_API_KEY; it addsanalyze_filefor files on your machine - Tools:
analyze_url,analyze_file(local) andget_account. Results carry the level, the scores per level, the art and adult-object flags and, withblock_level, a blocked or allowed verdict - Same credits as the API: one per image or analysed frame. Connecting, listing tools,
get_accountand failed calls are free - Copy-and-paste setup for Claude Code, Cursor, VS Code, Codex and Claude Desktop on the MCP server page; inputs, results and errors in the MCP reference