Works with the AI Agents you already use
safenode mcp gateway
Implement a secure proxy gateway to enforce policies, audit logs, and human-in-the-loop approvals for MCP tools.
Free
safenode mcp gateway
Example session with this skill installed
I need to secure my filesystem and github MCP tools in Claude Desktop. How do I set up the SafeNode gateway to block dangerous writes but allow read-only tools to fail open?
- Read your context and instructions
- Compiled the safenode mcp gateway
I will now generate the configuration for the SafeNode MCP Gateway and explain how to update your Claude Desktop settings.
SafeNode Gateway Configuration
{
"failMode": "fail_closed",
"payloadMode": "redacted",
"logFile": "./safenode-decisions.jsonl",
"servers": [
{
"name": "filesystem",
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/Users/admin/projects"]
},
{
"name": "github",
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "your_token_here" }
}
],
"tools": {
"read_file": { "failMode": "fail_open" },
"list_files": { "failMode": "fail_open" },
"search_repositories": { "failMode": "fail_open" }
}
}
Next steps
- Create a
safenode-gateway.jsonfile using the configuration above, ensuring you use absolute paths for the directories and log files. - Update your
claude_desktop_config.jsonby replacing thefilesystemandgithubentries with a singlesafenodeentry pointing tonpx safenode-mcp-gateway. - Add your
SAFENODE_API_KEYto your system environment variables and restart Claude Desktop to activate enforcement.
Connects securely to your tools. The creator never sees your data.
About this skill
Stop worrying about agents executing dangerous shell commands or deleting database records without oversight. Standard AI agents have direct, unguarded access to your MCP tools, making it impossible to enforce organizational policies or maintain an audit trail.
This skill implements the SafeNode MCP Gateway, a proxy that sits between your agent client and its MCP servers. It evaluates every tool call against your defined policies before execution. If a tool call is risky, the gateway blocks it or holds it for human review. Because it functions as a proxy rather than a tool itself, the agent cannot choose to bypass the check.
What it does
- Enforce guardrails by intercepting tool calls and applying allow, warn, review, or deny logic.
- Configure fail-safe modes to ensure tool calls are blocked by default if the safety API is unreachable.
- Redact sensitive data from tool arguments to ensure PII or secrets never leave your local environment.
- Generate audit logs that record every tool decision and execution attempt for compliance tracking.
- Proxy multiple servers through a single gateway to centralize security across filesystem, database, and API tools.
How it works
- Inventory existing servers by reading configuration files from Claude Desktop, Claude Code, or Cursor.
- Generate gateway configuration including server definitions, fail modes, and data redaction levels.
- Perform dry runs to verify what metadata is sent for policy evaluation without making actual network calls.
- Update client configuration to route all MCP traffic through the proxy for mandatory enforcement.
Frameworks & tools
This skill requires Node.js 18 or newer and uses the safenode-mcp-gateway package. It works with any MCP-compliant host including Claude Desktop, Claude Code, and Cursor.
Why this beats prompting it yourself
Manual prompts asking an agent to "be safe" are easily ignored or bypassed by the model. This skill implements a structural proxy that the agent cannot circumvent, providing a hard boundary that functions even if the model is compromised or confused.
Use cases
- Restrict filesystem access to specific project directories while blocking system-level modifications.
- Require human approval for destructive operations like database drops or production deployments.
- Audit agent activity across team-wide shared tools to maintain security compliance.
Known limitations
Requires an active internet connection for policy evaluation and a SafeNode API key. It is not a code sandbox or a prompt injection detector. Policy evaluations count against a monthly API quota.
How to use
Skills on Agensi run inside your AI agent. Copy the prompt, paste it into your agent, and it connects to Agensi and installs this skill for you. If a payment is needed, your agent shows it to you first.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free forever
No account required to browse
Trust & safety
Security scanned
Verified clean 2 days ago
- Free to download with an account
Requires