Italy Legacy DB AI Bridge
FreeNot checkedEnables AI assistants to securely query Italian legacy ERP databases (AS/400, SQL Server, etc.) with GDPR-compliant PII masking and semantic table mapping.
About
Enables AI assistants to securely query Italian legacy ERP databases (AS/400, SQL Server, etc.) with GDPR-compliant PII masking and semantic table mapping.
README
IT Claude MCP Protocol Python 3.10+ Config JSON SQL Server IBM i GDPR ERP Italiani
Italy Legacy DB AI Bridge è un template professionale basato sullo standard Model Context Protocol (MCP) per integrare in sicurezza assistenti AI (Claude, Cursor) con database gestionali legacy e sistemi ERP italiani (AS/400, SQL Server, SAP, Oracle).
Il bridge implementa un layer read-only con mapping semantico e mascheramento automatico dei dati sensibili, garantendo la piena conformità GDPR per le aziende.
🌟 Perché scegliere MCP per l'integrazione Enterprise?
L'approccio MCP (Model Context Protocol) è lo standard di settore per esporre tool e risorse ad assistenti AI in modo strutturato. Rispetto all'accesso diretto al database, offre:
- Controllo Granulare: L'AI interagisce solo tramite tool predefiniti (
query_legacy_db) e non ha accesso "raw" allo schema. - Sicurezza GDPR: Include PII Masking nativo per Codice Fiscale, Partita IVA e IBAN.
- Astrazione Semantica: Mappa nomi tabelle fisiche criptiche (es.
T_041CLI) in entità di business chiare (es.Anagrafica_Clienti). - Minimizzazione dei Dati: Invia all'LLM solo i record necessari, riducendo drasticamente i rischi di data leakage.
🗺️ Configurare il mapping semantico (config/mapping.json)
Il file config/mapping.json definisce quali entità di business sono visibili all’AI e a quali tabelle fisiche del gestionale corrispondono.
Esempio tipico per un ERP:
{
"tables": {
"Anagrafica_Clienti": "T_041CLI",
"Anagrafica_Fornitori": "T_042FOR",
"Fatture": "T_105FTT",
"Ordini": "T_210ORD",
"Articoli": "T_030ART",
"Magazzino": "T_050MAG"
}
}
- Le chiavi (
Anagrafica_Clienti,Fatture, …) sono i nomi “parlanti” che Claude userà nei tool. - I valori (
T_041CLI,T_105FTT, …) sono i nomi effettivi delle tabelle nel gestionale.
Suggerimenti pratici:
- Parti dalle entità che già usi nei report (clienti, fatture, ordini, magazzino).
- Mantieni il mapping come whitelist di ciò che vuoi davvero esporre all’AI.
- Se hai mapping diversi per ambienti (test/produzione), usa
ITALY_LEGACY_MAPPING_PATH=/path/to/mapping.json.
🚀 Installazione e Quickstart
- Clone e Installazione:
pip install -e ".[dev,odbc]" - Configurazione Ambiente:
Configura la stringa di connessione nel file
.env:ITALY_LEGACY_DB_URL="sqlite:///./data/legacy.db" - Avvio Server:
python -m app.server
🔌 Configurazione Integrazioni (Claude & Cursor)
L'integrazione permette di trasformare Claude o Cursor in un operatore esperto sui tuoi dati aziendali, visualizzando dati mascherati e report di pulizia direttamente in chat.
Guida Completa: Integrazione Claude Desktop
Per attivare il bridge su Claude Desktop, aggiungi la configurazione al file claude_desktop_config.json (solitamente in %AppData%\Roaming\Claude):
{
"mcpServers": {
"italy-legacy-db": {
"command": "python",
"args": ["-m", "app.server"],
"env": {
"ITALY_LEGACY_DB_URL": "tua_connection_string_qui"
}
}
}
}
👉 Documentazione dedicata: docs/CLAUDE_DESKTOP_WINDOWS.md
Utilizzo con Cursor
Per integrare il bridge in Cursor, accedi alle impostazioni Preferences > Cursor Settings > Tools & MCP, clicca su "+ Add New MCP Server" e configura come segue:
- Name:
Italy Legacy Bridge - Type:
command - Command:
python -m app.server(assicurati che l'ambiente virtuale sia attivo).
In alternativa, è già presente un modello su .cursor/mcp.json.example
📸 Risultati in Claude
Di seguito alcuni screenshot che mostrano il bridge in uso con Claude: configurazione, connettore attivo, interrogazioni su tabelle mappate e report del tool di privacy cleanup.
| Configurazione / Connettore MCP | Interrogazione tabelle | Report privacy cleanup |
|---|---|---|
![]() |
![]() |
![]() |
🧩 Tool MCP Esposti
query_legacy_db: Esegue interrogazioni sicure su tabelle mappate. I risultati vengono processati in tempo reale per mascherare PII (Codice Fiscale/IBAN).privacy_cleanup: Chiude i pool di connessione, resetta lo stato interno e genera un report di conformità sessione (timestamp, stato azzerato, esito).
🔒 Sicurezza e Compliance
- Accesso Read-Only: Forzato a livello di driver per impedire qualsiasi alterazione dei dati.
- Anti-SQL Injection: Parametrizzazione obbligatoria di ogni filtro di ricerca.
- Privacy "No Retention": Tool dedicato per l'azzeramento della memoria di sessione dopo l'uso, con report verificabile dall'utente.
📂 Risorse e Documentazione
📄 Licenza
Proprietà Intellettuale di Impesud (Source-Available). Vedi LICENSE.
📬 Contatti
- Sito: impesud.it
- Email: [email protected]
- Per richieste commerciali, supporto o informazioni sulla licenza: Contatti Impesud o via email.
Installing Italy Legacy DB AI Bridge
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/Impesud/italy-legacy-db-ai-bridge-templateFAQ
Is Italy Legacy DB AI Bridge MCP free?
Yes, Italy Legacy DB AI Bridge MCP is free — one-click install via Unyly at no cost.
Does Italy Legacy DB AI Bridge need an API key?
No, Italy Legacy DB AI Bridge runs without API keys or environment variables.
Is Italy Legacy DB AI Bridge hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Italy Legacy DB AI Bridge in Claude Desktop, Claude Code or Cursor?
Open Italy Legacy DB AI Bridge on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
wenb1n-dev/SmartDB_MCP
A universal database MCP server supporting simultaneous connections to multiple databases. It provides tools for database operations, health analysis, SQL optim
by wenb1n-devPostgres Server
This server enables interaction with PostgreSQL databases through the Model Context Protocol, optimized for the AWS Bedrock AgentCore Runtime. It provides tools
by madhurprashPostgres
Query your database in natural language
by AnthropicPostgreSQL
Read-only database access with schema inspection.
by modelcontextprotocolCompare Italy Legacy DB AI Bridge with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All data MCPs



