Back to Browse

Grindfree Agent Security MCP Server

SecurityLow Risk9.7MCP RegistryLocal
Free

Server data from the Official MCP Registry

Pay-per-call agent security (x402): injection, tools, shell/SQL, memory, leaks, docs, safe reads

About

Pay-per-call agent security (x402): injection, tools, shell/SQL, memory, leaks, docs, safe reads

Security Report

9.7
Low Risk9.7Low Risk

Valid MCP server (2 strong, 4 medium validity signals). No known CVEs in dependencies. ⚠️ Package registry links to a different repository than scanned source. Imported from the Official MCP Registry. 1 finding(s) downgraded by scanner intelligence.

8 files analyzed · 1 issue found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

file_system

Check that this permission is expected for this type of plugin.

HTTP Network Access

Connects to external APIs or services over the internet.

env_vars

Check that this permission is expected for this type of plugin.

database

Check that this permission is expected for this type of plugin.

Shell Command Execution

Runs commands on your machine. Be cautious — only use if you trust this plugin.

What You'll Need

Set these up before or after installing:

Caller's own Base USDC EVM private key (0x…). Used only by the local MCP host to settle x402 payments. Never a GrindFree key; never commit this value.Required

Environment variable: X402_PRIVATE_KEY

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "agent-security-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@grindfree/agent-security-mcp"
      ],
      "env": {
        "X402_PRIVATE_KEY": "your-x402-private-key-here"
      }
    }
  }
}

Some servers take additional arguments. See the repository for details.

Documentation

View on GitHub

From the project's GitHub README.

GrindFree Agent Security

MCP server + client snippets for GrindFree’s pay-per-call agent security APIs on Base:

ServiceEndpointPriceWhat it does
PromptShieldPOST https://promptshield.grindfree.net/v1/screen · /v1/clean$0.002Prompt-injection screen + HTML→LLM clean text
CrawlSafePOST https://crawlsafe.grindfree.net/v1/check$0.001robots.txt / X-Robots-Tag crawl gate (SSRF-guarded; not malware scanning)
ToolGuardPOST https://toolguard.grindfree.net/v1/evaluate$0.002Pre-tool-call allow | review | deny policy gate
CommandGuardPOST https://commandguard.grindfree.net/v1/command · /v1/sql$0.001Shell command + SQL check before execution: allow | warn | block
MemoryGuardPOST https://memoryguard.grindfree.net/v1/screen$0.002Screen content before it is written to agent memory (planted instructions, persistence, secrets/PII)
WireShieldPOST https://wireshield.grindfree.net/v1/scan$0.002Outbound leak check on agent output (zero-click image exfil, URL smuggling, canaries, prompt leakage)
DocShieldPOST https://docshield.grindfree.net/v1/scan$0.004Hidden instructions in PDF / DOCX / XLSX / PPTX / HTML / Markdown before the agent reads them
SafeReadPOST https://saferead.grindfree.net/v1/read$0.002Fetch a URL as clean Markdown with hidden text and prompt injections removed or flagged (SSRF-guarded; HTML, text, JSON, PDF). Benchmark
SafeRead plainPOST https://saferead.grindfree.net/v1/fetch$0.001Plain read: URL as clean Markdown, no injection screening
SafeRead WatchPOST https://saferead.grindfree.net/v1/watch$0.002 / URLDaily change detection: each page read safely and returned as new / changed / unchanged with only the added sections. Page text never stored. Daily safe digest recipe
DocReadPOST https://docread.grindfree.net/v1/convert (also GET ?url=)$0.003Convert any document (PDF, DOCX, XLSX, PPTX, HTML, text; URL or upload) to clean Markdown for AI, with hidden text and prompt injections stripped and a removal report
AskHumanPOST https://askhuman.grindfree.net/v1/request$0.03Human-in-the-loop approval: one-tap approve/deny/edit link (ntfy, Slack, Discord, webhook); decision by poll, long-poll or signed callback; fails closed
ShipCheckPOST https://shipcheck.grindfree.net/v1/check$0.01 / runOne CI call for an agent repo: secrets, prompt injection in agent instructions, unpinned/poisoned MCP servers, risky commands; SARIF. GitHub Action
TrifectaGatePOST https://trifectagate.grindfree.net/v1/check$0.002Session 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.

