FileDashboard MCP
README.md
<!-- mcp-name: io.github.Hessam-Mamagani/filedashboard-mcp -->
# FileDashboard MCP
Privacy-first Python **SEP-1865 MCP App** and local web dashboard that turns messy **Excel, CSV, JSON, Parquet, PDF, Word (`.docx`), and TXT/MD** files into interactive visual comparison dashboards, ML anomaly plots, trend forecasts, and strictly read-only **DuckDB SQL** — with automatic local **GDPR / KVKK PII masking** so sensitive data never leaves your machine.
## Key Capabilities
- **Local GDPR / KVKK PII Shield:** Deterministically detects and masks emails, EU/TR IBANs, phone numbers, Luhn-checked payment cards, checksum-validated Turkish National IDs (`TCKN`), tax IDs, and API secrets locally before data enters DuckDB or any LLM context, preserving cross-file joins without leaking raw PII.
- **Universal Multi-Format Ingestion:** Loads `.csv`, `.tsv`, `.xlsx`/`.xlsm`, `.json`/`.jsonl`, `.parquet`, `.pdf` (extracts both tables and text via `pdfplumber`, with scanned-PDF detection), `.docx` (extracts both embedded tables and contract clauses), and `.txt`/`.md`.
- **Cross-File Fuzzy Reconciliation (`RapidFuzz`):** Matches messy entity and item names across different files (e.g., an Excel order history vs. a supplier PDF price quote), calculates exact variances and estimated cost impact, and exports clean CSV audit reports.
- **ML Anomaly Detection & Trend Forecast (`scikit-learn`):** Runs `IsolationForest` outlier detection and monthly `LinearRegression` trend forecasting with 95% confidence bands.
- **Document & Contract Diff:** Compares Word, PDF, or text documents clause-by-clause and surfaces changed numbers, currencies, percentages, and durations.
- **Read-Only DuckDB SQL Sandbox:** Executes `SELECT` / `WITH` / `DESCRIBE` / `SUMMARIZE` queries across all loaded tables while blocking DDL, writes, multi-statement SQL, and filesystem reads (`read_csv`, `COPY`, `ATTACH`).
- **Dual UI (Bilingual EN / TR, Dark / Light Theme):** Renders natively as an interactive **SEP-1865 MCP App** (`ui://filedashboard/dashboard.html`) inside Antigravity, Claude Desktop, VS Code, or Cursor — and runs locally in any browser via `filedashboard-web`.
## Quick Start
### 1. Run as an MCP App Server (Antigravity, Claude Desktop, VS Code, Cursor)
Add to your `mcp_config.json` / `claude_desktop_config.json`:
```json
{
"mcpServers": {
"filedashboard": {
"command": "uvx",
"args": ["filedashboard-mcp"]
}
}
}
```
### 2. Run as a Local Private Browser Dashboard (Windows / Mac / Linux)
```bash
uvx --from filedashboard-mcp filedashboard-web
```
Open `http://127.0.0.1:7860` to drag and drop local files with zero cloud uploads.
## MCP Tools
| Tool | Description | Safety |
| :--- | :--- | :--- |
| `open_file_dashboard` | Open the interactive SEP-1865 FileDashboard visual cockpit (loads sample or local files). | Read-only, local |
| `ingest_workspace_files` | Ingest local CSV, Excel, JSON, Parquet, PDF, Word, or TXT/MD files with automatic PII masking. | Read-only, local |
| `reconcile_cross_files` | Fuzzy-match two mounted tables (e.g., Excel vs. PDF) and flag value variances. | Read-only, local |
| `detect_data_anomalies` | Run `IsolationForest` outlier detection on any mounted numeric column. | Read-only, local |
| `query_workspace_sql` | Execute read-only DuckDB SQL across mounted tables. | Read-only, local |
| `compare_documents` | Compare two documents clause-by-clause and extract numeric/SLA shifts. | Read-only, local |
## Development & Tests
```bash
uv sync --python 3.12 --extra dev
uv run pytest -v
uv run ruff check src tests
```
## License
Dual-licensed under **GNU AGPL-3.0-only** ([LICENSE](./LICENSE)) and a **Commercial License** ([COMMERCIAL_LICENSE.md](./COMMERCIAL_LICENSE.md)).
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues