By · Last updated 2026-02-22

Torna al BlogTecnico

Usa Claude e ChatGPT Senza Far Trapelare PII

Una guida per sviluppatori all'uso sicuro degli assistenti IA. Configura l'integrazione con il server MCP per una protezione PII trasparente in Claude Desktop, Cursor e VS Code.

February 22, 20267 min di lettura
MCP ServerClaude DesktopCursor IDEsecure AIdeveloper tools

Il Dilemma dello Sviluppatore

Stai effettuando il debug di un problema in produzione. Lo stack trace contiene indirizzi email dei clienti. La soluzione più rapida? Incollarlo in Claude e chiedere aiuto.

Ma quei dati sono ora:

  • Memorizzati nei sistemi di Anthropic
  • Potenzialmente usati per l'addestramento del modello, a seconda del piano
  • Visibili a chiunque possa accedere alla tua cronologia delle chat

Il 77% degli sviluppatori incolla dati sensibili negli strumenti IA. La maggior parte non si accorge del problema fino a quando non è troppo tardi.

Come il Proxy Risolve il Problema

Il Model Context Protocol (MCP) consente a un server di posizionarsi tra te e qualsiasi strumento IA. Il server MCP di anonym.legal sfrutta questa posizione per eliminare il PII prima che il testo raggiunga qualsiasi modello.

Funziona in quattro passi:

  1. Scrivi un prompt come al solito
  2. Il proxy lo intercetta prima dell'invio
  3. Il PII viene rilevato e sostituito con token reversibili
  4. Il modello IA vede solo testo pulito e anonimizzato

La risposta dell'IA torna con i valori reali ripristinati. Il tuo flusso di lavoro non cambia.

Configurazione dell'Integrazione

Cosa Ti Serve

  • Node.js 18 o versione successiva
  • Claude Desktop, Cursor o VS Code con l'estensione Claude
  • Una chiave API di anonym.legal — richiedila gratuitamente

Passo 1: Ottieni la Tua Chiave API

  1. Registrati su anonym.legal/auth/signup
  2. Vai su Impostazioni → Token API
  3. Crea un nuovo token
  4. Copialo — lo vedrai una sola volta

Passo 2: Configura Claude Desktop

Modifica il file di configurazione per il tuo sistema operativo:

macOS: `/Library/Application Support/Claude/claude_desktop_config.json`
Windows: `%APPDATA%\Claude\claude_desktop_config.json`
Linux: `
/.config/Claude/claude_desktop_config.json`

Aggiungi il server di anonym.legal:

```json { "mcpServers": { "anonym-legal": { "command": "npx", "args": ["-y", "@anonym-legal/mcp-server"], "env": { "ANONYM_API_KEY": "la-tua-chiave-api" } } } } ```

Passo 3: Riavvia Claude Desktop

Chiudi e riapri l'applicazione. Vedrai "anonym-legal" nell'elenco dei server attivi.

Configurazione di Cursor IDE

Cursor utilizza lo stesso protocollo. Aggiungi quanto segue in `.cursor/mcp.json`:

```json { "mcpServers": { "anonym-legal": { "url": "https://anonym.legal/mcp", "transport": "sse", "headers": { "Authorization": "Bearer la-tua-chiave-api" } } } } ```

Cosa Viene Anonimizzato

Il server rileva oltre 285 tipi di entità in 48 lingue:

CategoriaEsempi
PersonaliNomi, email, numeri di telefono, data di nascita
FinanziariCarte di credito, conti bancari, IBAN
GovernativiCodici fiscali, numeri di passaporto, patenti
TecniciIndirizzi IP, chiavi API, token
SanitariID paziente, numeri assicurativi
AziendaliID dipendente, numeri di conto

Esempio di Trasformazione

Il tuo prompt: ``` Debug di questo errore dall'utente mario.rossi@azienda.it: Pagamento fallito per la carta 4532-1234-5678-9012 ID cliente: CUST-12345, IP: 192.168.1.100 ```

Quello che vede il modello: ``` Debug di questo errore dall'utente [EMAIL_1]: Pagamento fallito per la carta [CREDIT_CARD_1] ID cliente: [CUSTOMER_ID_1], IP: [IP_ADDRESS_1] ```

La risposta che vedi tu: ``` L'errore per mario.rossi@azienda.it suggerisce che la carta 4532-1234-5678-9012 potrebbe avere fondi insufficienti... ```

Tu vedi i valori reali. Il modello ha visto solo token.

Opzioni Avanzate

