excel-vision-mcp

v1.2.1
io.github.VOYAGER-Inc/excel-vision-mcp Checked 3 hours ago Published 4 months ago

Excel MCP with image extraction and write support — AI agents see and edit xlsx files

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

list_sheets

List all sheets in an Excel workbook with their dimensions and metadata. Returns sheet names, row/column counts, data ranges, merged cell counts, and total embedded image count. Use this to understand the structure of an Excel file before reading its contents. @param file_path: Absolute path to the .xlsx file. @return: Formatted text with workbook structure overview.

ParameterTypeDescription
file_path *string

read_excel_data

Read cell data from an Excel sheet with pagination for large files. Returns cell values organized by row with coordinate labels and formatting markers ([B]=bold, [S]=strikethrough, [HL:color]=highlight, [C:color]=font color) that reveal the author's emphasis and status marks. Hidden rows/columns are skipped by default — the author hid them for a reason — except hidden cells that visible formulas depend on, which are kept and marked [HIDDEN-REF]. @param file_path: Absolute path to the .xlsx file. @param sheet_name: Sheet to read. None = first/active s…

ParameterTypeDescription
file_path *string
include_hiddenboolean
max_rowsinteger
sheet_name
start_rowinteger

extract_images

Extract all embedded images from an Excel file. Uses dual extraction strategy: cell-position mapping (primary) and ZIP archive scanning (fallback) to ensure no images are missed. Returns images as base64-encoded ImageContent that AI can visually analyze. @param file_path: Absolute path to the .xlsx file. @param sheet_name: Specific sheet, or None for all sheets. @param max_width: Max width in pixels for image optimization (default 1024). @param max_height: Max height in pixels for image optimization (default 1024). @return: Mixed list of TextContent (meta…

ParameterTypeDescription
file_path *string
max_heightinteger
max_widthinteger
sheet_name

read_full_content

Read the FULL content of an Excel file including all text data AND embedded images. This is the primary tool for comprehensive document analysis. Returns all sheet data as structured text followed by all extracted images with their cell positions. Ideal for analyzing documents where both text and diagrams/screenshots are essential, such as requirement definitions, reports, or design specs. For very large files, data is paginated per sheet. Image extraction uses dual strategy (cell-mapping + archive) for maximum coverage. Cell text carries formatting markers (…

ParameterTypeDescription
file_path *string
include_hiddenboolean
max_image_heightinteger
max_image_widthinteger
max_rows_per_sheetinteger

get_workbook_overview

Get a quick summary overview of an Excel workbook. Returns file metadata, sheet list with dimensions, image count, and merged cell information. Use this for a fast assessment before deeper analysis. @param file_path: Absolute path to the .xlsx file. @return: Formatted text summary.

ParameterTypeDescription
file_path *string

search_excel

Search for text content across all cells in an Excel workbook. Performs case-insensitive substring search and returns matching cells with their coordinates and values. Hidden rows/columns are excluded by default. Limited to 100 results. @param file_path: Absolute path to the .xlsx file. @param query: Text to search for. @param sheet_name: Limit to specific sheet, or None for all sheets. @param include_hidden: Set true to also search hidden rows/columns. @return: Formatted text with search results.

ParameterTypeDescription
file_path *string
query *string
include_hiddenboolean
sheet_name

create_excel_file

Create a new empty .xlsx workbook. @param file_path: Absolute destination path; parent directory must exist. @param sheet_names: Sheet names to create in order. None = single "Sheet1". @param overwrite: Set true to replace an existing file. Default false. @return: Confirmation with the created sheet list.

ParameterTypeDescription
file_path *string
overwriteboolean
sheet_names

add_excel_sheet

Add a new empty sheet to an existing workbook. @param file_path: Absolute path to the .xlsx/.xlsm file. @param sheet_name: Name for the new sheet; must not already exist. @param position: 0-based index to insert at. None = append at the end. @return: Confirmation with the updated sheet list.

ParameterTypeDescription
file_path *string
sheet_name *string
position

update_excel_cells

Set individual cells by coordinate, e.g. {"A1": "Title", "B2": 42}. String values starting with "=" are written as formulas (e.g. "=SUM(A1:A5)"). Note: newly written formulas have no calculated value until the file is opened in Excel. For cells inside a merged range, write to the range's top-left anchor cell. The save is atomic — a failed write never corrupts the original file. @param file_path: Absolute path to the .xlsx/.xlsm file. @param updates: Mapping of cell coordinate to value. @param sheet_name: Target sheet. None = first sheet. @return: C…

ParameterTypeDescription
file_path *string
updates *object
sheet_name

write_excel_rows

Write a rectangular block of rows starting at start_cell. Efficient for tabular data: pass a list of rows, each a list of values. Existing cells in the target range are overwritten; cells outside it are untouched. The save is atomic. @param file_path: Absolute path to the .xlsx/.xlsm file. @param rows: List of rows, each a list of cell values. @param sheet_name: Target sheet. None = first sheet. @param start_cell: Top-left coordinate of the block (default "A1"). @return: Confirmation with the written range.

ParameterTypeDescription
file_path *string
rows *array
sheet_name
start_cellstring

insert_excel_image

Insert an image from a local file into a workbook, anchored at a cell. @param file_path: Absolute path to the .xlsx/.xlsm file. @param image_path: Absolute path to the image file (PNG/JPEG/GIF/BMP). @param cell: Anchor cell coordinate (e.g. "B2"). @param sheet_name: Target sheet. None = first sheet. @param width: Display width in pixels. None = natural size. @param height: Display height in pixels. None = natural size. @return: Confirmation with anchor position and display size.

ParameterTypeDescription
cell *string
file_path *string
image_path *string
height
sheet_name
width

format_excel_cells

Apply formatting to a cell range: font, colors, borders, alignment, number format. Only the attributes you pass are changed; existing styling is preserved. Example — style a header row: cell_range="A1:D1", bold=true, font_color="FFFFFF", fill_color="4472C4", horizontal_align="center", border_style="thin". @param file_path: Absolute path to the .xlsx/.xlsm file. @param cell_range: Range like "A1:C10" or a single cell like "B2". @param sheet_name: Target sheet. None = first sheet. @param font_name: Font family (e.g. "Calibri"). @param font_size: Font…

ParameterTypeDescription
cell_range *string
file_path *string
bold
border_edgesstring
border_style
fill_color
font_color
font_name
font_size
horizontal_align
italic
number_format
sheet_name
vertical_align
wrap_text

set_excel_column_widths

Set column widths manually and/or auto-fit them to content. Auto-fit sizes each column to its longest content (full-width CJK characters count double), capped at max_width. Cells longer than the cap get wrap_text enabled so long descriptions wrap onto multiple lines instead of stretching the column; Excel auto-expands their row heights on open. Columns in `widths` are set exactly and skipped by auto-fit. @param file_path: Absolute path to the .xlsx/.xlsm file. @param sheet_name: Target sheet. None = first sheet. @param widths: Explicit widths per colu…

ParameterTypeDescription
file_path *string
auto_fitboolean
max_widthinteger
sheet_name
widths
wrap_overflowboolean