Skip to content
MCP server

Guard Brasil

Masks Brazilian CPF, CNPJ and other personal data in text before it reaches an AI

Install
Pricing
Open source
Platforms
CLI, API, self-hosted
Runs
Locally or Remotely
Version
0.2.3
Listing updated
2 days ago

About Guard Brasil

Guard Brasil is an open-source MCP server for security. It can run locally on your machine or as a hosted remote server.

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.

Install

Run in a terminal

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

Add to Settings → Connectors → Add custom connector

https://guard.egos.ia.br/mcp
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "guard-brasil-mcp": {
      "url": "https://guard.egos.ia.br/mcp"
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

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

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

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

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

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

Tools this server provides (3)

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

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.

What it does

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

Pricing

Open source

MIT-licensed package; hosted endpoint listed as token-free

Prices change. Check egos.ia.br before you buy.

Guard Brasil 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 to Guard Brasil

  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. Agent Roast

    MCP server

    Offline review that flags agent changes which weaken tests, assertions or CI

    Runs locally
    • Open source
    • 4 Hacker News points
    • Developer tools
  3. Midplane

    MCP server

    Postgres gateway for AI agents with table grants, column masking and approval for writes

    Runs locally
    • Open source
    • 5 GitHub stars
    • Databases
  4. Leash

    MCP server

    Review what your AI touched, approve risky actions and undo supported changes

    • 1 tool
    • Remote
    • Free
    • 1 GitHub star
    • Security
  5. SecureCloud

    MCP server

    SentinelOne and IT security catalog, prices, quotes and checkout links for Israel

    • 7 tools
    • Remote
    • Free
    • Security