Pattern personalizzati — aggiungi le tue espressioni regolari alla variabile d'ambiente `CUSTOM_PATTERNS`:

```json "CUSTOM_PATTERNS": "JIRA-[0-9]+,TICKET-[A-Z0-9]+" ```

Allowlist — escludi nomi pubblici dalla mascheratura:

```json "ALLOWLIST": "Anthropic,Claude,anonym.legal" ```

Disabilita tipi di entità — consenti a determinate categorie di passare senza modifiche:

```json "DISABLED_ENTITIES": "PHONE_NUMBER,URL" ```

Dove Avviene l'Elaborazione

ComponentePosizione
Server MCPIl tuo dispositivo
Rilevamento PIIServer di anonym.legal (Germania)
Modello IAServer Anthropic / OpenAI

Il proxy gira sul tuo dispositivo. Solo la chiamata di rilevamento va ad anonym.legal. I tuoi prompt non vengono memorizzati. Consulta la privacy policy per i dettagli.

Prezzi

L'integrazione è inclusa in tutti i piani:

PianoToken/mesePrezzo
Gratuito200€0
Basic2.000€3/mese
Pro10.000€15/mese
Business50.000€29/mese

La maggior parte degli sviluppatori rimane sul piano Basic a €3/mese.

Conclusione

Gli strumenti IA fanno ormai parte del lavoro quotidiano degli sviluppatori. Non hanno bisogno di vedere i dati dei tuoi clienti per essere utili. Il proxy se ne occupa per te.

L'integrazione:

  • Non richiede cambiamenti al flusso di lavoro
  • Funziona con Claude Desktop, Cursor e VS Code
  • Protegge il PII ad ogni prompt, ogni volta
  • Costa €3/mese per la maggior parte degli sviluppatori

Configurala una volta. I tuoi dati sono al sicuro per impostazione predefinita.


Fonti

Pronto a proteggere i tuoi dati?

Inizia ad anonimizzare i PII con oltre 285 tipi di entità in 48 lingue.

About this page

We update this page when our platform or the law changes.

Read our founder note for how we work.

Each change shows up in the timestamp at the top.

Related reading

We follow these rules

  • GDPR (EU 2016/679).
  • ISO/IEC 27001:2022.
  • NIS2 (EU 2022/2555).
  • HIPAA safe harbor under 45 CFR § 164.514(b)(2).

Our promise

We do not sell your data.

We do not train models on your text.

We store your files in Germany.

You can delete your account at any time.

You own your work.

Where we run

Our servers live in Falkenstein, Germany.

We use Hetzner. They hold ISO 27001 certification.

All data stays in the EU.

Backups run every day.

Need help?

Email support@anonym.legal.

We reply within one business day.

How we test

We run a full check suite on every release.

Each surface gets its own sweep script and report.

Human reviewers spot-check the output each week.

We track recall and precision on a labelled set.

Bad runs block the deploy.

What we never do

  • We never sell your information to third parties.
  • We never train models on what you upload.
  • We never keep your work after you delete it.
  • We never share keys with any outside firm.
  • We never run ads inside the product.

Plans in plain words

We sell credits, not seats.

One credit covers one short job.

Long jobs use a few credits each.

You can top up at any time.

Unused credits roll over each month.

Read the plans page for current rates.

Who built this

A small team of engineers and lawyers built this.

We ship from Europe and work in the open.

Our founder note spells out why we started.

Where to start

How the parts fit

A browser add-on cleans text inside Chrome.

A Word plug-in handles drafts in Office.

A small desktop tool works on whole folders.

An agent protocol link feeds large models safely.

All four share one core engine and one rule set.

Words from our team

We started this work after a lunch about cookies.

One friend kept getting odd ads on her phone.

We asked why a court file leaked through a draft.

We sketched the first build on a napkin that week.

By month three we had a tiny demo for a friend.

She used it on her first case the next day.

Common questions we hear

Can the tool read scanned PDFs? Yes, with OCR.

Does it work on long files? Yes, in small chunks.

Can I roll my own rule set? Yes, save it as a preset.

Does it run offline? The desktop build runs offline.

Do you keep my files? No, the cloud build wipes after each run.

Will it learn from my work? No, we never train on inputs.

A short tour of the workflow

Upload a file or paste a snippet of prose.

Pick the entities you want gone from the draft.

Choose a method: replace, mask, hash, encrypt, or redact.

Press run and watch the side panel show each hit.

Skim the result and tweak any rule that misfired.

Save the cleaned file or send it to a teammate.