Skip to main content
Glama

PADAM Shield Lite (padam-shield-mcp)

Lightweight, Stateless, Container-First MCP & Prompt Security Scanner (Apache-2.0)

License: Apache-2.0 Python 3.10+ MCP: stdio · 4 tools Org

Languages: English · Русский · Español · 中文

padam-shield-mcp is the zero-dependency, Apache-2.0 security gateway designed for Docker Desktop MCP Toolkit, CI/CD sandboxes, and teams that need fast, stateless inspection before adopting full persistent agent memory.

  • 0 external Python dependencies (pure Python stdlib + tiny rootless Dockerfile).

  • 0 bytes stored, 0 network calls, 0 cloud telemetry — safe inside strict corporate Docker environments.

  • Clean Open-Core + Apache-2.0 Gateway architecture by CODE Eternal LLC (New Mexico, Entity ID 0008138873).


4 Stateless MCP Tools

Tool

Purpose

Key Detections

scan_mcp_config

Audits any mcp.json / Claude / Cursor JSON config

Plaintext API keys (sk-, ghp_, AKIA, amcp_, PEM), <IMPORTANT> tool poisoning, non-localhost http://, hidden Unicode, unpinned npx -y

scan_prompt_text

Audits untrusted pages, emails, PR comments before LLM ingestion

Unicode Tag smuggling (U+E00xx), Bidi/Trojan-Source overrides, instruction overrides, exfiltration hints

scan_web_snippet

Audits HTML / third-party <script> tags

Missing cryptographic SRI (integrity="sha384-..." for PCI DSS 4.0.1 Req 6.4.3 / 11.6.1), plaintext http:// scripts

upgrade_ecosystem_info

Explains capabilities & exact licensing across CODE Eternal servers

Boundaries between Apache-2.0 Lite, AGPL-3.0 Full Engine, and MIT/Hosted Cloud MCP


Related MCP server: toolfence

Ecosystem Matrix (Choose Your Exact Layer)

Product

License

Role

Link

PADAM Shield Lite (padam-shield-mcp)

Apache-2.0

Lightweight stateless Docker/stdio MCP scanner (this repo)

MaksimGalatin/padam-shield-mcp

PADAM NOCTURNE + Studio + Android (padam-nocturne)

AGPL-3.0-only (+ Apache-2.0 CI Action + Commercial MSA)

Full local SQLite AI memory, 4-Ring Agentic Shield (214/214), 1-Agent Multi-Session graph, Desktop Studio (Win/macOS/Linux), signed Android APK + LAN QR AES-256-GCM sync, Arweave/Solana/Bitcoin OTS

MaksimGalatin/padam-nocturne

AIfa Memory MCP (aifa-memory-mcp)

MIT (specs/conformance) + Platform Terms

Hosted Streamable HTTP MCP (https://aifa.works/api/mcp) with 17 tools (memory_wake_up, GDPR memory_forget)

MaksimGalatin/aifa-memory-mcp

Browser Express Scanner

Free Web Tool

100% client-side mcp.json & SRI audit in your browser

aifa.works/shield


Quick Start (Docker / Python)

Option 1: Docker (stdio MCP)

docker build -t padam-shield-mcp .
docker run --rm -i padam-shield-mcp

Option 2: Python (pip / local)

pip install -e .
padam-shield-mcp

MCP Client Config (mcp.json)

{
  "mcpServers": {
    "padam-shield": {
      "command": "docker",
      "args": ["run", "--rm", "-i", "mcp/padam-shield"]
    }
  }
}

License

Licensed under the Apache License, Version 2.0.
Note: The full persistent local SQLite engine, PADAM Studio desktop app, Android APK, and 4-Ring memory quarantine inside padam-nocturne remain independently licensed under AGPL-3.0-only + Commercial MSA.

Available Tools

4 tools
scan_mcp_configA
Read-onlyIdempotent

Audit an mcp.json or MCP client configuration string for plaintext API keys/secrets, prompt-injection markers in tool metadata, insecure non-localhost HTTP endpoints, hidden Unicode tags, and unpinned npx packages. Purely static and stateless.

Inputs: config_json (required), sarif.

scan_prompt_textA
Read-onlyIdempotent

Scan untrusted external text (web excerpts, emails, PR comments, tool outputs) for invisible Unicode smuggling (U+E00xx), Bidi Trojan-Source overrides, prompt-injection directives, and accidental credential leaks.

Inputs: text (required), source_label.

scan_web_snippetA
Read-onlyIdempotent

Audit an HTML snippet or third-party tags against PCI DSS v4.0.1 Subresource Integrity (Req 6.4.3 / 11.6.1), plaintext http:// script loading, and exposed secrets.

Inputs: html_snippet (required), sarif.

upgrade_ecosystem_infoB
Read-onlyIdempotent

Return exact product and license boundaries between this Apache-2.0 stateless scanner (padam-shield-mcp), the full AGPL-3.0-only PADAM NOCTURNE local memory engine & Desktop Studio, and hosted AIfa Memory MCP v2.0.0.

Inputs: topic.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 4 tools

    Disambiguation4/5

    The three scan_* tools each take a clearly different input type (MCP config string, untrusted external text, HTML/web snippet), so an agent can pick based on input. There is some thematic overlap since all three hunt for secrets/injection markers, but the descriptions draw usable boundaries. upgrade_ecosystem_info is clearly separate in purpose.

    Naming Consistency3/5

    Three tools follow a clean scan_<target> pattern, which is predictable and readable. However, upgrade_ecosystem_info breaks the convention and is actively misleading — its name implies an action/upgrade rather than returning license and product boundary information.

    Tool Count3/5

    Four tools is on the thin side for a security-auditing server, and only three of them actually perform scans. One slot is spent on a static product/license info tool rather than scanning capability, making the functional surface feel small.

    Completeness3/5

    Coverage of scanning targets (config, free text, web snippet) is sensible, but the lifecycle is a dead end after detection: no tool for explaining findings, severity triage, or suggested remediation, and no way to re-verify a fixed config. The ecosystem info tool adds metadata but not workflow coverage.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables scanning of AI agent code for security vulnerabilities such as prompt injection, tool abuse, and data exfiltration, directly from MCP-compatible clients like Claude Code.
      92 PyPI
      3
      LGPL 3.0
    • A
      license
      A
      quality
      B
      maintenance
      Enables agents and CI pipelines to audit MCP servers and agent tool-chains by statically scanning repositories, local checkouts, tools/list exports, or live endpoints for risks such as destructive actions without confirmation, mismatched safety annotations, injection surfaces, credential or PII exposure, and unguarded command, path, or URL sinks. All checks are read-only and never execute the scanned code or call tools/call.
      3
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables MCP clients to run deterministic, read-only local repository audits for risky GitHub workflows, undocumented environment variables, possible credentials, and conflicting dependency configuration, returning structured findings without sending source code to a service.
      43 npm
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables MCP clients to run read-only static audits on supplied n8n, Dify, Trigger.dev, Activepieces, and OpenAPI exports, and to screen HTTPS URLs for unsafe schemes, returning structured findings and limitations.
      4
      25 PyPI
      Apache 2.0