# SLF Guardian

> SLF Guardian is an open-source MCP server. Safety checks an agent runs before it acts: packages, commands, prompt injection, links, code. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Website:** https://slfguardian.com/api
- **Repository:** https://github.com/slfguardian/slf-guardian-mcp
- **MCP Registry name:** io.github.slfguardian/slf-guardian-mcp
- **Listing updated:** 2026-11-16

## About

Safety checks an agent runs before it acts: packages, commands, prompt injection, links, code.

## Install

### Claude Code (Terminal)

```sh
claude mcp add slf-guardian-mcp --env SLF_API_KEY='<SLF_API_KEY>' -- uvx slf-guardian-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "slf-guardian-mcp": {
      "command": "uvx",
      "args": [
        "slf-guardian-mcp"
      ],
      "env": {
        "SLF_API_KEY": "<SLF_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "slf-guardian-mcp": {
      "command": "uvx",
      "args": [
        "slf-guardian-mcp"
      ],
      "env": {
        "SLF_API_KEY": "<SLF_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "slf-guardian-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "slf-guardian-mcp"
      ],
      "env": {
        "SLF_API_KEY": "<SLF_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "slf-guardian-mcp": {
      "command": "uvx",
      "args": [
        "slf-guardian-mcp"
      ],
      "env": {
        "SLF_API_KEY": "<SLF_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "slf-guardian-mcp": {
      "command": "uvx",
      "args": [
        "slf-guardian-mcp"
      ],
      "env": {
        "SLF_API_KEY": "<SLF_API_KEY>"
      }
    }
  }
}
```

## FAQ

### Is SLF Guardian free?

Yes. SLF Guardian is open source, so you can use and self-host it for free.

### How do I add SLF Guardian to Claude Code?

Run this command in your terminal: claude mcp add slf-guardian-mcp --env SLF_API_KEY='<SLF_API_KEY>' -- uvx slf-guardian-mcp

---
Source: https://ai-powered.com/mcp/slf-guardian
