SERGE3-g/mcp-server
If you are the rightful owner of mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A comprehensive MCP (Model Context Protocol) server with over 19 integrated tools for automation and integration needs.
get_system_info
Obtains detailed system information.
echo
Connection test - returns provided text.
list_files
Explores directories and files.
read_file
Reads file content.
execute_command
Executes safe system commands (whitelist).
http_request
Complete HTTP/HTTPS client.
websocket_server
Real-time WebSocket server.
email_operations
Complete email system with real SMTP.
ai_operations
Artificial intelligence operations.
json_tools
JSON/YAML manipulation.
csv_operations
Complete CSV/Excel processing.
sqlite_db
Complete SQLite database.
crypto_tools
Cryptographic tools.
text_processing
Advanced text processing.
file_operations
Advanced file operations.
git_operations
Git operations (read-only).
template_engine
Template engine with helpers.
health_check
Server monitoring and metrics.
plugin_manager
Dynamic plugin system.
๐ MCP Server - Advanced Toolkit
Un server MCP (Model Context Protocol) completo e potente con 19+ tools integrati per ogni esigenza di automazione e integrazione.
๐ Panoramica
Questo server MCP fornisce un ecosistema completo di strumenti per interagire con Claude AI, offrendo funzionalitร che vanno dalla gestione file e database, all'invio di email reali, generazione di PDF e QR code, fino a operazioni avanzate di AI/ML.
โจ Caratteristiche Principali
- 19 Tools Integrati - Dalla gestione file alle operazioni AI
- Email SMTP Reali - Invio email autentiche con Gmail, Outlook, Yahoo
- Database SQLite Autentico - Database vero con query SQL
- WebSocket Real-time - Comunicazione bidirezionale
- Generazione PDF - Fatture, report, documenti
- QR Code Generator - WiFi, vCard, SMS, URL
- Sistema Plugin - Estensibilitร completa
- Cache Intelligente - Performance ottimizzate
- Rate Limiting - Controllo utilizzo
- Interfaccia Web - Dashboard di controllo
- Sicurezza Avanzata - Validazione e controlli
๐ ๏ธ Installazione
Prerequisiti
- Node.js 18+ (Windows/macOS/Linux)
- sqlite3 (opzionale, per database reali)
- Claude Desktop installato
Setup Rapido
๐ macOS/Linux:
# Clona il repository
git clone <repository-url>
cd mcp-server
# Installa dipendenze
npm install
# Configura automaticamente
./setup-claude.sh
# Avvia server
npm start
๐ช Windows:
REM Clona il repository
git clone <repository-url>
cd mcp-server
REM Installa dipendenze
npm install
REM Configura automaticamente
setup-claude-windows.bat
REM Avvia server
npm start
Configurazione
Crea un file .env
basato su .env.example
:
# Configurazione Server MCP
MCP_SERVER_NAME=mcp-server
MCP_SERVER_VERSION=1.0.0
# Debug mode
DEBUG=false
# Dimensione massima file (in bytes)
MAX_FILE_SIZE=1048576
# Cache e Rate Limiting
CACHE_SIZE=100
RATE_LIMIT_WINDOW=60000
RATE_LIMIT_MAX=100
๐ Tools Disponibili
๐ง Tools Base (5)
get_system_info
Ottiene informazioni dettagliate sul sistema.
{
"name": "get_system_info",
"arguments": {
"detailed": true
}
}
echo
Test di connessione - restituisce il testo fornito.
list_files
Esplora directory e file.
read_file
Legge il contenuto di file.
execute_command
Esegue comandi di sistema sicuri (whitelist).
๐ Tools di Rete (3)
http_request
Client HTTP/HTTPS completo.
{
"name": "http_request",
"arguments": {
"url": "https://api.example.com",
"method": "POST",
"headers": {"Content-Type": "application/json"},
"body": "{\"key\": \"value\"}"
}
}
websocket_server
Server WebSocket real-time.
{
"name": "websocket_server",
"arguments": {
"action": "start",
"port": 8080
}
}
๐ง Email Tools (1)
email_operations
Sistema email completo con SMTP reale.
{
"name": "email_operations",
"arguments": {
"operation": "send",
"to": "destinatario@email.com",
"subject": "Test Email",
"body": "<h1>Email HTML</h1>"
}
}
Configurazione SMTP:
// Prima configura il provider
{
"operation": "configure_smtp",
"provider": "gmail",
"auth": {
"user": "tua@gmail.com",
"pass": "app-password"
}
}
๐ค AI/ML Tools (1)
ai_operations
Operazioni di intelligenza artificiale.
{
"name": "ai_operations",
"arguments": {
"operation": "sentiment",
"text": "Questo prodotto รจ fantastico!"
}
}
Operazioni disponibili:
sentiment
- Analisi sentimentisummarize
- Riassunto testoclassify
- Classificazioneenhance
- Miglioramento testodetect_language
- Rilevamento linguasimilarity
- Similaritร tra testi
๐ Data Tools (3)
json_tools
Manipolazione JSON/YAML.
csv_operations
Elaborazione completa CSV/Excel.
{
"name": "csv_operations",
"arguments": {
"operation": "parse",
"data": "name,age\nMario,30\nLuigi,25",
"options": {"hasHeader": true}
}
}
sqlite_db
Database SQLite completo.
{
"name": "sqlite_db",
"arguments": {
"operation": "create_table",
"table": "users",
"columns": {"name": "TEXT", "email": "TEXT"}
}
}
๐ Security & Text Tools (2)
crypto_tools
Strumenti crittografici.
{
"name": "crypto_tools",
"arguments": {
"operation": "hash",
"data": "testo da hashare",
"algorithm": "sha256"
}
}
text_processing
Elaborazione testo avanzata.
๐ File & Git Tools (2)
file_operations
Operazioni file avanzate.
git_operations
Operazioni Git (sola lettura).
๐จ Creative Tools (1)
template_engine
Motore template con helpers.
{
"name": "template_engine",
"arguments": {
"operation": "render_string",
"content": "Ciao {{name}}! Oggi รจ {{date \"DD/MM/YYYY\"}}",
"data": {"name": "Mario"}
}
}
๐ฅ System Tools (2)
health_check
Monitoraggio server e metriche.
plugin_manager
Sistema plugin dinamico.
๐ฅ Features Avanzate
๐ฑ QR Code Generator
Genera QR code per diversi scopi:
// QR WiFi
qrTools.generateWiFiQR({
ssid: "MiaRete",
password: "password123",
security: "WPA"
});
// QR vCard
qrTools.generateVCardQR({
name: "Mario Rossi",
phone: "+39123456789",
email: "mario@email.com"
});
// QR URL
qrTools.generateURLQR("https://example.com");
๐ PDF Generator
Crea documenti PDF professionali:
// Fattura PDF
await pdfTools.createInvoice({
number: "2024-001",
date: "2024-01-15",
customer: {
name: "Cliente SpA",
address: "Via Roma 1",
city: "Milano",
zip: "20100"
},
items: [
{description: "Servizio", quantity: 1, price: 100, total: 100}
],
total: 100
});
// Report PDF
await pdfTools.createReport({
title: "Report Mensile",
author: "Sistema",
sections: [...]
});
๐ง Sistema Plugin
Estendi il server con plugin personalizzati:
// Plugin di esempio
export default {
name: 'custom',
version: '1.0.0',
description: 'Plugin personalizzato',
tools: [{
name: 'my_tool',
description: 'Il mio strumento',
inputSchema: { /* schema */ }
}],
async execute(toolName, args) {
// Logica del plugin
return { content: [{ type: 'text', text: 'Risultato' }] };
}
};
๐ Interfaccia Web
Il server include una dashboard web completa accessibile aprendo web-interface.html
:
- Controlli Server - Start/Stop/Riavvio
- Monitoring Real-time - Metriche e log live
- Test Tools - Interfaccia per testare tutti i tools
- Gestione Plugin - Carica/scarica plugin
- WebSocket Status - Stato connessioni
โ๏ธ Configurazione Avanzata
Email SMTP
Supporta i principali provider:
// Gmail (App Password richiesta)
{
host: 'smtp.gmail.com',
port: 587,
secure: false,
auth: { user: 'email@gmail.com', pass: 'app-password' }
}
// Outlook
{
host: 'smtp-mail.outlook.com',
port: 587,
secure: false,
auth: { user: 'email@outlook.com', pass: 'password' }
}
Database SQLite
Per utilizzare SQLite reale:
# macOS
brew install sqlite3
# Ubuntu/Debian
sudo apt-get install sqlite3
# Windows
# Scarica da https://sqlite.org/download.html
WebSocket
Il server WebSocket supporta:
- Rooms - Canali di comunicazione
- Broadcast - Messaggi a tutti
- Private Messages - Messaggi diretti
- Presenza - Stato utenti
๐ Sicurezza
Controlli Implementati
- Path Traversal Protection - Accesso solo directory corrente
- Command Whitelist - Solo comandi sicuri
- Rate Limiting - Controllo frequenza richieste
- Input Validation - Validazione parametri
- File Size Limits - Controllo dimensioni file
- Error Handling - Gestione errori sicura
Best Practices
- Non committare credenziali - Usa file
.env
- App Password - Usa app password per Gmail
- Firewall - Configura firewall per WebSocket
- Monitoring - Monitora log e metriche
- Backup - Backup regolari database
๐ Esempi di Utilizzo
Scenario 1: Email Marketing
{
"name": "email_operations",
"arguments": {
"operation": "create_template",
"template_name": "newsletter",
"template": {
"subject": "Newsletter {{month}}",
"htmlBody": "<h1>Ciao {{name}}!</h1><p>{{content}}</p>"
}
}
}
Scenario 2: Report Automatico
{
"name": "sqlite_db",
"arguments": {
"operation": "select",
"table": "sales",
"where": {"month": "2024-01"}
}
}
Scenario 3: QR Code Menu Ristorante
qrTools.generateURLQR("https://menu.ristorante.com", {
size: 300,
errorCorrectionLevel: 'H'
});
Scenario 4: Backup Automatico
{
"name": "file_operations",
"arguments": {
"operation": "copy",
"source": "./data",
"destination": "./backup/data-2024-01-15"
}
}
๐ค Contribuire
- Fork del repository
- Crea branch feature (
git checkout -b feature/nome-feature
) - Commit modifiche (
git commit -am 'Aggiunge feature'
) - Push al branch (
git push origin feature/nome-feature
) - Crea Pull Request
Sviluppo Plugin
Per creare un nuovo plugin:
- Crea file
plugins/mio-plugin.js
- Implementa interfaccia plugin
- Carica con
plugin_manager
- Testa funzionalitร
๐ Performance
Metriche
- Startup Time: < 1 secondo
- Memory Usage: 50-100MB base
- Request Latency: < 100ms (cached)
- Concurrent Requests: 100+ simultanee
- File Processing: 1MB default limit
- Database: SQLite ottimizzato
Ottimizzazioni
- Cache intelligente con TTL
- Connection pooling database
- Lazy loading plugin
- Stream processing file grandi
- Compression WebSocket
๐ Troubleshooting
Problemi Comuni
Email non invia:
- Verifica credenziali SMTP
- Usa App Password per Gmail
- Controlla firewall
SQLite non funziona:
- Installa
sqlite3
nel sistema - Verifica permessi file database
- Controlla path database
WebSocket errori:
- Verifica porta disponibile
- Controlla firewall
- Verifica formato messaggi
Plugin non carica:
- Controlla sintassi JavaScript
- Verifica export default
- Controlla schema tools
๐ License
ISC License - Vedi file LICENSE per dettagli.
๐ Crediti
- MCP SDK - Anthropic
- Node.js - Runtime JavaScript
- SQLite - Database embedded
- Community - Contributi e feedback
๐ Quick Start Commands
# Sviluppo
npm run dev
# Produzione
npm start
# Test tools
curl -X POST http://localhost:3000/health
# WebSocket test
wscat -c ws://localhost:8080
# Plugin test
node -e "console.log('Plugin loaded')"
๐ฏ Pronto per l'uso con Claude AI - Il tuo server MCP definitivo!