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.1.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.1-py3-none-any.whl (58.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_airlock_crunchtools-0.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 5220b2ee7feb279a96a74f021c758dc71e3ffdd54d8fbda81ae23bba64768876
MD5 1262ab78a663faa4fd8ecbcbef08eaf0
BLAKE2b-256 bf3d3fef1929a99a9a681668931f03b7e776e25becc1f85754ffa507624d972f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mcp_airlock_crunchtools-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e0c88cd7303f5b4ca0b8fc91a2d5fc4155b9cbcf0bae283a3a87282a1ab11373
MD5 4e71a7c525eca3ca6761bc845529e20e
BLAKE2b-256 fb7f26285964e2fa19c34f0dd169e9df73f2d1d187ac7b7a9488a141bdc4123d

See more details on using hashes here.

Provenance

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