# SFW API

> SFW API is a freemium MCP server for security. Rate nudity in images, GIFs and videos from 0 to 3 with a blocked or allowed verdict. It can run locally on your machine or as a hosted remote server.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** API, CLI
- **Website:** https://sfwapi.dev/mcp
- **MCP Registry name:** dev.sfwapi/mcp
- **Categories:** security
- **Listing updated:** 2026-11-14

## About

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.

## Features

- **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

## Install

### Claude Code (Terminal)

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

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://api.sfwapi.dev/mcp
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "url": "https://api.sfwapi.dev/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

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

### Windsurf (~/.codeium/windsurf/mcp_config.json)

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

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

- `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.

## 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

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Agent Roast](https://ai-powered.com/mcp/agent-roast): Agent Roast is an open-source MCP server for developer tools.
- [Midplane](https://ai-powered.com/mcp/midplane): Midplane is an open-source MCP server for databases.
- [Leash](https://ai-powered.com/mcp/leash): Leash is a free MCP server for security.
- [Tinplate Edge AI Safety, Security & EU Compliance](https://ai-powered.com/mcp/tinplate-edge-ai-safety-security-and-eu-compliance): Tinplate Edge AI Safety, Security & EU Compliance is a freemium MCP server for security.
- [SecureCloud](https://ai-powered.com/mcp/securecloud): SecureCloud is a free MCP server for security.
- [Eikino](https://ai-powered.com/mcp/eikino): Eikino is a freemium MCP server for security.
- [SynomosAI Governance MCP](https://ai-powered.com/mcp/synomosai-governance-mcp-2): SynomosAI Governance MCP is an open-source MCP server for security.

---
Source: https://ai-powered.com/mcp/sfw-api
