# Server and secret guardrails

> Server and secret guardrails is an open-source MCP server for security. Local checks for sudo, systemd, sshd, ufw and secret leaks before an agent runs commands. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Linux, macOS, self-hosted
- **Website:** https://testedtemplates.com/code/mcp-server/
- **MCP Registry name:** com.testedtemplates/ops-guardrails
- **Categories:** security, developer tools
- **Listing updated:** 2026-11-16

## About

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.

## Features

- **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

## Install

### Claude Code (Terminal)

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

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://testedtemplates.com/mcp
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "ops-guardrails": {
      "url": "https://testedtemplates.com/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

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

### Windsurf (~/.codeium/windsurf/mcp_config.json)

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

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

- `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

## 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

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/server-and-secret-guardrails
