grindfree-agent-security
AskHuman can send human-in-the-loop approval requests to Discord, letting a human approve, deny, or edit an agent action via a one-tap link; decisions can be retrieved by polling, long-polling, or signed callback.
AskHuman can deliver approval requests through ntfy notifications, enabling one-tap approve/deny/edit decisions for agent actions, with results available by polling, long-polling, or signed callback.
AskHuman can send approval requests to Slack so a human can approve, deny, or edit an agent action via a one-tap link; decisions can be fetched by polling, long-polling, or signed callback.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
GrindFree Agent Security
MCP server + client snippets for GrindFree’s pay-per-call agent security APIs on Base:
Service | Endpoint | Price | What it does |
PromptShield |
| $0.002 | Prompt-injection screen + HTML→LLM clean text |
CrawlSafe |
| $0.002 | robots.txt / X-Robots-Tag crawl gate (SSRF-guarded; not malware scanning) |
ToolGuard |
| $0.002 | Pre-tool-call |
CommandGuard |
| $0.001 | Shell command + SQL check before execution: |
MemoryGuard |
| $0.002 | Screen content before it is written to agent memory (planted instructions, persistence, secrets/PII) |
WireShield |
| $0.002 | Outbound leak check on agent output (zero-click image exfil, URL smuggling, canaries, prompt leakage) |
DocShield |
| $0.004 | Hidden instructions in PDF / DOCX / XLSX / PPTX / HTML / Markdown before the agent reads them |
SafeRead |
| $0.003 | Fetch a URL as clean Markdown with hidden text and prompt injections removed or flagged (SSRF-guarded; HTML, text, JSON, PDF) |
AskHuman |
| $0.03 | Human-in-the-loop approval: one-tap approve/deny/edit link (ntfy, Slack, Discord, webhook); decision by poll, long-poll or signed callback; fails closed |
TrifectaGate |
| $0.002 | Session exfiltration gate: private data + untrusted content + outbound action → allow / review / block (sticky per-session taint, URL smuggling, secrets in payload) |
Price: per call in USDC (table above) on Base (eip155:8453) via x402 v2.
Wallet: the caller’s Base USDC wallet pays. This repo never ships GrindFree keys.
Contact: rob@grindfree.net · @grindfreelabs
Install / run the MCP server (stdio)
git clone https://github.com/ronin93/grindfree-agent-security.git
cd grindfree-agent-security/mcp-server
npm installSet the caller’s funded Base USDC key in the MCP host env (never commit it):
export X402_PRIVATE_KEY=0xYOUR_BASE_USDC_PRIVATE_KEY
# PRIVATE_KEY is also accepted
node src/index.jsClaude Desktop / Cursor-style config:
{
"mcpServers": {
"grindfree-agent-security": {
"command": "node",
"args": ["/absolute/path/to/grindfree-agent-security/mcp-server/src/index.js"],
"env": {
"X402_PRIVATE_KEY": "0xYOUR_KEY"
}
}
}
}MCP tools
promptshield_screen/promptshield_cleancrawlsafe_checktoolguard_evaluate— your agent must enforce allow/review/deny before executing the tool; this API cannot stop a bypasscommandguard_command/commandguard_sql— check shell commands and SQL before running themmemoryguard_screen— check content before saving it to long-term memorywireshield_scan— check agent output before rendering/sending itdocshield_scan— check a local file (path), base64 bytes, or HTML/Markdown for hidden instructions (max 3 MB)grindfree_discovery— unpaid 402 / discovery probe (no spend)
Related MCP server: halowerk-mcp
Docker
A root Dockerfile builds the stdio MCP server. The wallet is supplied at runtime, never baked in:
docker build -t grindfree-agent-security .
docker run --rm -i -e X402_PRIVATE_KEY=0xYOUR_BASE_USDC_PRIVATE_KEY grindfree-agent-securityglama.json lists ronin93 as maintainer so the Glama listing can be claimed (requires a one-time GitHub sign-in on glama.ai).
HTTP snippets (no MCP)
examples/typescript-x402-fetch.ts— official@x402/fetch+@x402/evmexamples/python-x402.py— unpaid probes + paid hookexamples/langchain-tool.py— LangChain-style wrappers
Unpaid challenge (no wallet):
curl -sS -D - -o /tmp/ps402.json -X POST https://promptshield.grindfree.net/v1/screen \
-H 'content-type: application/json' \
-d '{"content":"hi","format":"text"}'
# Expect HTTP 402 + PAYMENT-REQUIREDHonest limits
Heuristic / policy layers — not a full security program.
CrawlSafe is not malware, phishing, or legal/ToS advice.
All guards are deterministic rule packs (no LLM), so they are fast and cheap but can miss novel phrasing; decisions are advisory and your code must enforce block/deny.
DocShield parses structure and text; it does not OCR images or render pages, and legacy .doc/.xls/.ppt return 415 (not charged).
SafeRead does not run JavaScript or OCR images; pages that discuss prompt injection may have example blocks removed (use
mode:"flag"). Blocked URLs, failed fetches and unsupported types are not charged.AskHuman asks; it does not enforce: run the action only when status is
approved(oredited, usingedited_args). Invalid requests and failed notifications are not charged.ToolGuard returns a decision; the caller/adapter must enforce it before tool execution. Missing policy →
review. Not an exfiltration guarantee.ToolGuard: always enforce allow|review|deny in your adapter before tool execution (the API cannot stop a bypass). GrindFree has confirmed funded settlement + HTTP 200 delivery on
/v1/evaluatevia a self-funded Base USDC test; still verify with your own wallet in production.
License
MIT — see LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Paid MCP tools behind one endpoint. Agents pay per call in USDC on Base via x402.
Paid MCP tools for URL payment-safety scanning and provider recommendations; USDC on Base via x402.
Pay-per-use MCP tools for AI agents. USDC on Base via x402. No API keys.
28 agent tools via x402: crypto data, tx checks, web fetch. MCP pays Base USDC; HTTP adds 3 rails.
Related MCP Servers
AlicenseNot gradedqualityDmaintenanceEnables MCP clients to use paid tools for secret scanning, agent-config auditing, and OG image rendering, with payments handled over the x402 protocol on Base.MIT
halowerk-mcpofficial
AlicenseAqualityDmaintenanceProvides access to 70 paid APIs as MCP tools with per-call and session budgets, paying via x402/USDC on Base without requiring an account or login. Includes a built-in allowlist of hosts and safe defaults to prevent unintended payments.1489 npmMIT- FlicenseNot gradedqualityCmaintenanceEnables AI agents to access 11 paid x402 endpoints as standard MCP tools, paying per call in USDC on Base without API keys, covering chat, code, vision, embeddings, crypto prices, weather, geolocation, forex, and WHOIS data.-
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to access pay-per-call onchain and URL safety APIs over MCP, covering transaction explanations, token approval checks, address inspection, contract risk heuristics, URL safety, gas snapshots, ENS resolution, calldata decoding, and wallet portfolio data. Payments are handled per call in USDC on Base via x402, with no signup or API key required.1MIT