Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words

SafeNode MCP Gateway

by sp3akversion 0.1.2i★ 0iRuns on your computerOfficial site ↗
Registry nameio.github.sp3ak/safenode-mcp-gateway

How to install

What it does

Policy proxy for MCP tool calls. A denied call never reaches the downstream server.

  • Connects Runs on your computer
  • Account or key Needs SAFENODE_API_KEY
  • Category Other

Why it ranks here

Lists are ordered by a usage score (out of 100) built from these parts

Popularity0/80GitHub stars or weekly downloads: the larger counts 60, the smaller 20
Freshness7/12Full marks for a release or code change within 30 days
Still answering0/8The cloud endpoint answered at the last check
Usage score7/100

Quality: Passed 3/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)

Install

Pick the AI app you use, then copy the settings.

Let your AI install it with one sentence

Please install SafeNode MCP Gateway. Follow https://mcp.popnx.com/i/sp3ak-safenode-mcp-gateway.md, show me the commands and wait for my OK before running them.

Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads

Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 14, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

You need a SafeNode MCP Gateway key (create it on the maker’s site) · Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

Let AI install it

Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server SafeNode MCP Gateway for Claude on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "safenode-gateway": { "command": "npx", "args": [ "-y", "safenode-mcp-gateway" ], "env": { "SAFENODE_API_KEY": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For SAFENODE_API_KEY, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the SafeNode MCP Gateway tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Sign up and create a SafeNode MCP Gateway key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the SafeNode MCP Gateway site ↗

  3. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  4. Paste these settings and save the file

    {
      "mcpServers": {
        "safenode-gateway": {
          "command": "npx",
          "args": [
            "-y",
            "safenode-mcp-gateway"
          ],
          "env": {
            "SAFENODE_API_KEY": "your-value"
          }
        }
      }
    }

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Quit Claude and open it again

  6. Try it

    Use SafeNode MCP Gateway and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using SafeNode MCP Gateway or shows a SafeNode MCP Gateway tool in the answer, you are connected

1 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • SAFENODE_BASE_URL Override the SafeNode API base URL. Defaults to https://safenode.tech.

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect SafeNode MCP Gateway yet

SafeNode MCP Gateway runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect SafeNode MCP Gateway

  • You need a SafeNode MCP Gateway key (create it on the maker’s site) · Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • You need a SafeNode MCP Gateway key (create it on the maker’s site) · Install Node.js on your computer first (one time)
  • You need a SafeNode MCP Gateway key (create it on the maker’s site) · Install Node.js on your computer first (one time)
  • You need a SafeNode MCP Gateway key (create it on the maker’s site) · Install Node.js on your computer first (one time)

B · Others in Other that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

You need a SafeNode MCP Gateway key (create it on the maker’s site) · Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server SafeNode MCP Gateway for Claude Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user safenode-gateway --env SAFENODE_API_KEY=your-value -- npx -y safenode-mcp-gateway 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For SAFENODE_API_KEY, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the SafeNode MCP Gateway tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Sign up and create a SafeNode MCP Gateway key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the SafeNode MCP Gateway site ↗

  3. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  4. Paste this command and press Enter

    claude mcp add --scope user safenode-gateway --env SAFENODE_API_KEY=your-value -- npx -y safenode-mcp-gateway

    Replace “your-value” with your key before pressing Enter

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Type /mcp in Claude Code

    You should see SafeNode MCP Gateway listed as connected

  6. Try it

    Use SafeNode MCP Gateway and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using SafeNode MCP Gateway or shows a SafeNode MCP Gateway tool in the answer, you are connected

1 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • SAFENODE_BASE_URL Override the SafeNode API base URL. Defaults to https://safenode.tech.

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

You need a SafeNode MCP Gateway key (create it on the maker’s site) · Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server SafeNode MCP Gateway for Cursor on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "safenode-gateway": { "command": "npx", "args": [ "-y", "safenode-mcp-gateway" ], "env": { "SAFENODE_API_KEY": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For SAFENODE_API_KEY, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the SafeNode MCP Gateway tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Sign up and create a SafeNode MCP Gateway key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the SafeNode MCP Gateway site ↗

  3. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  4. Fill in your key

    In the SafeNode MCP Gateway settings, SAFENODE_API_KEY is empty; add your key and save

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Open the AI chat in Cursor in Agent mode

  6. Try it

    Use SafeNode MCP Gateway and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using SafeNode MCP Gateway or shows a SafeNode MCP Gateway tool in the answer, you are connected

1 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • SAFENODE_BASE_URL Override the SafeNode API base URL. Defaults to https://safenode.tech.

Descriptions are as written by the maker.

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

You need a SafeNode MCP Gateway key (create it on the maker’s site) · Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server SafeNode MCP Gateway for VS Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "safenode-gateway": { "type": "stdio", "command": "npx", "args": [ "-y", "safenode-mcp-gateway" ], "env": { "SAFENODE_API_KEY": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For SAFENODE_API_KEY, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the SafeNode MCP Gateway tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Sign up and create a SafeNode MCP Gateway key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the SafeNode MCP Gateway site ↗

  3. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  4. Fill in your key

    In the SafeNode MCP Gateway settings, SAFENODE_API_KEY is empty; add your key and save

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Open the AI chat in VS Code in Agent mode

  6. Try it

    Use SafeNode MCP Gateway and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using SafeNode MCP Gateway or shows a SafeNode MCP Gateway tool in the answer, you are connected

1 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • SAFENODE_BASE_URL Override the SafeNode API base URL. Defaults to https://safenode.tech.

Descriptions are as written by the maker.

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use SafeNode MCP Gateway💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user safenode-gateway --env SAFENODE_API_KEY=your-value -- npx -y safenode-mcp-gateway

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "safenode-gateway": {
      "command": "npx",
      "args": [
        "-y",
        "safenode-mcp-gateway"
      ],
      "env": {
        "SAFENODE_API_KEY": "your-value"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "safenode-gateway": {
      "command": "npx",
      "args": [
        "-y",
        "safenode-mcp-gateway"
      ],
      "env": {
        "SAFENODE_API_KEY": "your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "safenode-gateway": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "safenode-mcp-gateway"
      ],
      "env": {
        "SAFENODE_API_KEY": "your-value"
      }
    }
  }
}

Values you fill in

  • SAFENODE_API_KEY secret required env
    SafeNode API key. Free tier at https://safenode.tech — no card required.
  • SAFENODE_BASE_URL env
    Override the SafeNode API base URL. Defaults to https://safenode.tech.

Descriptions are as written by the maker.

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
59/wk
Connection
Runs on your computer
Latest versioni
0.1.2
Categoryi
Other
Published to registryi
Aug 10, 2026
Code last changedi
Oct 18, 2026
Maker
sp3ak
Packages
npm: safenode-mcp-gateway
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 19, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account sp3ak, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed 32 days ago

  • ✓ Pass

    Has a licence

    Uses MIT

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Published vulnerabilities (OSV.dev)

No entries on OSV.dev for safenode-mcp-gateway@0.1.2

Checks only this package version, not every dependency · checked Nov 16, 2026

What we check → · JSON

Makers: ask for a re-check or report wrong info
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/sp3ak-safenode-mcp-gateway.svg)](https://mcp.popnx.com/en/servers/sp3ak-safenode-mcp-gateway)

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Otheri

  • More stars than 0% of the other 20653 servers in this category
  • Published to the registry more recently than 16% of the other 20653 servers in this category
  • Basic checks equal to or better than 99% of the other 20653 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is SafeNode MCP Gateway safe?

It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

You need to fill in: SAFENODE_API_KEY

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed 32 days ago, and the latest version (0.1.2) reached the registry 3 months ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.

What can I use instead?

In the same category: World Monitor, openstatus, Oh My Posh Validator, Strata, Jitsu

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

World Monitor

Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 100 tools.

by koala73Widely used★ 90.9KUpdated 3 days ago

Runs in the cloud✓ service owner · worldmonitor.app

openstatus

Manage monitors, status pages, incidents and maintenances in your openstatus workspace.

by openstatusHQWidely used★ 9.3KUpdated 2 months ago

Runs in the cloud✓ service owner · openstatus.dev

Oh My Posh Validator

Validate oh-my-posh configurations and segment snippets against the official schema.

by JanDeDobbeleerWidely used★ 23.8K Stars for the whole repoUpdated 30 days ago

Runs in the cloud✓ service owner · ohmyposh.dev

Strata

MCP server for progressive tool usage at any scale (see https://klavis.ai)

by Klavis-AIGrowing★ 5.8KUpdated 14 months ago

Runs in the cloudRepo archived✓ klavis.ai

Jitsu

Manage Jitsu data pipelines: destinations, streams, connections, functions, live events.

by jitsucomWidely used★ 5.1KUpdated 4 months ago

Runs in the cloud✓ service owner · jitsu.com
Compared with similar ones
This one
SafeNode MCP Gateway
World MonitoropenstatusOh My Posh ValidatorStrataJitsu
Runs whereInstalls on your computerRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to install
Needs a keyYesNoNoNoNoNo
Add with + in ClaudeNoNoNoNoNoNo
Basic checks3/34/44/44/41/44/4
LicenseMITAGPL-3.0AGPL-3.0MITApache-2.0MIT
PriceNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registry

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

SafeNode MCP Gateway

An MCP proxy that enforces policy on every tool call. The agent cannot route around it.

npx safenode-mcp-gateway

Why a proxy

An MCP server that exposes an evaluate_action tool is theatre. The model can choose not to call it, which means it enforces nothing.

This is a proxy. It sits between your MCP client (Claude Desktop, Claude Code, Cursor, any MCP host) and the MCP servers you already use. tools/list passes straight through, so the model sees exactly the tools it saw before. Every tools/call is evaluated against SafeNode *first*. A denial means the call never reaches the downstream server at all.

Claude Desktop ──► safenode-mcp-gateway ──► filesystem server

│ github server ▼ postgres server SafeNode API allow/warn/review/deny

Your agent needs no code changes. It does not know the gateway is there.

Get an API key — free tier, no card · Docs · Python SDK


Setup

1. Get an API key

Free at safenode.tech. Keys look like sn_....

2. Write a config

safenode-gateway.json — take the servers straight out of your existing MCP client config:

{

"failMode": "fail_closed", "payloadMode": "redacted", "logFile": "./safenode-decisions.jsonl", "servers": [ { "name": "filesystem", "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "/Users/you/projects"] } ], "tools": { "read_file": { "failMode": "fail_open" }, "write_file": { "payloadMode": "metadata_only" } } }

Do not put your API key in this file. Set SAFENODE_API_KEY in the environment — it takes precedence over the config, so the file stays safe to commit.

3. See what would be sent, before sending anything
SAFENODE_API_KEY=sn_... npx safenode-mcp-gateway --dry-run

Prints the exact JSON body that an evaluation would POST. No network call. This is the fastest way to satisfy yourself about what leaves your machine.

4. Point your MCP client at the gateway

Claude Desktop — claude_desktop_config.json:

{

"mcpServers": { "safenode": { "command": "npx", "args": ["-y", "safenode-mcp-gateway", "--config", "/absolute/path/to/safenode-gateway.json"], "env": { "SAFENODE_API_KEY": "sn_..." } } } }

Claude Code — .mcp.json in your project:

{

"mcpServers": { "safenode": { "command": "npx", "args": ["-y", "safenode-mcp-gateway", "--config", "./safenode-gateway.json"], "env": { "SAFENODE_API_KEY": "sn_..." } } } }

Cursor — ~/.cursor/mcp.json, same shape as Claude Desktop.

Replace your existing server entries with this one. The gateway spawns them itself, so listing them in both places would run each server twice.


What each decision does

DecisionBehaviour
allowForwarded. The downstream result is returned unchanged.
warnForwarded, with a [SafeNode warning] line prepended so the model *and* the human see it.
reviewNot forwarded. Returns a message saying approval is needed.
denyNot forwarded. Returns the human-readable reasons and the trace_id.

Denials come back as MCP tool *errors*, not transport failures, so the model sees why and can try something else instead of the host surfacing an opaque crash.

Fail behaviour

failMode decides what happens when SafeNode itself is unreachable.

fail_closed (default)Block the call.
fail_openForward it, unevaluated.
raiseCrash the gateway.

The gateway defaults to `fail_closed`, unlike the SafeNode SDKs, which default to `fail_open`. That difference is deliberate. An SDK wraps a developer's own code, where taking production down during a SafeNode outage loses the user forever. The gateway fronts arbitrary MCP tools it knows nothing about — filesystem writes, shell commands, payments — and silently letting all of that through the moment SafeNode is unreachable defeats the point of installing it.

Loosen it per tool for the read-only ones:

"tools": {

"read_file": { "failMode": "fail_open" }, "list_files": { "failMode": "fail_open" } }

Degraded decisions are logged to stderr and marked "degraded": true with a null traceId in the decision log, so they can never be counted as real policy decisions.

What data leaves your machine

For every tool call, the gateway sends: the tool name, the downstream server name, a session id, any static context from your config, and the tool arguments as the payload.

payloadMode controls the arguments:

fullSent verbatim.
redacted (default)Scrubbed client-side first.
metadata_onlyNo values at all — key names and hashes only.

Redaction covers emails, Luhn-validated credit cards, US SSNs, provider API key prefixes (sk-, ghp_, xoxb-, AKIA, AIza), bearer tokens, and PEM private key blocks. Values become [REDACTED: ].

Why redaction counts are always sent

Alongside the redacted payload, the gateway sends counts of what it removed:

"safenode_redactions": { "email": 2, "credit_card": 1 }

This is load-bearing. SafeNode's server-side sensitive_data rule matches patterns against payload *values*. If the gateway scrubbed those values and said nothing, a policy of "deny any action containing a card number" would silently start passing — the client-side privacy feature would have disabled the server-side security control. Reporting counts closes that: policy can act on the *presence* of a card number without ever receiving one.

If you use sensitive_data with patterns, pair it with a redaction_metadata rule.

These counts are self-reported. They raise the floor for an honest client; they are not a defence against a hostile one.

No telemetry

The gateway talks to exactly two things: the downstream MCP servers you configured, and the SafeNode API. No analytics, no phone-home, no postinstall scripts.

Local decision log

Set logFile to get a JSONL record of every decision, independent of the server-side audit trail — so you still have evidence of what your agent tried to do when the network was down:

{"timestamp":"2026-08-08T04:12:09.412Z","server":"filesystem","tool":"write_file","decision":"deny","degraded":false,"traceId":"9f1c…","reasons":["Path is outside the approved workspace."],"forwarded":false,"durationMs":143,"sessionId":"a3f1…"}

Configuration reference

KeyDefaultMeaning
apiKey—Prefer SAFENODE_API_KEY in the environment
baseUrlhttps://safenode.techFor staging
failModefail_closedfail_closed \fail_open \raise
payloadModeredactedfull \redacted \metadata_only
timeoutMs5000Evaluation request budget
logFilenullJSONL decision log path
prefixToolsfalseForce __ naming
servers[]requiredDownstream MCP servers
tools{}{}Per-tool overrides
context{}{}Static context on every evaluation

failMode, payloadMode and context can be set globally, per server, or per tool. Most specific wins.

tools. .bypass: true skips evaluation entirely for one tool. It does what it says — the call is forwarded with no policy check at all.

Tool name collisions

If two downstream servers export the same tool name, the gateway prefixes every tool with __ and logs a warning. Silently picking a winner would apply one server's policy to another server's tool, which is a security bug rather than a cosmetic one.

What this is not

  • Not a sandbox. It decides whether a call is forwarded. It does not contain the downstream server, restrict syscalls, or limit what that server can do once the call reaches it.
  • Not a prompt-injection detector. It evaluates the *action*, not the reasoning that produced it. If your agent has been talked into deleting a table, this can stop the delete — it will not tell you the agent was manipulated.
  • Not offline. Every tool call costs a round trip to the SafeNode API. There is no local policy evaluation.
  • Not a substitute for scoping the underlying servers. Still pass a filesystem server the narrowest root directory that works.
  • Not free of side effects. Every evaluation is recorded server-side and counts against your monthly quota.

Latency

Each gated tool call adds one round trip to the SafeNode API, with a 5000ms budget by default. Bypassed tools add nothing.

A measured p99 for the evaluate endpoint is not published yet, because it has not been measured under realistic load. When it has been, it will go here and in the docs rather than being estimated.

Docker

docker build -t safenode-mcp-gateway .

Running it with no arguments starts against a bundled demo config that proxies an included echo server, so you can see the proxy work without any setup:

docker run -i --rm safenode-mcp-gateway

The demo key is a placeholder, so tools/list passes through while any real tool call is denied by the fail_closed policy. For real use, mount your own config and supply a key:

docker run -i --rm \

-e SAFENODE_API_KEY=sn_... \ -v /path/to/safenode-gateway.json:/app/config.json \ safenode-mcp-gateway --config /app/config.json

-i is required. MCP speaks JSON-RPC over stdio, so without stdin attached the gateway has nothing to talk to.

Agent skill

SKILL.md teaches an agent to set the gateway up for you, moving your existing servers behind it, and how to behave when a call is blocked or held for review. Copy it into a folder in your agent's skills directory (for Claude Code, ~/.claude/skills/safenode-mcp-gateway/). The policy-authoring companion is in skill/safenode-policies/.

Requirements

Node 18+. One runtime dependency: @modelcontextprotocol/sdk.

Contributing

See CONTRIBUTING.md. Bug reports about enforcement gaps — anything that reaches a downstream server when it should have been blocked — are the most valuable thing you can file.

Security

See SECURITY.md. Please do not open public issues for vulnerabilities.

License

MIT. See LICENSE.