A short, practical checklist for teams exposing tools to an AI agent over MCP: what to vet, what to log, and which checks belong before the action instead of after it.
Start from the action, not the model
Most MCP security advice is about the server: auth, sandboxing, transport. Those matter, but they do not describe the moment that costs money — the agent deciding to run something. Write the checklist around that moment.
The checklist
- Every tool call is attributable. One credential per agent, not per team, so a bad call has a name on it.
- Install-time code is treated as executable. A package that runs a postinstall script is code you are running, not a dependency you are importing.
- Fetched content is data, never instructions. A page that says "ignore previous instructions" is a payload, and the agent should be able to ask whether it saw one.
- Destructive commands are classified before execution.
rm -rf,drop tableandcurl | bashdeserve a verdict, not a guess. - Domains are checked at use. Age, resolution and registrar are cheap signals that catch throwaway infrastructure.
- A failed check is not a pass. Timeouts, 401s and rate limits must fail closed in the agent's policy.
- Results are structured. A verdict plus line-numbered findings is something an agent can act on; a paragraph of prose is not.
Where the checks live
Two options. Run them inside your own process, or call a service. Running them yourself means owning signature updates, package metadata and false positives forever. Calling a service means one network hop in a path that already has several.
SLF Guardian exposes the checklist as six MCP tools: audit_code, check_package, check_prompt, check_command, check_domain and scan_site. Static analysis only; nothing submitted is stored or executed.
What to log
Log the verdict, not the payload. Storing the code an agent was about to run turns your audit trail into a secret store, which is a bigger problem than the one you were solving.
Try it on a real call. The hosted MCP endpoint answers 50 calls per IP per day without a signup, then 0.01 USDC per call over x402 on Base.
Pricing and endpoint Repository
claude mcp add slf-guardian -- npx -y slf-guardian-mcp