SFW API
Menu

Changelog

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 an Authorization: Bearer header, nothing to install
  • Local package npx -y @sfwapi/mcp (stdio) with the key in SFWAPI_API_KEY; it adds analyze_file for files on your machine
  • Tools: analyze_url, analyze_file (local) and get_account. Results carry the level, the scores per level, the art and adult-object flags and, with block_level, a blocked or allowed verdict
  • Same credits as the API: one per image or analysed frame. Connecting, listing tools, get_account and 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

All entries · RSS