KitchenSink4XL

v2.0.0
io.github.KitchenSink4AI/kitchensink4xl Checked 1 day ago Published 1 month ago

Excel (.xlsx) MCP server: calculated/cached/missing labels on every value, formulas, verified writes

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

xl_read Read Excel Workbook

Read-only: look at a workbook before changing it (grid view, cells, queries, find, tables, audits, checks). Never changes a file, and works while it is open in Excel. To change anything use xl_edit, xl_format, xl_structure, xl_workbook or xl_app. Ops, one per line, as name(required; opt optional): what it does. path, backup and verify_com are not repeated; xl_help shows them: - get_workbook_metadata(): Read sheets, true used ranges, names, tables and a hazard summary; the call to orient before editing. - get_grid_view(opt location sheet max_rows max_cols values): Show a sheet or range as a com…

ParameterTypeDescription
op *stringThe operation to run: an op listed in this tool's description, or one of these, in the same format: - audit_styles(opt top): Count the workbook's cell formats against Excel's 64,000 limit and rate the…
argsobjectThe op's arguments as an object. Include path (the workbook file) unless the op's line names other paths or the op reads no workbook; unknown keys are refused. xl_help lists every argument.

xl_edit Edit Excel Values and Formulas

Values and formulas: set one or many cells, write, clear, copy or move ranges, the batch editor (apply_edits), find and replace, and CSV, TSV or JSON import. A string starting with '=' is always stored as a formula. Formatting is xl_format; sheets, rows and tables are xl_structure. Every change backs the file up first, saves atomically and verifies after writing. Refuses a workbook open in Excel, and a workbook whose fragile parts a save would drop unless allow_loss is true. Ops, one per line, as name(required; opt optional): what it does. path, backup and verify_com are not repeated; xl_help…

ParameterTypeDescription
op *stringThe operation to run: an op listed in this tool's description, or one of these, in the same format: - set_formula(location, formula; opt sheet echo_cells allow_loss): Write a formula to a cell, or fil…
argsobjectThe op's arguments as an object. Include path (the workbook file) unless the op's line names other paths or the op reads no workbook; unknown keys are refused. xl_help lists every argument.

xl_format Excel Formatting and Objects

How cells look and what sits on the sheet: number formats, fonts, fills, borders, named styles, the format painter, column widths and row heights, merges, conditional formats, comments, hyperlinks, images, charts and sheet view. Values are xl_edit. Every change backs the file up first; refuses a workbook open in Excel. Ops, one per line, as name(required; opt optional): what it does. path, backup and verify_com are not repeated; xl_help shows them: - format_cells(location; opt number_format font fill border alignment sheet allow_loss): Apply formatting to a range, merging onto the existing sty…

ParameterTypeDescription
op *stringThe operation to run: an op listed in this tool's description, or one of these, in the same format: - manage_hyperlink(action; opt location target display tooltip sheet allow_loss): Add, remove or lis…
argsobjectThe op's arguments as an object. Include path (the workbook file) unless the op's line names other paths or the op reads no workbook; unknown keys are refused. xl_help lists every argument.

xl_structure Excel Sheets, Rows and Tables

Workbook structure: add, rename, delete or hide sheets, insert or delete rows and columns (references are rewritten), tables, named ranges, sort, filters and data validation. Values are xl_edit. Every change backs the file up first; refuses a workbook open in Excel. Ops, one per line, as name(required; opt optional): what it does. path, backup and verify_com are not repeated; xl_help shows them: - manage_worksheet(action; opt sheet new_name index state allow_loss): Add, delete, rename, copy, reorder, hide or unhide a sheet; rename rewrites references to it and delete turns them into #REF!, as…

ParameterTypeDescription
op *stringThe operation to run: an op listed in this tool's description, or one of these, in the same format: - manage_data_validation(action; opt location dv_type values operator formula1 formula2 allow_blank…
argsobjectThe op's arguments as an object. Include path (the workbook file) unless the op's line names other paths or the op reads no workbook; unknown keys are refused. xl_help lists every argument.

xl_workbook Excel Workbook Files

Whole files: create, copy, backups, document properties, protection, page layout, headers and footers, and export of a range or sheets to CSV, TSV or JSON. Exports never overwrite the workbook or its backups. Edits inside a sheet belong to the other tools; manage_backups lists, restores and snapshots the automatic backups. Ops, one per line, as name(required; opt optional): what it does. path, backup and verify_com are not repeated; xl_help shows them: - create_workbook(opt sheets overwrite): Create a new .xlsx workbook at path with the given sheet names (default a single 'Sheet1'). - copy_wor…

ParameterTypeDescription
op *stringThe operation to run: an op listed in this tool's description, or one of these, in the same format: - export_range(opt location sheet fmt header values records out_file overwrite bom): Export a range,…
argsobjectThe op's arguments as an object. Include path (the workbook file) unless the op's line names other paths or the op reads no workbook; unknown keys are refused. xl_help lists every argument.

xl_app Excel Application (Hidden Instance)

Needs Microsoft Excel on Windows: full recalculation, real pivot tables, PDF export, sheet render to PNG, format conversion, password encryption, exact autofit, goal seek, sparklines and the opens-clean check. Reads go through xl_read, and cell, format and structure edits through xl_edit, xl_format and xl_structure. Ops that change the workbook back it up first. These ops run in a private hidden Excel that this server starts and closes. They never attach to or change the user's own Excel, and a workbook the user has open in Excel is refused, not edited. Ops, one per line, as name(required; opt…

ParameterTypeDescription
op *stringThe operation to run: an op listed in this tool's description, or one of these, in the same format: - com_goal_seek(target_cell, target_value, changing_cell; opt sheet save timeout_seconds allow_netwo…
argsobjectThe op's arguments as an object. Include path (the workbook file) unless the op's line names other paths or the op reads no workbook; unknown keys are refused. xl_help lists every argument.

xl_help Excel Tool Help

Read-only help. Call it when an op's arguments are unclear or after a BAD_PARAMS refusal. With no arguments it lists every tool and its ops; with op it returns that op's full arguments, an example call and the tool that runs it; topic='location' explains the location object. Reads no file.

ParameterTypeDescription
opstringAn op name, for that op's arguments and an example; leave it out to list every tool and op.
topicstring'location' explains the location object that positional ops take.