You now have a fully automated dataset onboarding system that watches your Google Drive folder and processes new files automatically - no manual file IDs needed!
python start_auto_processor.py- Upload any CSV or Excel file to your
MCP_serverGoogle Drive folder - That's it! No file IDs, no manual commands
- Files are automatically detected within 30 seconds
- Complete processing pipeline runs automatically
- All artifacts saved in organized folders
# View current status
python processor_dashboard.py
# Live monitoring (auto-refreshing)
python processor_dashboard.py --live
# Detailed analytics
python processor_dashboard.py --stats# Run single check
python auto_processor.py --once
# List processed files
python auto_processor.py --list
# Custom check interval
python auto_processor.py --interval 60
# Reset processed files log
python auto_processor.py --reset- ✅ Monitors Google Drive folder continuously
- ✅ Only processes supported formats (CSV, Excel)
- ✅ Ignores already processed files
- ✅ Waits for upload completion before processing
- ✅ Handles multiple files efficiently
- File Detection → New file uploaded to Google Drive
- Download → File retrieved automatically
- Analysis → Metadata extraction and statistics
- Quality Rules → Intelligent DQ rule generation
- Documentation → Excel contracts and reports
- Organization → Structured folder creation
- Tracking → Processing log updated
- Duplicate Prevention: Won't process the same file twice
- Error Recovery: Handles failures gracefully
- Batch Processing: Can handle multiple files at once
- Progress Tracking: Maintains detailed logs
- Resource Efficient: Minimal system impact
Each processed dataset gets its own organized folder:
processed_datasets/
└── your_dataset_name/
├── original_file.csv # Original dataset
├── dataset_metadata.json # Column info & stats
├── dataset_contract.xlsx # Professional contract
├── dataset_dq_report.json # Quality assessment
└── README.md # Human-readable summary
- Check Interval: 30 seconds
- File Age Threshold: 1 minute (prevents processing during upload)
- Supported Formats: CSV, Excel (.xlsx, .xls)
- Max Files Per Cycle: 5
Edit auto_config.py to adjust:
- Check frequency
- File age requirements
- Supported formats
- Logging levels
- Output folders
- Check Google Drive folder permissions
- Verify service account has access
- Ensure files are supported formats
- Check
processed_files.jsonfor duplicates
- Check Google Drive connectivity
- Verify file formats are valid
- Check disk space for output folders
- Review error logs in console
- Ensure
processed_files.jsonexists - Check Google Drive API access
- Verify folder IDs in
.envfile
- ❌ Find file ID manually
- ❌ Run commands for each file
- ❌ Track processed files yourself
- ❌ Organize outputs manually
- ❌ Monitor progress constantly
- ✅ Just upload files to Google Drive
- ✅ Everything happens automatically
- ✅ Smart duplicate detection
- ✅ Organized output structure
- ✅ Real-time monitoring dashboard
# Create systemd service
sudo nano /etc/systemd/system/mcp-auto-processor.service
[Unit]
Description=MCP Auto Dataset Processor
After=network.target
[Service]
Type=simple
User=your-user
WorkingDirectory=/path/to/mcp
ExecStart=/usr/bin/python3 start_auto_processor.py
Restart=always
[Install]
WantedBy=multi-user.target
# Enable and start
sudo systemctl enable mcp-auto-processor
sudo systemctl start mcp-auto-processorUse Task Scheduler or Windows Service Wrapper to run start_auto_processor.py automatically.
# Build image
docker build -t mcp-auto-processor .
# Run with auto-processor
docker run -d \
-v /path/to/service-account.json:/app/keys/service-account.json \
-v /path/to/processed_datasets:/app/processed_datasets \
-e GOOGLE_SERVICE_ACCOUNT_KEY_PATH=/app/keys/service-account.json \
-e MCP_SERVER_FOLDER_ID=your_server_folder_id \
-e MCP_CLIENT_FOLDER_ID=your_client_folder_id \
mcp-auto-processor python start_auto_processor.py- Automatic ingestion of daily reports
- Continuous data quality monitoring
- Self-service data onboarding
- Upload spreadsheets for instant analysis
- Automated documentation generation
- Quality-checked data delivery
- Hands-off data pipeline integration
- Automated metadata cataloging
- Quality rule enforcement
A production-ready, fully automated dataset onboarding system that:
- ✅ Requires zero manual intervention
- ✅ Processes files within 30 seconds of upload
- ✅ Generates professional documentation
- ✅ Maintains organized data catalogs
- ✅ Provides real-time monitoring
- ✅ Scales to handle multiple files
- ✅ Recovers from errors gracefully
Just upload files to Google Drive and walk away! 🚀