Skip to main content

MCP server for Unplug — LLM defense layer for Claude Code, Cursor, and more

Project description

Unplug MCP

Model Context Protocol server for Unplug — LLM defense layer.

Integrates with Claude Code, Cursor, Windsurf, and any MCP-compatible client.

Installation

pip install unplug-mcp "unplug-ai>=0.3.0"

Optional ML span scanner:

pip install unplug-mcp "unplug-ai[ml]>=0.3.0"

Usage

Local mode (default)

Add to your MCP client configuration:

Cursor.cursor/mcp.json or Settings → MCP:

{
  "mcpServers": {
    "unplug": {
      "command": "unplug-mcp",
      "args": []
    }
  }
}

Claude Desktopclaude_desktop_config.json:

{
  "mcpServers": {
    "unplug": {
      "command": "unplug-mcp",
      "args": []
    }
  }
}

Hosted server mode

Point at your Unplug API (same wire format as Guard(mode="server")):

{
  "mcpServers": {
    "unplug": {
      "command": "unplug-mcp",
      "env": {
        "UNPLUG_MODE": "server",
        "UNPLUG_SERVER_URL": "https://api.example.com",
        "UNPLUG_API_KEY": "up_live_xxx"
      }
    }
  }
}

Tools

Tool Purpose
scan_text Scan user or retrieved content for injection/leakage
scan_tool_result Scan tool output before the agent reads it
check_destructive Gate side-effect tool calls
wrap_untrusted_content Boundary markers + scan for RAG/web content
session_status Session taint state for agent hardening

CI

  • ci.yml — lint + pytest against PyPI unplug-ai
  • pr-scan.yml — regex Guard scan on changed agent/MCP config files (via unplug-scan-pr)

Development

uv sync --extra dev
uv run pytest -q
uv run unplug-mcp

Local SDK path override (monorepo): tool.uv.sources in pyproject.toml.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

unplug_mcp-0.1.1.tar.gz (129.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

unplug_mcp-0.1.1-py3-none-any.whl (24.9 kB view details)

Uploaded Python 3

File details

Details for the file unplug_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: unplug_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 129.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for unplug_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 dd1054cacd0c4ae30025e75e3abc5f688a5ba20876b3f78b7e6185a405646961
MD5 fe0727425a22241697e246d625f7ad3c
BLAKE2b-256 ad53fd39f1c0bf652c435c30e1692c426776639bce036a25f73ef291e9c32945

See more details on using hashes here.

File details

Details for the file unplug_mcp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: unplug_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 24.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for unplug_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c6762d5ba7bd503e9fa9656de8b6a025ce8913381ed4815fdf14417e72bbac16
MD5 55a30610ec594dc96c819a6ed495687d
BLAKE2b-256 df7d6d3a7cd11939fafd7bfbf0700e2e8fd584a9b9ee0b12ce72e8717468ac5b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page