# Guard Brasil

> Guard Brasil is an open-source MCP server for security. Masks Brazilian CPF, CNPJ and other personal data in text before it reaches an AI. It can run locally on your machine or as a hosted remote server.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, self-hosted
- **Website:** https://egos.ia.br/portas/
- **Repository:** https://github.com/enioxt/egos/tree/HEAD/packages/guard-brasil-mcp
- **MCP Registry name:** io.github.enioxt/guard-brasil-mcp
- **Categories:** security
- **Listing updated:** 2026-11-15

## About

Brazilian personal identifiers have predictable shapes, and this server looks for them before text is passed to a model. Its registry entry names CPF, CNPJ, RG and email addresses, and ties the purpose to LGPD, Brazil's data protection law. The product pages are written in Portuguese.

There are two ways to connect. A hosted Streamable HTTP endpoint at guard.egos.ia.br needs no token and offers three tools, `guard_inspect`, `guard_scan_pii` and `guard_check_safe`. Alternatively, `npx -y @egosbr/guard-brasil-mcp` runs it locally over stdio. The underlying library is published on npm under the MIT licence as `@egosbr/guard-brasil`.

It belongs to the wider EGOS set of connectors, which the maker describes as read-only and which also includes a Claude Code plugin and an A2A agent. A public page lists measured results and the command to reproduce them.

## Features

- **Brazilian ID detection:** Targets CPF, CNPJ, RG and email addresses in text.
- **Masking before the model:** Removes personal data so it is not sent to an AI provider.
- **Hosted or local:** Use the token-free hosted endpoint or run the npm package over stdio.
- **Three focused tools:** Inspect text, scan for personal data, and check whether text is safe.
- **MIT library:** The core package is open source.

## Good for

- Cleaning customer text before sending it to an LLM
- Checking whether a document contains CPF or CNPJ numbers
- Supporting LGPD-minded data handling in AI workflows
- Adding a privacy check in front of an agent pipeline

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http guard-brasil-mcp https://guard.egos.ia.br/mcp
```

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

```sh
https://guard.egos.ia.br/mcp
```

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

```json
{
  "mcpServers": {
    "guard-brasil-mcp": {
      "url": "https://guard.egos.ia.br/mcp"
    }
  }
}
```

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

```json
{
  "servers": {
    "guard-brasil-mcp": {
      "type": "http",
      "url": "https://guard.egos.ia.br/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "guard-brasil-mcp": {
      "serverUrl": "https://guard.egos.ia.br/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "guard-brasil-mcp": {
      "type": "http",
      "url": "https://guard.egos.ia.br/mcp"
    }
  }
}
```

## Tools

- `guard_inspect`: Inspect text for personal data.
- `guard_scan_pii`: Scan text for personal data.
- `guard_check_safe`: Check whether text is safe to send to an AI.

## FAQ

### Do I need an API token?

Not for the hosted endpoint, which the site lists as token-free.

### How do I run it locally?

Run npx -y @egosbr/guard-brasil-mcp for stdio.

### What does it detect?

The registry entry names CPF, CNPJ, RG and email.

### What is the licence of the library?

The npm package @egosbr/guard-brasil is MIT licensed.

### Is Guard Brasil free?

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

### How do I add Guard Brasil to Claude Code?

Run this command in your terminal: claude mcp add --transport http guard-brasil-mcp https://guard.egos.ia.br/mcp

### What are the best alternatives to Guard Brasil?

The closest alternatives to Guard Brasil are REA, Agent Roast, Midplane, Leash and Tinplate Edge AI Safety, Security & EU Compliance.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Agent Roast](https://ai-powered.com/mcp/agent-roast): Agent Roast is an open-source MCP server for developer tools.
- [Midplane](https://ai-powered.com/mcp/midplane): Midplane is an open-source MCP server for databases.
- [Leash](https://ai-powered.com/mcp/leash): Leash is a free MCP server for security.
- [Tinplate Edge AI Safety, Security & EU Compliance](https://ai-powered.com/mcp/tinplate-edge-ai-safety-security-and-eu-compliance): Tinplate Edge AI Safety, Security & EU Compliance is a freemium MCP server for security.
- [SecureCloud](https://ai-powered.com/mcp/securecloud): SecureCloud is a free MCP server for security.
- [Eikino](https://ai-powered.com/mcp/eikino): Eikino is a freemium MCP server for security.
- [SynomosAI Governance MCP](https://ai-powered.com/mcp/synomosai-governance-mcp-2): SynomosAI Governance MCP is an open-source MCP server for security.

---
Source: https://ai-powered.com/mcp/guard-brasil
