Skip to main content

Secure MCP server for quarantined web content extraction — two-layer defense against prompt injection

Project description

mcp-airlock-crunchtools

Secure MCP server for quarantined web content extraction with two-layer prompt injection defense.

Tools (6)

Tool Layers Description
safe_fetch L1 Fetch URL, sanitize, return markdown. Fails on injection.
safe_read L1 Read local file, sanitize, return markdown. Fails on injection.
quarantine_fetch L1+L2 Fetch URL, sanitize, extract via Q-Agent. Warns on injection.
quarantine_read L1+L2 Read local file, sanitize, extract via Q-Agent. Warns on injection.
quarantine_scan L1+L2 Pre-flight scan: detect injection vectors WITHOUT returning content.
quarantine_stats Session stats, config, and blocklist summary.

Architecture

  • Layer 1 (Deterministic): 7-stage sanitization pipeline strips hidden HTML, invisible unicode, encoded payloads, exfiltration URLs, and LLM delimiters.
  • Layer 2 (Q-Agent): Quarantined Gemini Flash-Lite LLM for semantic content extraction — NO tools, NO memory, NO SDK.

Install

# PyPI
pip install mcp-airlock-crunchtools

# uvx (zero-install)
uvx mcp-airlock-crunchtools

# Container
podman run quay.io/crunchtools/mcp-airlock

Configuration

# Required for Layer 2 (Q-Agent)
export GEMINI_API_KEY=your-key

# Optional
export QUARANTINE_MODEL=gemini-2.0-flash-lite  # default
export QUARANTINE_FALLBACK=layer1              # or "fail"
export QUARANTINE_MAX_CONTENT=100000           # max chars to Q-Agent
export QUARANTINE_DB=/data/airlock.db          # SQLite blocklist path
export QUARANTINE_TRUST_CONFIG=~/.config/mcp-env/mcp-airlock-trust.json

Claude Code

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

License

AGPL-3.0-or-later

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

mcp_airlock_crunchtools-0.2.2.tar.gz (111.5 kB view details)

Uploaded Source

Built Distribution

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

mcp_airlock_crunchtools-0.2.2-py3-none-any.whl (58.0 kB view details)

Uploaded Python 3

File details

Details for the file mcp_airlock_crunchtools-0.2.2.tar.gz.

File metadata

  • Download URL: mcp_airlock_crunchtools-0.2.2.tar.gz
  • Upload date:
  • Size: 111.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mcp_airlock_crunchtools-0.2.2.tar.gz
Algorithm Hash digest
SHA256 86c2ec077101bdfe74085af476da4010d5ca67c83916c50e1624e66d8fe32846
MD5 129c5b20b06a0bf82f869caba7877c67
BLAKE2b-256 cb1a65b3587d0859a0c9f69bde6b67c8a9f05cdb6d442513459fdf40528847bf

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_airlock_crunchtools-0.2.2.tar.gz:

Publisher: publish.yml on crunchtools/mcp-airlock

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcp_airlock_crunchtools-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_airlock_crunchtools-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c46c625e30056c4e11f9c295a45800fe5f1e367132bb5927dd8b439ea556d899
MD5 ce47df1e0b21d89eb992933c99714ea4
BLAKE2b-256 85883a21eabd8d0f151b4e02b11f06f5d1ada113591d61171351edfe1ac2f30f

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_airlock_crunchtools-0.2.2-py3-none-any.whl:

Publisher: publish.yml on crunchtools/mcp-airlock

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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