Skip to main content
Glama

mcp-agent-shield

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

Tests

npm test

License

MIT

Tool Schema Changelog

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

Loading tool schema changelog…

    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
      56 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