Skip to main content
Glama
pii-mcp

pii-mcp

by nephilimdie

Pseudora MCP

Model Context Protocol gateway that exposes Pseudora privacy controls (PII detection, anonymization and reversible pseudonymization) as native AI tools. The remote service forwards every operation to pseudora.cloud; it does not contain the PII engine and does not store customer credentials.

MCP tools are selected and invoked by the host model during an agent request. They can protect data fetched or produced inside a workflow, but they cannot intercept a raw user prompt that the model already received. In VS Code, use the Pseudora extension's @pseudora chat participant when the prompt itself contains personal data: it anonymizes before invoking the selected language model.

Tools

Tool

Purpose

anonymize_text

Replace personal data with tags or realistic surrogates

deanonymize_text

Restore values using the original context_id

list_pii_types

List entity types available to the current tenant

list_document_types

List policies/document types available to the current tenant

Related MCP server: MCP Presidio

Connect a client

VS Code

Install the Pseudora VS Code extension and run Pseudora: Connect Account. The extension completes OAuth PKCE in the browser, stores tokens in VS Code SecretStorage, lets the user select a team, document type, and anonymization mode for each workspace, and registers this remote MCP endpoint automatically. Pausing Pseudora in the workspace also removes the MCP server. No key is written to mcp.json.

For protected prompts, open Chat and start the request with @pseudora. Enabling the MCP server alone does not provide transparent prompt interception.

Other MCP clients

  1. Create a key in Pseudora Customer keys.

  2. Configure one remote MCP endpoint: https://mcp.pseudora.cloud/mcp.

  3. Send the key as Authorization: Bearer pii_cust_....

Generic remote configuration:

{
  "mcpServers": {
    "pseudora": {
      "url": "https://mcp.pseudora.cloud/mcp",
      "headers": {
        "Authorization": "Bearer pii_cust_replace_me"
      }
    }
  }
}

Use a key created for the team you want to work with. OAuth tokens can also pass team_id to individual tools; API keys remain bound to their tenant by Pseudora. Clients with a team picker should send X-Team-ID on the MCP connection. That client-selected team takes precedence over tool arguments, so an AI model cannot silently switch away from the workspace team. The VS Code extension also sends X-Pii-Document-Type and X-Pii-Mode; these workspace choices take precedence over tool arguments for the same reason. The managed gateway identifies its calls as mcp_server; requests and characters are visible by tool and key owner in Cloud Stats.

Do not commit the key to a project repository. Prefer the client credential store or environment-variable interpolation when the selected MCP client supports it.

Local stdio compatibility

For a client that does not support remote Streamable HTTP, clone this repository and run:

bash setup.sh

Or configure it manually:

{
  "mcpServers": {
    "pseudora": {
      "command": "uv",
      "args": ["run", "--project", "/absolute/path/to/pii-mcp", "pii-mcp"],
      "env": {
        "PSEUDORA_API_URL": "https://pseudora.cloud",
        "PSEUDORA_API_KEY": "pii_cust_replace_me"
      }
    }
  }
}

Development

uv sync --extra test
uv run pytest
uv run pii-mcp --transport streamable-http

Health check: http://127.0.0.1:8765/health MCP endpoint: http://127.0.0.1:8765/mcp

Self-hosting instructions are in DEPLOYMENT.md.

License

Apache License 2.0. See LICENSE. Pseudora Cloud and the Pseudora name are not covered by this license.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP proxy that pseudo-anonymizes PII before data reaches external AI providers like Claude, ChatGPT, or Gemini.
      18
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      An MCP server that enables LLMs to detect and anonymize over 25 types of Personally Identifiable Information (PII) using Microsoft Presidio. It supports various redaction strategies and can process both plain text and structured data to help ensure data privacy.
      10
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      MCP server for automatic detection and redaction of PII in text, with anonymization and deanonymization capabilities, all local processing.
      1
      -