Skip to content
MCP server

SFW API

Rate nudity in images, GIFs and videos from 0 to 3 with a blocked or allowed verdict

Responds, sign-in requiredStatus and history

The server answered 15 hours ago but needs an account or API key, so we could not list its tools.

Install
Pricing
Freemium
Platforms
API, CLI
Runs
Locally or Remotely
Access
Needs an account or API key
Version
0.1.1
Listing updated
3 days ago

About SFW API

SFW API is a freemium MCP server for security. It can run locally on your machine or as a hosted remote server.

Agents can ask this server how much nudity a piece of media contains without ever viewing it. The reply is a level from 0 (everyday) to 3 (explicit) plus per-level scores and flags for drawn content and adult objects, and a blocked or allowed verdict when you pass a block level, so the agent need not compare scores itself. Nothing explicit enters the conversation because only numbers come back.

There are two ways to run it. The hosted endpoint at api.sfwapi.dev/mcp needs no install and takes an API key as a bearer header, working with Claude Code, Cursor, VS Code and Codex. The local npm package @sfwapi/mcp adds a tool for files on your machine and is the route for Claude Desktop, which only starts local servers. It cannot be added as a claude.ai connector yet because those use OAuth.

Billing is by credit: one per image or per analysed frame of a GIF or video, with 500 free credits a month and no card. Media is analysed in memory on servers in Germany and discarded, and failed calls are free.

Install

Run in a terminal

claude mcp add --transport http mcp https://api.sfwapi.dev/mcp

Add to Settings → Connectors → Add custom connector

https://api.sfwapi.dev/mcp
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "mcp": {
      "url": "https://api.sfwapi.dev/mcp"
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "mcp": {
      "type": "http",
      "url": "https://api.sfwapi.dev/mcp"
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp": {
      "serverUrl": "https://api.sfwapi.dev/mcp"
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "mcp": {
      "type": "http",
      "url": "https://api.sfwapi.dev/mcp"
    }
  }
}

Configuration

  • SFWAPI_API_KEYYour SFW API key (sk_live_...). Get a free one at https://sfwapi.dev/consoleRequired

Tools this server provides (3)

Taken from the project documentation; the running server may differ.

analyze_url
Analyses an image, GIF or video at a public URL.
analyze_file
Analyses a local file by uploading it for in-memory analysis; local package only.
get_account
Shows credit balance, plan limits and this month's usage; free.

What it does

Level 0-3 rating
Everyday, revealing, implied nudity or explicit, with scores per level.
Block policy
Pass a block level and get a blocked or allowed answer.
GIFs and video
Frames are sampled evenly and the highest level wins; video needs a paid account.
Hosted or local
Use the hosted endpoint or the npm package.
No media stored
Analysis happens in memory with no bytes, URLs or hashes kept.
Free monthly credits
500 credits a month with no card.

Good for

  • Check an uploaded image before it appears on a public feed
  • Let a coding agent add moderation to an app
  • Screen GIFs in user-generated content
  • Audit a folder of local images with the file tool

Pricing

Freemium

500 free credits a month; prepaid packs from $10 per 10,000 credits

Prices change. Check sfwapi.dev before you buy.

SFW API FAQ

What does it cost?

One credit per image or analysed frame; 500 free credits a month, then prepaid packs from 10,000 credits for $10 that do not expire.

Is the image stored or shown to the model?

No to both. It is analysed in memory in Germany and discarded; the tool result holds levels and scores only.

Which client should use the hosted endpoint?

Any client that can send an Authorization header, such as Claude Code, Cursor, VS Code or Codex.

Does it handle video?

Yes, sampling 10 frames by default up to 32, but video needs a paid account.

Can I add it as a custom connector on claude.ai?

Not yet, since the endpoint takes an API key rather than OAuth.

Is SFW API free?

SFW API has a free plan, with paid plans for more usage or features.

How do I add SFW API to Claude Code?

Run this command in your terminal: claude mcp add --transport http mcp https://api.sfwapi.dev/mcp

What are the best alternatives to SFW API?

The closest alternatives to SFW API are REA, Agent Roast, Midplane, Leash and Tinplate Edge AI Safety, Security & EU Compliance.

Alternatives to SFW API

  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 464K GitHub stars
    • Developer tools
  2. Agent Roast

    MCP server

    Offline review that flags agent changes which weaken tests, assertions or CI

    Runs locally
    • Open source
    • 4 Hacker News points
    • Developer tools
  3. Midplane

    MCP server

    Postgres gateway for AI agents with table grants, column masking and approval for writes

    Runs locally
    • Open source
    • 5 GitHub stars
    • Databases
  4. Leash

    MCP server

    Review what your AI touched, approve risky actions and undo supported changes

    • 1 tool
    • Remote
    • Free
    • 1 GitHub star
    • Security
  5. SecureCloud

    MCP server

    SentinelOne and IT security catalog, prices, quotes and checkout links for Israel

    • 7 tools
    • Remote
    • Free
    • Security