Power Strip Security

v0.2.0
io.github.AlbertBalestrini/power-strip-security Checked 10 hours ago Published 1 month ago

Prompt-injection shield for agents: read pages, scan content, audit MCP servers and skills.

MCP server for Power Strip Security: safe reading for AI agents. Each call is paid with x402 in USDC on Base, from a wallet you control. There is no account and no API key. No install needed? The same tools are served remotely at https://api.powerstripsecurity.workers.dev/mcp (Streamable HTTP), paid per call with x402 over MCP.

Summary extracted from the README.

power-strip-security-mcp

MCP server for Power Strip Security: safe reading for AI agents.

  • read_url: fetch a public web page and get it back as clean markdown, with hidden text, invisible characters and data-exfiltration links removed, plus a prompt-injection risk report. US$0.005 per page. Pages that cannot be read are not charged.
  • check_prompt_injection: scan HTML or text you already have, such as an email, a document or a tool result. US$0.002 per call.
  • audit_mcp_server: check an MCP server for tool poisoning before you connect (hidden instructions, sensitive-file access, cross-tool shadowing), with a fingerprint per tool to catch silent changes later. US$0.01 per audit. Servers that cannot be listed are not charged.
  • audit_agent_skill: check an agent skill (SKILL.md with its scripts and references) or AGENTS.md, CLAUDE.md, .cursorrules before loading it: prompt injection, curl | bash, encoded commands, credential theft, hardcoded keys, persistence. US$0.005 per audit. Nothing is executed.

Each call is paid with x402 in USDC on Base, from a wallet you control. There is no account and no API key.

No install needed? The same tools are served remotely at https://api.powerstripsecurity.workers.dev/mcp (Streamable HTTP), paid per call with x402 over MCP.

Setup

Use a dedicated wallet holding a small USDC balance on Base (a few dollars covers hundreds of reads). It needs no ETH. Add this to your MCP client config (Claude Desktop, Claude Code, Cursor…):

{
  "mcpServers": {
    "power-strip-security": {
      "command": "npx",
      "args": ["-y", "power-strip-security-mcp"],
      "env": {
        "PSS_PRIVATE_KEY": "0x…",
        "PSS_MAX_SPEND_USD": "1"
      }
    }
  }
}

Safety

  • The key stays on your machine. This server only uses it to sign x402 payments.
  • Every payment request is checked before signing: it must be on Base, in official USDC, to the service's fixed address, and at most US$0.01.
  • PSS_MAX_SPEND_USD caps spending per session. The default is US$1.
  • Paid responses include a signed receipt, which you can verify against /.well-known/jwks.json.

Honest numbers

The scanner catches 100% of hidden injections and about 40% of visible plain-language ones, with 1% false alarms (held-out test set). Use it as a cheap first filter, not as your only defense.