@sfwapi/mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
@sfwapi/mcp
MCP server for the SFW API: NSFW and nudity detection for images, GIFs and videos as tools for Claude Code, Claude Desktop, Cursor, VS Code, Codex and any other MCP client.
Tools
Tool | What it does |
| Analyse an image, GIF or video at a public URL |
| Analyse a local file on your machine (uploaded to the API) |
| Credit balance, plan limits and this month's usage (free) |
Every analysis result carries the content level (0 Everyday, 1 Revealing, 2 Implied nudity, 3 Explicit), a 0-100 score per level, and flags for drawn content (art) and adult objects (sex_object). Pass block_level to get a blocked/allowed decision directly.
One credit per image or analysed GIF/video frame; failed calls are free; 500 free credits a month. Media is processed in memory and never stored.
Example output
Level 0 (Everyday). Scores 0-100: revealing 2, implied nudity 0, explicit 0. Allowed by the policy. 1 credit used, 499 left.Structured JSON matching the HTTP API response is returned alongside the text summary.
Related MCP server: @imageat/mcp
Install
Get a free key at sfwapi.dev/console and put it in SFWAPI_API_KEY.
Claude Code
claude mcp add sfwapi -e SFWAPI_API_KEY=sk_live_... -- npx -y @sfwapi/mcpCursor (.cursor/mcp.json) and Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"sfwapi": {
"command": "npx",
"args": ["-y", "@sfwapi/mcp"],
"env": { "SFWAPI_API_KEY": "sk_live_..." }
}
}
}VS Code (.vscode/mcp.json)
{
"inputs": [
{ "type": "promptString", "id": "sfwapi-key", "description": "SFW API key", "password": true }
],
"servers": {
"sfwapi": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@sfwapi/mcp"],
"env": { "SFWAPI_API_KEY": "${input:sfwapi-key}" }
}
}
}Codex (~/.codex/config.toml)
[mcp_servers.sfwapi]
command = "npx"
args = ["-y", "@sfwapi/mcp"]
env = { SFWAPI_API_KEY = "sk_live_..." }Hosted endpoint (no install)
https://api.sfwapi.dev/mcp serves the same tools over Streamable HTTP, without analyze_file (a hosted server cannot read your disk). Send the key as Authorization: Bearer sk_live_...:
claude mcp add --transport http sfwapi https://api.sfwapi.dev/mcp --header "Authorization: Bearer sk_live_..."Environment
Variable | Description |
| Required. Your SFW API key. |
| Optional. Defaults to |
Links
Setup for every client: sfwapi.dev/mcp
Tool reference: sfwapi.dev/docs/mcp
Claude Code plugin, Cursor rule and Codex
AGENTS.md: github.com/sfwbot/sfwapi-agent-toolsHTTP API docs: sfwapi.dev/docs
Interactive playground: api.sfwapi.dev/playground
Pricing: sfwapi.dev/pricing
Node 20 or newer. MIT licence.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Nudity detection for images, GIFs and videos: a level from 0 to 3 and a blocked or allowed verdict.
Image/video analysis: NSFW detection, object detection, thumbnails
Run AI-powered analysis on images including moderation, captioning, tagging, and more.
MCP server for Pixapi: check live credit pricing and balance, then generate images and video.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables MCP-compatible clients to generate and upscale AI images, videos, music, and sound effects, manage generation jobs, access model catalogs, and track credits.3MIT
- AlicenseAqualityBmaintenanceEnables MCP-compatible clients to generate images and videos, and to apply 20+ image editing features such as background removal, inpainting, object eraser, relight, and virtual try-on using ImageAT account credits.4357 npmMIT
- AlicenseAqualityCmaintenanceEnables MCP clients to submit public video links or local video files for analysis and receive AI-generation probability scores for picture and sound, with tools to retrieve results and check remaining credits.4MIT
- AlicenseAqualityBmaintenanceEnables MCP clients to generate and edit images across multiple image models, list models and templates, render card templates, upload assets, and check a prepaid balance through one connection.4100 npmMIT