pii-mcp

pii-mcp

MCP server for anonymizing and deanonymizing PII through the Pseudora API, enabling safe sharing of sensitive text with AI assistants.

Category
Visit Server

README

pii-mcp

MCP (Model Context Protocol) server that exposes pii-protect as native tools for Claude Desktop, Cursor, and any MCP-compatible client.

Tools exposed

Tool Description
anonymize_text Anonymize PII, returns anonymized text + context_id
deanonymize_text Restore original using context_id
list_pii_types List all detectable PII types

Connect it to your Pseudora account

  1. Sign in at pseudora.cloud and open Cloud → Customer keys (/cloud/customer-keys).
  2. Create a key. It is displayed once — copy it straight away.
  3. Point the server at the hosted API:
pip install -r requirements.txt
cp .env.example .env
PII_API_URL=https://pseudora.cloud
PII_API_KEY=pk_live_…

The key travels as an X-Api-Key header. Your Pseudora plan decides the rate limit and the monthly credit pool, both shared with every other client on the same account — the browser extension, the VS Code extension and this server all draw from the same pool. A key belonging to an account with no active subscription is refused with 402 subscription_expired.

To run against a self-hosted engine instead, set PII_API_URL to your own instance (for example http://localhost:15500) and use a service or admin key.

One-shot setup

bash setup.sh

It prompts for the key and registers the server with Claude Desktop.

Claude Desktop configuration

Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "pii-protect": {
      "command": "python",
      "args": ["/Users/you/Progetti/pii/pii-mcp/server.py"],
      "env": {
        "PII_API_URL": "https://pseudora.cloud",
        "PII_API_KEY": "your-customer-api-key"
      }
    }
  }
}

Restart Claude Desktop. The tools appear automatically in the tool menu.

Cursor configuration

Edit .cursor/mcp.json in your project (or global ~/.cursor/mcp.json):

{
  "mcpServers": {
    "pii-protect": {
      "command": "python",
      "args": ["/Users/you/Progetti/pii/pii-mcp/server.py"],
      "env": {
        "PII_API_URL": "https://pseudora.cloud",
        "PII_API_KEY": "your-customer-api-key"
      }
    }
  }
}

Without the mcp SDK

server.py includes a pure JSON-RPC 2.0 fallback that works without the mcp package. The mcp SDK is optional but recommended for full protocol compatibility.

# With SDK (recommended)
pip install mcp

# Without SDK (fallback mode)
pip install httpx python-dotenv

Usage example (Claude Desktop)

After connecting, ask Claude:

"Anonymize this text before I share it with you: Mario Rossi, CF RSSMRA80A01H501U, tel 333-1234567"

Claude will call anonymize_text and work only with the anonymized version.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured