mcp-win-stdio-excel-db

v0.5.6
mcp-win-stdio-excel-db Checked 2 hours ago Published 2 days ago

High-Performance Excel & Database Power Pipeline MCP Server: Zero-Context Streaming, Cross-Source Joins, and Diff Auditing.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

db_to_excel_stream

Stream database query results directly to an Excel file without loading intermediate rows into LLM context. Args: sql_query: SQL SELECT query to execute on the database. target_excel_path: Path to the target .xlsx file. connection_name_or_url: Database connection name or connection URL (uses default if omitted). sheet_name: Worksheet name to write to. if_sheet_exists: 'replace', 'overlay', or 'new'. table_style: Excel table style (e.g. 'TableStyleMedium9' or None). autofit_columns: Auto-adjust column widths based on contents.…

ParameterTypeDescription
sql_query *string
target_excel_path *string
autofit_columnsboolean
connection_name_or_url
if_sheet_existsstring
sheet_namestring
table_style

excel_to_db_upsert

Bulk stream an Excel worksheet directly into a database table with chunking. Args: excel_path: Path to the source Excel file. target_table: Destination database table name. connection_name_or_url: Target database connection name or URL. sheet_name: Sheet name or index (default: 0). if_table_exists: 'append', 'replace', or 'fail'. chunk_size: Batch size for chunked database insertion.

ParameterTypeDescription
excel_path *string
target_table *string
chunk_sizeinteger
connection_name_or_url
if_table_existsstring
sheet_name

query_unified_sources

Execute a unified cross-source SQL query joining SQL Database tables and Excel spreadsheets in memory. Args: pipeline_spec_json: Spec dictionary or JSON string defining data sources, transformation SQL, and export target.

ParameterTypeDescription
pipeline_spec_json *

reconcile_db_vs_excel

Compare a database query against an Excel spreadsheet, detecting missing records and field-level mismatches.

ParameterTypeDescription
excel_path *string
key_columns *array
sql_query *string
compare_columns
connection_name_or_url
output_report_path
sheet_name

compare_master_datasets

Deterministically compare two master datasets (Excel vs Excel, DB vs Excel, or DB vs DB). Detects additions, removals, and field discrepancies with floating-point tolerance. Produces a styled multi-tab Excel audit report with KPI summary cards and highlighted diffs. Args: source_a: Baseline dataset path, dict, or JSON spec. source_b: Comparison dataset path, dict, or JSON spec. key_columns: Primary key column list in Source A (e.g. ["material_number"]). source_a_json: Optional baseline dataset JSON string or path. source_b_json: Optiona…

ParameterTypeDescription
column_mapping
column_mapping_json
compare_columns
ignore_whitespace_caseboolean
key_columns
numeric_tolerancenumber
output_audit_path
output_report_path
source_a
source_a_json
source_a_path
source_b
source_b_json
source_b_path
tolerance

generate_master_migration_plan

Generate atomic, transactional PostgreSQL/MySQL migration SQL from an Excel master. Includes pre-flight foreign key validation (resolving codes like 'm' to UUIDs against live DB) and conflict handling (UPSERT). Args: excel_path: Path to Excel master spreadsheet. target_table: Destination DB table (e.g. 'props_management.materials'). key_columns: Primary/unique key columns (e.g. ['material_number']). column_mapping_json: Dict or JSON mapping Excel headers to DB columns. connection_name_or_url: Optional DB connection alias (e.g. 'showreel…

ParameterTypeDescription
column_mapping_json *
excel_path *string
key_columns *array
target_table *string
connection_name_or_url
fk_lookups_json
on_conflict_actionstring
output_sql_path
price_history_table
sheet_name

sync_master_to_db

Execute master data synchronization against live database with transactional safety. Dry-run mode (default) simulates the entire migration and verifies all constraints without committing. Args: excel_path: Path to Excel master spreadsheet. target_table: Destination database table. key_columns: Primary/unique key columns. column_mapping_json: Dict or JSON mapping Excel headers to DB columns. connection_name_or_url: Target database connection alias. sheet_name: Sheet name or index. fk_lookups_json: Optional dict or JSON mappin…

ParameterTypeDescription
column_mapping_json *
connection_name_or_url *string
excel_path *string
key_columns *array
target_table *string
chunk_sizeinteger
dry_runboolean
fk_lookups_json
sheet_name

generate_multi_table_migration_plan

Generate a single atomic PostgreSQL/MySQL migration script from multiple sheets in an Excel workbook. Each item in table_mappings_json specifies: - sheet_name: Sheet name or 0-based index - target_table: Destination DB table - key_columns: List of primary/unique key columns - column_mapping: Dict mapping Excel headers to DB columns - fk_lookups: Optional FK lookup definitions - on_conflict_action: Optional override ('update' or 'nothing')

ParameterTypeDescription
excel_path *string
table_mappings_json *
connection_name_or_url
on_conflict_actionstring
output_sql_path

sync_multi_table_to_db

Synchronize multiple Excel sheets into multiple database tables within a single atomic transaction. Dry-run mode (default) validates all constraints and rolls back safely with zero side effects.

ParameterTypeDescription
connection_name_or_url *string
excel_path *string
table_mappings_json *
dry_runboolean
on_conflict_actionstring

py_template_pipeline

Execute custom Python/Pandas logic across multiple data sources to construct structured DataFrames (e.g. Materials Summary + Inventory Details), and inject them into a styled Excel template workbook as styled tables. Args: template_excel_path: Path to master/template Excel workbook. output_excel_path: Path to save the populated workbook. pipeline_spec_json: Dict or JSON string defining data sources, python transformation script, and placement targets.

ParameterTypeDescription
output_excel_path *string
pipeline_spec_json *
template_excel_path *string

db_to_excel_template

Inject database query results into a pre-styled Excel template preserving logos, charts, and formulas. Args: sql_query: SQL query to execute. template_excel_path: Path to existing template .xlsx. output_excel_path: Destination path for populated .xlsx. connection_name_or_url: Database connection name or URL. sheet_name: Sheet name to write into. start_cell: Top-left anchor cell (e.g. 'A2', 'B5').

ParameterTypeDescription
output_excel_path *string
sql_query *string
template_excel_path *string
connection_name_or_url
sheet_namestring
start_cellstring