Skip to content
MCP server

Server and secret guardrails

Local checks for sudo, systemd, sshd, ufw and secret leaks before an agent runs commands

Install
Pricing
Open source
Platforms
CLI, Linux, macOS
Runs
Remotely
Version
1.1.0
Listing updated
1 day ago

About Server and secret guardrails

Server and secret guardrails is an open-source MCP server for security. It runs as a hosted remote server, so there is nothing to install locally.

This single-file Python server gives a coding agent three deterministic pre-flight checks before it touches a server. It has zero pip dependencies, runs locally over stdio and is MIT licensed. The registry's remote URL is an index page listing the checks and downloads; it does not accept units, sudoers files or secrets, so the checks run on your machine and nothing is uploaded.

The first tool audits systemd units, sudoers, sshd_config, ufw rules and docker-compose snippets for issues such as passwordless root, missing SSH allow rules, StartLimitIntervalSec mistakes and Docker ports that bypass ufw. The second scans commands, configs and git diffs for .env bypasses, tokens visible in process lists, API key formats and two prompt-injection bounty traps. The third rewrites a curl call that puts tokens in arguments into a safer stdin form.

The vendor also sells paid template kits at $9, $19 and $39 for enforcing guardrails.

Install

Run in a terminal

claude mcp add --transport http ops-guardrails https://testedtemplates.com/mcp

Add to Settings → Connectors → Add custom connector

https://testedtemplates.com/mcp
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "ops-guardrails": {
      "url": "https://testedtemplates.com/mcp"
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "ops-guardrails": {
      "type": "http",
      "url": "https://testedtemplates.com/mcp"
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "ops-guardrails": {
      "serverUrl": "https://testedtemplates.com/mcp"
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "ops-guardrails": {
      "type": "http",
      "url": "https://testedtemplates.com/mcp"
    }
  }
}

Tools this server provides (3)

Taken from the project documentation; the running server may differ.

audit_server_snippet
Checks systemd, sudoers, sshd, ufw and docker-compose snippets
scan_secret_leak
Scans commands, configs or diffs for secret leaks
rewrite_safe_curl
Rewrites curl calls to keep tokens out of arguments

What it does

Server config audit
Checks systemd, sudoers, sshd, ufw and compose snippets.
Secret leak scan
Finds .env bypasses and key formats in commands and diffs.
Safe curl rewrite
Moves tokens out of argv into stdin.
Zero dependencies
Single Python file, Python 3.8 or later.
Runs locally
Nothing is uploaded; URLs are refused.
Claude Desktop bundle
Installable .mcpb file.

Good for

  • Review a systemd unit before an agent applies it
  • Scan a git diff for leaked secrets
  • Prevent tokens appearing in ps output
  • Check that Docker ports do not bypass ufw

Pricing

Open source

Free MIT server; optional kits $9, $19 and $39

Prices change. Check testedtemplates.com before you buy.

Server and secret guardrails FAQ

Is it free?

The server is free under the MIT licence; template kits are paid.

Does it upload my files?

No, the checks run on your machine.

What does it need?

Python 3.8 or later.

What does a clean result mean?

The site says a clean result does not prove safety.

Is Server and secret guardrails free?

Yes. Server and secret guardrails is open source, so you can use and self-host it for free.

How do I add Server and secret guardrails to Claude Code?

Run this command in your terminal: claude mcp add --transport http ops-guardrails https://testedtemplates.com/mcp

What are the best alternatives to Server and secret guardrails?

The closest alternatives to Server and secret guardrails are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

Alternatives to Server and secret guardrails

  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 464K GitHub stars
    • Developer tools
  2. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 48.7K GitHub stars
    • Knowledge and memory
  3. GitHub

    MCP server

    Official MCP server connecting AI assistants to GitHub repos, issues and workflows

    Not checked yet
    • Remote
    • Open source
    • 34.5K GitHub stars
    • Developer tools
  4. MCP toolkit giving coding agents symbol-level code retrieval and editing

    Runs locally
    • Open source
    • 31.5K GitHub stars
    • Developer tools
  5. XERJ

    MCP server

    Local search engine for AI agents with cited answers over your code and docs

    Runs locally
    • Open source
    • 19.2K GitHub stars
    • Knowledge and memory
  6. Ouroboros

    MCP server

    Spec-first layer that pins requirements and verifies results of AI coding agent work

    Runs locally
    • Open source
    • 6.4K GitHub stars
    • Developer tools