MCP Privacy Proxy

Put a proxy in front of any third-party MCP server so Claude, ChatGPT or any agent gets the data it needs without personal data, without the provider credentials, and with only the tools you choose.

What it does

  • Holds credentials. API keys and OAuth tokens stay in the proxy. Agents get their own revocable pxk_… key.
  • Allowlists tools. Only configured tools are listed, which keeps the agent's context small.
  • Redacts responses. Fields are kept, dropped, masked, hashed or pseudonymized, and detectors scrub every remaining string.
  • Round-trips pseudonyms. A token like Email_c91d passed back as an argument is resolved to the real value inside the proxy.

Each proxy is served at https://mcp.agentfabric.dev/p/{proxyId}.

Set up a proxy

  1. Create. mcp_proxies create with upstreamUrl and authType (none, headers or oauth). You get proxyUrl, a proxy key (shown once) and the discovered tools. Prefer request_credentials so a human enters the key through a link that expires after 30 minutes. For OAuth, hand authorizationUrl to a human and poll get until oauthStatus is connected.
  2. Discover. discover and describe_tool list each tool's input arguments, output fields and a suggested policy.
  3. Preview. Run a tool with real arguments. You get the redacted result, every observed field with PII signals, and a suggested policy. Pass applySuggestion: true to save it.
  4. Configure. configure_tool sets output rules, input rules and free-text handling.
  5. Connect. Point the agent at proxyUrl with Authorization: Bearer pxk_….
{
  "mcpServers": {
    "crm": {
      "url": "https://mcp.agentfabric.dev/p/mcpx_…",
      "type": "http",
      "headers": { "Authorization": "Bearer pxk_your_proxy_key" }
    }
  }
}

Redaction rules

Setting Values Notes
outputMode allowlist (default), denylist With an allowlist, unlisted fields are dropped.
outputRules[].action keep, drop, mask, hash, pseudonymize [] in a path means every array element, * any key, e.g. messages[].from.email. hash is one-way.
inputRules[].action hide, fixed Hide an argument from the agent or pin its value.
freeText scrub, drop For text results that are not JSON.
redaction.detectors email, phone, iban, credit_card, ip_address Also catches Name <email> display names.
redaction.reversible true (default) Turn off to make tokens one-way.

Change approval

With a consumer key, edits to tools or redaction rules go to a draft, and preview returns field paths and signals but no values. Run diff, then propose (optionally with samples). That opens a review for all tenant admins; one approval publishes exactly that snapshot, one rejection closes it. Consumers cannot change upstreamUrl, authType, headers or credentials, and cannot delete proxies. Admin keys edit live.

Poll get for pendingChange.status: pending, published, changes_required, rejected, stale or superseded.

Security & data

  • Hosting. AWS Ireland (eu-west-1). HTTPS in transit, encrypted at rest.
  • Responses. Redacted in memory and never stored.
  • Call logs. Tool name, status, duration and redaction counts only, never content. They expire after 30 days (GET …/calls, admin only).
  • Credentials. Stored in AWS Secrets Manager, never returned to agents.
  • Pseudonyms. With reversible on, originals are stored encrypted with AES-256-GCM under a per-proxy key.
  • Deletion. Deleting a proxy removes its credentials, pseudonyms and logs. Proxy keys can be revoked individually.

Reference