Skip to main content
Glama

mcp-agent-shield

teylerboal-dev/mcp-agent-shield MCP server

Zero-dependency MCP Server & x402 (Base USDC) Pay-Per-Call Security API for AI Coding Agents.

Protect Claude Code, Cursor, Codex, Windsurf, and autonomous agents from indirect prompt-injection attacks and fake GitHub bounties — installable in 10 seconds as an MCP server or deployable as an x402 pay-per-call Base USDC micro-API.

1. Install as an MCP Server (Claude Desktop / Cursor / Antigravity)

{
  "mcpServers": {
    "agent-shield": {
      "command": "node",
      "args": ["/path/to/mcp-agent-shield/bin/mcp-server.mjs"]
    }
  }
}

Exposes:

  • scan_prompt_injection — blocks system-prompt exfiltration, secret-stealing curl commands, hidden HTML comments, and Unicode tag smuggling.

  • get_clean_bounties — fetches the live 24/7 anti-honeypot bounty feed from BountyRadar.

Related MCP server: bounty-mcp

2. Run as an x402 Pay-Per-Call Micro-API (Base USDC)

PORT=4020 npm run start:x402
  • Discovery manifest: GET /.well-known/x402.json

  • POST /v1/scan — $0.005 USDC on Base (HTTP 402 challenge → 0x1Dc13865aAD54C5ae7faD363595bC7ed087c69B9)

  • GET /v1/bounties — $0.01 USDC on Base

3. Pro Ruleset & Live Web Sandboxes (Direct Base / ETH USDC)

  • Live Prompt-Injection Sandbox & GitHub Action: PromptShield — upgrade to the Pro Enterprise Ruleset ($29 USDC lifetime) for 50+ zero-day agent-hijacking signatures.

  • 24/7 Live Anti-Honeypot Bounty Feed: BountyRadar — Pro Feed ($19/mo or $49 USDC lifetime) with real-time alerts and pre-flight repo safety audits.

  • Direct Base / Ethereum / Arbitrum / Optimism USDC Checkout: 0x1Dc13865aAD54C5ae7faD363595bC7ed087c69B9 (include your GitHub handle or tx hash in an Issue/Discussion to receive your Pro license key automatically).

Tests

npm test

License

MIT

Available Tools

2 tools
get_clean_bountiesA
Read-onlyIdempotent

Fetch the latest anti-honeypot, pre-scored GitHub open-source bounty feed from BountyRadar. Use when discovering paid GitHub issues filtered for maintainer responsiveness and payout reliability. Returns structured bounty listings with repo, reward, and quality score.

Inputs: limit.

scan_prompt_injectionA
Read-onlyIdempotent

Scan untrusted GitHub issue text, PR diffs, READMEs, or tool output for indirect prompt-injection, instruction override, and secret-exfiltration patterns before an AI agent acts on it. Returns a deterministic ALLOW/WARN/BLOCK verdict, risk score (0-100), and matched rule IDs without modifying any external state.

Inputs: text (required), source.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 2 tools

    Disambiguation4/5

    The two tools have completely distinct purposes: one scans text for prompt-injection risk and the other fetches a bounty feed. There is no risk of confusing them, though the pairing itself is conceptually unrelated, which makes the server's identity harder to grasp than the individual tools.

    Naming Consistency5/5

    Both names follow a clean snake_case verb_noun pattern (scan_prompt_injection, get_clean_bounties). The prefixes 'scan_' and 'get_' accurately signal the action type.

    Tool Count3/5

    Two tools is thin for a server that brands itself as an agent security shield. The surface is borderline: a single scanning operation plus one unrelated data-feed tool does not feel like a complete product scope.

    Completeness2/5

    The 'shield' domain is covered by only one operation—no policy/rule configuration, batch scanning, sanitization, or verdict history/logging—leaving obvious agent follow-up dead ends. The second tool (bounty discovery) is unrelated to shielding and does not fill any of those gaps.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to scan projects for leaked secrets and manage security incidents using GitGuardian's comprehensive API. It supports automated secret detection, honeytoken creation, and remediation workflows to secure codebases without context switching.
      44
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables AI agents to find and query real-time GitHub coding bounties with built-in scam filtering, supporting listing, matching, and detailed bounty retrieval.
      4
      49 npm
      Apache 2.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables active deception for AI agents by injecting decoy honeypot tools that detect indirect prompt injection attempts, instantly terminate hostile sessions, and seal cryptographic incident evidence.
      Apache 2.0
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI coding agents to inspect GitHub repositories and shell commands for download-and-execute payloads, obfuscation, typosquatted dependencies, autorun hooks, and fake-star signals before following or running them.
      3
      MIT