Skip to main content

Unplug MCP

CI PyPI License

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

Optional ML span scanner:

pip install "unplug-mcp[ml]"

Run without a prior install (recommended for MCP clients):

uvx unplug-mcp

See examples/mcp.json for copy-paste client configs.

Usage

Local mode (default)

Add to your MCP client configuration:

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

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

With uvx (no pip install):

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

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.unplug-ai.org/v1",
        "UNPLUG_API_KEY": "up_live_xxx"
      }
    }
  }
}

Configuration

Variable Default Purpose
UNPLUG_MODE local local or server
UNPLUG_CONFIG Path to Unplug TOML config
UNPLUG_SERVER_URL Hosted API base URL (server mode)
UNPLUG_API_KEY API key (server mode)
UNPLUG_ACTIVE_MODEL ML model name override
UNPLUG_MODEL_PATH Local ML checkpoint path

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
notify_taint_source Record an untrusted content source in session state
reset_session_taint Clear session taint tracking

CI

  • ci.yml — lint + pytest against PyPI unplug-ai
  • pr-scan.yml — regex Guard scan on changed agent/MCP config files (via UnplugAI/unplug-scan-action@v1)
  • publish-pypi.yml — PyPI release on GitHub Release or manual dispatch

Development

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

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

Distribution

See MARKETPLACE.md for MCP registry listing steps and PUBLISH.md for PyPI release workflow.

Related

License

Apache-2.0 — see LICENSE.

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.2.tar.gz (131.6 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.2-py3-none-any.whl (25.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for unplug_mcp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 97f23f5819d2a492c3dbbc8a6b1260e0110d9d4c439d811b7994a89c1b369ccb
MD5 cc41b45f374a7f3fb4f0d2a546ac4840
BLAKE2b-256 d2be4219b99eb42658e5b1b26d1286ce4d14b478a8d57bf8f53bd7cfe4763ee4

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for unplug_mcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7a9a3eb1a215e85ee660a44b413a54f2b0a81f287a354b5da1e17e4ed3ce23f8
MD5 e65bcfb15d6b8f492b81546370aa5105
BLAKE2b-256 288083235fc84c028b1f307abc699aca8b6a00ea001488b32024646606c3174c

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