Back to Browse

Picdefenseio MCP Server

Developer ToolsLow Risk9.8MCP RegistryLocalRemote
Free

Server data from the Official MCP Registry

Image risk scoring, EXIF, reverse-image backlinks, and image content detection via PicDefense.io.

About

Image risk scoring, EXIF, reverse-image backlinks, and image content detection via PicDefense.io.

Remote endpoints: streamable-http: https://mcp.picdefense.io/mcp

Security Report

9.8
Low Risk9.8Low Risk

Valid MCP server (4 strong, 4 medium validity signals). 1 known CVE in dependencies Package registry verified. Imported from the Official MCP Registry.

Endpoint verified Β· Requires authentication Β· 3 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

file_system

Check that this permission is expected for this type of plugin.

env_vars

Check that this permission is expected for this type of plugin.

HTTP Network Access

Connects to external APIs or services over the internet.

What You'll Need

Set these up before or after installing:

Your PicDefense.io token in the form USERID:APIKEY. Get it at https://app.picdefense.io/?returnUrl=https://app.picdefense.io/dashboard/settingsRequired

Environment variable: PICDEFENSE_API_TOKEN

How to Install & Connect

Available as Local & Remote

This plugin can run on your machine or connect to a hosted endpoint. during install.

Documentation

View on GitHub

From the project's GitHub README.

PicDefense.io MCP Server

A Model Context Protocol server for the PicDefense.io API β€” let AI agents run reverse-image risk analysis, EXIF extraction, image backlink discovery, and image content detection (face / landmark / logo / label / SafeSearch) on any image URL.

Features

  • πŸ” Per-user authentication β€” each connection carries its own PicDefense API token; the server holds no keys
  • πŸš€ Dual transport β€” modern Streamable HTTP (/mcp) and legacy SSE (/sse)
  • 🧰 11 tools covering the full PicDefense API v2
  • 🐳 Docker-ready β€” production container behind nginx
  • πŸ“– Built-in docs β€” Swagger UI at /docs

Tools

ToolDescription
picdefense_get_creditsRemaining account credit balance
picdefense_check_image_riskReverse-image risk analysis + picrisk score (core tool)
picdefense_extract_exifExtract EXIF metadata (camera, timestamps, GPS)
picdefense_detect_faceDetect a human face in an image
picdefense_detect_landmarkDetect a recognizable landmark
picdefense_detect_logoDetect a brand logo
picdefense_safesearchContent-safety (adult/violence/racy/…) assessment
picdefense_find_backlinksFind pages where an image appears
picdefense_detect_labelsDetect descriptive labels for image contents
picdefense_extract_textExtract text from an image via OCR
picdefense_detect_watermarkDetect a visible stock/photographer watermark (source + confidence)

All image tools take a single url (a public http/https image URL). Most tools consume account credits per call β€” use picdefense_get_credits to check your balance.

Authentication

Every request authenticates with your PicDefense API token, which is your user id and API key joined by a colon:

USERID:APIKEY

Find both in your PicDefense.io account settings: https://app.picdefense.io/?returnUrl=https://app.picdefense.io/dashboard/settings

The token is sent as the X-API-TOKEN header to the API (https://app.picdefense.io/api/v2).

Quick start

Hosted server (recommended)

The hosted server runs at https://mcp.picdefense.io. Add it to Claude Code:

# Streamable HTTP (recommended)
claude mcp add -t http picdefense "https://mcp.picdefense.io/mcp" \
  --header "X-API-Token: USERID:APIKEY"

# or SSE
claude mcp add -t sse picdefense "https://mcp.picdefense.io/sse?token=USERID:APIKEY"

Quick HTTP smoke test:

curl -X POST https://mcp.picdefense.io/mcp \
  -H "Content-Type: application/json" \
  -H "X-API-Token: USERID:APIKEY" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

Claude Desktop (hosted)

Claude Desktop launches MCP servers as local commands, so reach the hosted server through the mcp-remote bridge (requires Node.js installed). See claude_desktop_config.example.json:

{
  "mcpServers": {
    "picdefense": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.picdefense.io/sse?token=YOUR_USERID:YOUR_APIKEY"
      ]
    }
  }
}

Edit your claude_desktop_config.json (Settings β†’ Developer β†’ Edit Config), add the mcpServers block above with your USERID:APIKEY, then fully quit and reopen Claude Desktop.

Testing against a plain-HTTP server (e.g. http://<host>:6910) instead of HTTPS? mcp-remote blocks non-HTTPS origins unless the host is localhost β€” append "--allow-http" to the args array, or reach it over an SSH tunnel to localhost.

Local (stdio) via npx β€” no clone needed

Run the published package directly. Requires Node.js installed.

{
  "mcpServers": {
    "picdefense": {
      "command": "npx",
      "args": [
        "-y",
        "@picdefenseio/mcp-server",
        "--api-token",
        "USERID:APIKEY"
      ]
    }
  }
}

You can also pass the token via the PICDEFENSE_API_TOKEN env var instead of --api-token.

Local (stdio) from source

Clone and build, then point Claude Desktop at the built entry point:

git clone https://github.com/rchanllc/picdefenseio-mcp-server.git
cd picdefenseio-mcp-server
npm install
npm run build

Then use "command": "node" with "args": ["/absolute/path/to/dist/index.js", "--api-token", "USERID:APIKEY"].

Configuration

VariableDefaultDescription
PICDEFENSE_API_TOKENβ€”USERID:APIKEY (stdio only; hosted server reads it per-connection)
PICDEFENSE_API_BASE_URLhttps://app.picdefense.io/api/v2API base URL
PORT6910Hosted server listen port

Running the hosted server

Development

npm run dev:sse        # tsx watch, auto-reload

Production (Docker)

# via docker compose
docker compose up --build -d

# or the helper script (handles build + health check)
./deploy.sh

The container is named picdefenseio_mcp and listens on port 6910.

HTTP endpoints

MethodPathPurpose
GET/healthHealth check (used by Docker + CI)
GET/api/infoServer + transport info
GET/toolsList available tools
GET/docsSwagger UI for the underlying API
GET/sse?token=USERID:APIKEYOpen an SSE MCP session
POST/messages?sessionId=<id>SSE session message channel
POST/mcpStreamable HTTP MCP (header X-API-Token)

Self-hosting

There is no CI/CD in this repo β€” host it yourself. On your server:

git clone https://github.com/rchanllc/picdefenseio-mcp-server.git
cd picdefenseio-mcp-server
docker compose up --build -d      # or: ./deploy.sh

The container is named picdefenseio_mcp and listens on 6910. To update, git pull and re-run docker compose up --build -d.

Front it with nginx at https://mcp.picdefense.io β†’ 127.0.0.1:6910 (proxy_buffering off and a long read timeout are recommended for the /sse path).

Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  MCP Client  │───▢│  PicDefense MCP Server │───▢│  PicDefense.io API v2   β”‚
β”‚ (Claude etc.)β”‚    β”‚      (port 6910)       β”‚    β”‚ app.picdefense.io/api/v2β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
        token (USERID:APIKEY) forwarded as X-API-TOKEN ───────────▢

Each connection builds its own API client + MCP server bound to the caller's token, so the service is multi-tenant and stateless with respect to credentials.

License

MIT β€” see LICENSE.

Reviews

No reviews yet

Be the first to review this server!