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.0.tar.gz (95.7 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.0-py3-none-any.whl (53.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_airlock_crunchtools-0.2.0.tar.gz
  • Upload date:
  • Size: 95.7 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.0.tar.gz
Algorithm Hash digest
SHA256 31f09b87db638d67f2d6618c8cc15c0fc591743d2e512e0446b2ea4968c7f25b
MD5 f6271853ceaf517400d0db695cbd1183
BLAKE2b-256 53994895e36fbf43fd23dbfd15d09b6e62f62feca034375e3bdbfe6192af8799

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_airlock_crunchtools-0.2.0.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.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_airlock_crunchtools-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fb4d8667cbf5cc302715cca8c87dd97044d536cf5907f43d1bbf0f1870fdbe52
MD5 b1fcda96a411236123f08e54fe685801
BLAKE2b-256 458a371911ff45f3d49013f6a236489c372f7d9d85debf5b4516814bc1aa0860

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_airlock_crunchtools-0.2.0-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