# PrivacyFence

> PrivacyFence is an open-source MCP server for security. Approval gateway that keeps AI assistants from reading or changing your data unchecked. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** macOS, Windows, Linux, self-hosted
- **Website:** https://privacyfence.eu/download/
- **Repository:** https://github.com/privacyfence/privacyfence
- **MCP Registry name:** io.github.privacyfence/privacyfence
- **Categories:** security, productivity
- **Listing updated:** 2026-11-14

## About

PrivacyFence sits between an MCP client and business systems such as Gmail, Google Drive, Calendar, Slack, Salesforce, Jira, Confluence and Telegram. The assistant asks, PrivacyFence decides, and sensitive reads and consequential writes appear as approval cards showing the real content or change, who is asking and why, instead of a raw tool name or JSON.

Routine requests can be automated with narrow always-allow rules, such as a sender domain, a Drive folder, a Slack channel or a Jira project. Optional local PII detection flags likely personal data before it reaches the AI and can force a card even when a rule would allow it. Every decision goes into a chained audit log that detects edits made without its key. It is a defined set of connectors with each tool gated in code, not a generic proxy for arbitrary MCP tools.

Credentials stay with PrivacyFence, which runs under its own service account so the client cannot read them or approve its own requests, and no data passes through a PrivacyFence-operated server. The recommended single-user setup is now a Docker image on localhost with a passkey. Desktop installers for macOS, Windows and Linux are deprecated in version 7, and version 8 removes desktop mode. An organization deployment lets claude.ai, ChatGPT and Gemini Enterprise connect through OAuth.

## Features

- **Human approval cards:** Sensitive reads and writes show the actual content before they proceed.
- **Policy rules:** Narrow always-allow rules let routine requests run without a prompt.
- **Local PII detection:** Highlights likely personal data before it reaches the AI.
- **Chained audit log:** Records accepted, denied and automatic decisions and detects tampering.
- **Separate credentials:** Connector sign-ins live under PrivacyFence's own service account.
- **Docker or organization mode:** Runs on localhost for one person or as a central server for a team.

## Good for

- Let Claude read mail while approving sensitive messages
- Limit an assistant to one Jira project or Drive folder
- Keep an audit trail of AI access to company systems
- Stop an agent approving its own requests
- Roll out governed AI access across an organization

## Install

### Claude Code (Terminal)

```sh
claude mcp add privacyfence -- npx -y https://github.com/privacyfence/privacyfence/releases/download/v7.0.2/PrivacyFence.mcpb
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "privacyfence": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/privacyfence/privacyfence/releases/download/v7.0.2/PrivacyFence.mcpb"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "privacyfence": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/privacyfence/privacyfence/releases/download/v7.0.2/PrivacyFence.mcpb"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "privacyfence": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/privacyfence/privacyfence/releases/download/v7.0.2/PrivacyFence.mcpb"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "privacyfence": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/privacyfence/privacyfence/releases/download/v7.0.2/PrivacyFence.mcpb"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "privacyfence": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/privacyfence/privacyfence/releases/download/v7.0.2/PrivacyFence.mcpb"
      ]
    }
  }
}
```

## FAQ

### Does data pass through a PrivacyFence server?

No. The README says no data passes through a PrivacyFence-operated server.

### What licence is it?

Apache 2.0, free and open source.

### What is the recommended install?

The Docker image on your computer in single-user mode, with a passkey; desktop installers are deprecated.

### Can it proxy any MCP server?

No. It offers a defined set of connectors with fixed gates, not a generic proxy.

### Is PrivacyFence free?

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

### How do I add PrivacyFence to Claude Code?

Run this command in your terminal: claude mcp add privacyfence -- npx -y https://github.com/privacyfence/privacyfence/releases/download/v7.0.2/PrivacyFence.mcpb

### What are the best alternatives to PrivacyFence?

The closest alternatives to PrivacyFence are REA, Ha MCP, Concord MCP, Agent Roast and Midplane.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Ha MCP](https://ai-powered.com/mcp/ha-mcp): Ha MCP is an open-source MCP server for productivity.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium 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.
- [note1](https://ai-powered.com/mcp/note1): note1 is an MCP server for productivity.
- [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.

---
Source: https://ai-powered.com/mcp/privacyfence