Spending a budget on GrindFree

  • Know the price before paying: every service has a free /pricing.json and a free /quote (POST {"calls":[{"path":"/v1/watch","count":30,"body":{"urls":[...]}}],"budget_usd":1} → exact total, whether it fits, runs affordable). Every 402 carries X-Price-USD and X-Max-Charge-USD; paid 200s carry X-Charged-USD.
  • Price guarantee: prices will not increase without at least 30 days' notice, published in each service's /pricing.json (price_guarantee: {no_increase_without_notice_days: 30, since: "2026-11-20"}) and llms.txt.
  • Only success is charged: 4xx/5xx responses are never settled. All prices are fixed per call or per URL, far below the common $1-per-payment client cap.
  • What $1 buys: 500 safe page reads, 1,000 plain fetches, 500 watched pages, 100 ShipCheck CI runs, 1,000 shell-command checks, 250 document scans, 33 human approvals.
  • Proof: all 16 previously listed GrindFree routes are graded A by SettleWatch (independent settlement and uptime monitor, Nov 19 2026); SafeRead removed 129/129 hidden injections with 0/23 false positives in the open benchmark (rules were tuned on that corpus; 65% and 72% on untuned hold-out sets).

Recipes

Contact: rob@grindfree.net · @grindfreelabs


Install / run the MCP server (stdio)

MCP 0.10.0 (23 tools) is on npm and the MCP Registry (io.github.ronin93/grindfree-agent-security):

X402_PRIVATE_KEY=0xYOUR_BASE_USDC_PRIVATE_KEY npx -y @grindfree/agent-security-mcp

From source:

git clone https://github.com/ronin93/grindfree-agent-security.git
cd grindfree-agent-security/mcp-server
npm install

Set 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.js

Claude Desktop / Cursor-style config:

{
  "mcpServers": {
    "grindfree-agent-security": {
      "command": "npx",
      "args": ["-y", "@grindfree/agent-security-mcp"],
      "env": {
        "X402_PRIVATE_KEY": "0xYOUR_KEY"
      }
    }
  }
}

MCP tools

  • promptshield_screen / promptshield_clean
  • crawlsafe_check
  • toolguard_evaluate — your agent must enforce allow/review/deny before executing the tool; this API cannot stop a bypass
  • commandguard_command / commandguard_sql — check shell commands and SQL before running them
  • memoryguard_screen — check content before saving it to long-term memory
  • wireshield_scan — check agent output before rendering/sending it
  • docshield_scan — check a local file (path), base64 bytes, or HTML/Markdown for hidden instructions (max 3 MB)
  • saferead_read — fetch a web page as clean Markdown with hidden text and prompt injections removed (honours robots.txt)
  • saferead_fetch — plain read: a web page as clean Markdown for $0.001, no injection screening (use saferead_read for untrusted pages)
  • saferead_read_batch — up to 10 web pages as clean Markdown in one call ($0.002 per URL, all-or-nothing)
  • commandguard_check_and_approve — optional add-on: check a command or SQL and, if warned or blocked, get a human approve/deny link via AskHuman ($0.03)
  • saferead_search — search the web without prompt injection ($0.02 per search): ranked sources plus the top 3 pages as clean Markdown, per-page injection flag (search results by You.com)
  • saferead_watch — check pages for changes on a schedule ($0.002 per URL): new / changed / unchanged, only added sections, injections removed
  • shipcheck_scan — agent-repo security check for CI ($0.01 per run): secrets, instruction-file injection, MCP config risks, risky commands; SARIF
  • grindfree_quote — free price quote and budget fit for planned calls (no wallet needed)
  • docread_convert — convert PDF to Markdown (also DOCX/XLSX/PPTX/HTML; url, local path, base64 or inline content), injections stripped, with a removal report (max 3 MB)
  • docread_tables — extract tables from PDF/DOCX/XLSX/PPTX/HTML to typed JSON ($0.004)
  • trifectagate_check / askhuman_request / askhuman_status — exfiltration gate and human approval
  • grindfree_discovery — unpaid 402 / discovery probe (no spend)

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

glama.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/evm
  • examples/python-x402.py — unpaid probes + paid hook
  • examples/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-REQUIRED

Honest 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 (or edited, using edited_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/evaluate via a self-funded Base USDC test; still verify with your own wallet in production.

License

MIT — see LICENSE.

Reviews

No reviews yet

Be the first to review this server!