Excel reading MCP with embedded image extraction β AI agents see text and images in xlsx files
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
This fixes that. Other Excel MCP servers return cell values and silently drop every embedded image, so the flowchart your spec depends on never reaches the model. Excel Vision MCP returns them as native ImageContent your AI can actually look at β alongside the text, formatting, and formulas.
Installation Β· Tools Β· Configuration Β· How It Works Β· FAQ
Ask your assistant to review a requirements spec. Half the meaning lives in screenshots, flowcharts, and annotated diagrams pasted into cells β and every Excel MCP server hands the model text only. The answer comes back confident and incomplete, because the model never knew the pictures existed.
The same blind spot applies to the other signals authors leave behind:
| What the author did | What other MCP servers report | What Excel Vision MCP reports |
|---|---|---|
Pasted a flowchart in B12 | nothing | The image itself, mapped to B12 |
| Struck through a cancelled row | Legacy export | Legacy export [S] β strikethrough |
| Highlighted a row for review | Pending | Pending [HL:yellow] |
| Hid an internal-cost column | The hidden values, as if normal | Skipped β unless a formula needs it |
Same file. One agent sees a table of strings; the other sees what the author actually meant.
| Feature | Description |
|---|---|
| πΌοΈ Image Extraction | Extracts all embedded images with cell-position mapping |
| π Full Content Reading | Text + images in a single call β nothing is missed |
| π·οΈ Format-Aware Reading | Reports bold, strikethrough, highlights and font colors so agents read intent, not just text |
| π Hidden-Content Aware | Skips hidden rows/columns by default, keeping those formulas depend on |
| βοΈ Write Support | Create workbooks, update cells, write formulas, insert images |
| π¨ Formatting | Colors, fonts, borders, alignment, number formats, auto-fit columns |
| π‘οΈ Atomic Saves | A failed write can never corrupt your original file |
| π Smart Pagination | Handles massive spreadsheets without blowing up context |
| π Text Search | Find content across all sheets instantly |
| π 100% Local | Your files never leave your machine |
| β‘ Fast | 16MB file with 40 images processed in ~4 seconds |
| π₯οΈ Cross-Platform | macOS, Linux, Windows |
Most Excel MCP servers only read cell values. This server uses a dual extraction strategy:
openpyxl-image-loaderxl/media/ directory to catch any images missed by method 1The result: zero images left behind, with position metadata when available.
A requirements spec where the workflow lives in a pasted diagram and the status lives in cell colors:
You: Review this spec and tell me which features are still in scope, and how the dispatch flow works.
read_full_content returns the sheet as text with formatting markers, then the embedded diagram as an image:
The model can now answer both halves of the question: "Legacy CSV export is struck through and marked cancelled, so three features remain in scope β and the flowchart in B12 shows dispatch requires roll-call confirmation before assignment."
Without image support, the second half is unanswerable. Without formatting, the cancelled row looks identical to the active ones.
uvx (Recommended)No installation needed β runs directly:
pipThen run:
The server speaks JSON-RPC over stdin/stdout, so it must run attached (-i). Mount the directory holding your files and reference them by their in-container path (/data/report.xlsx). The image sets EXCEL_VISION_MCP_ALLOWED_DIRS=/data, so reads and writes stay inside the mount.
As an MCP client config:
Add the server to your MCP client's configuration file.
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
Edit .cursor/mcp.json in your project root:
Edit your MCP settings file:
Edit ~/.gemini/config/mcp_config.json:
Note: After editing the config, restart your IDE/client to load the new server.
By default the server can read/write any Excel file your user account can access. To sandbox it to specific directories, set EXCEL_VISION_MCP_ALLOWED_DIRS (multiple paths separated by : on macOS/Linux, ; on Windows):
list_sheetsList all sheets with dimensions, merged cell counts, and image totals. Use this first to understand a workbook's structure.
Returns: Sheet names, rowΓcolumn dimensions, data ranges, merged cell counts, total image count.
read_excel_dataRead cell data from a specific sheet with pagination support.
Returns: Cell values organized by row with coordinate labels and markers for merged cells and formatting.
| Marker | Meaning |
|---|---|
[M] | Merged cell |
[B] [I] [S] | Bold Β· Italic Β· Strikethrough |
[HL:color] | Highlighted background (color named, e.g. yellow, red) |
[C:color] | Font color |
[HIDDEN-REF] | Hidden cell kept because a visible formula references it |
Markers and a short legend appear only on sheets that actually use formatting, so plain sheets cost no extra context.
extract_imagesExtract all embedded images from the workbook as base64 ImageContent.
Returns: List of ImageContent (base64) with metadata β cell position, sheet name, original dimensions.
read_full_content βThe star tool. Reads ALL text data AND all embedded images in a single call. Ideal for comprehensive document analysis.
Returns: Complete workbook contents β every sheet's data as structured text (with formatting markers), followed by every embedded image with cell-position mapping.
Example use case: "Analyze this requirements document and summarize all use cases, including the workflow diagrams."
All read tools skip hidden rows and columns by default β an author who hid them signalled they aren't part of the content to review.
One exception: a hidden cell that a visible formula references is still returned, marked [HIDDEN-REF], because its value drives results you can see. Skipped content is always reported so nothing disappears silently:
Pass include_hidden=true to read_excel_data, read_full_content, or search_excel to read everything.
get_workbook_overviewQuick structural summary of a workbook β file size, sheet list, dimensions, image count.
search_excelCase-insensitive text search across all cells in the workbook.
Returns: Matching cells with sheet name, coordinate, and value. Limited to 100 results.
create_excel_fileCreate a new empty workbook with the sheets you name.
add_excel_sheetAdd a new empty sheet to an existing workbook.
update_excel_cellsSet individual cells by coordinate. Values starting with = are written as formulas.
Note: newly written formulas show no calculated value until the file is opened in Excel. For merged ranges, write to the top-left anchor cell.
write_excel_rowsWrite a rectangular block of tabular data in one call.
insert_excel_imageInsert a local image file into a workbook, anchored at a cell.
format_excel_cellsStyle a range: font, colors, borders, alignment, number formats. Only the attributes you pass are changed β existing styling is preserved.
set_excel_column_widthsSet column widths manually and/or auto-fit to content.
Auto-fit counts full-width CJK characters (ζ₯ζ¬θͺ) as 2 units. Cells longer than
max_widthget wrap text enabled instead of stretching the column β Excel auto-expands their row heights on open.
All write tools use atomic saves: the workbook is written to a temp file and swapped into place, so a failed save never corrupts your original.
.xlsmmacros are preserved. Known openpyxl limitation: pivot tables and some complex chart features are not preserved on re-save.
stdio β no network requests, no uploads, no cloud.BytesIO buffers). Write tools change only the exact file you specify, via atomic saves (temp file + swap) that can never leave a half-written workbook.EXCEL_VISION_MCP_ALLOWED_DIRS (path-separator-separated list) to restrict which directories the server may read or write. Unset = no restriction.| Format | Status | Notes |
|---|---|---|
.xlsx | β Fully supported | Excel 2007+ Open XML |
.xlsm | β Fully supported | Macro-enabled workbooks |
.xls | β Not supported | Legacy Excel 97-2003 format |
.csv | β Not supported | Use a CSV-specific tool |
| Image Type | Cell-Mapped | Archive Extraction |
|---|---|---|
| PNG | β | β |
| JPEG | β | β |
| GIF | β | β |
| BMP | β | β |
| TIFF | β οΈ Partial | β |
| EMF/WMF | β | β |
=IMAGE() formula | β | β |
| Images in comments | β | β |
Tested on real-world enterprise Excel files (macOS, Apple Silicon):
| File | Size | Sheets | Images Extracted | Time |
|---|---|---|---|---|
| Requirements Doc A | 4.5 MB | 12 | 24 | 2.4s |
| Requirements Doc B | 5.0 MB | 6 | 18 | 2.4s |
| Requirements Doc C | 10.7 MB | 6 | 13 | 1.5s |
| Master Spec | 16.0 MB | 12 | 40 | 4.4s |
.xls is the legacy binary format (Excel 97-2003). It uses a completely different internal structure (BIFF) compared to .xlsx (ZIP-based Open XML). The libraries used (openpyxl, openpyxl-image-loader) only support the modern Open XML format. If you have .xls files, convert them to .xlsx using Excel or LibreOffice first.
The primary extraction method (openpyxl-image-loader) maps images to specific cells but may miss images that aren't anchored to the standard drawing layer. The fallback archive scanner catches these "orphan" images from the xl/media/ directory β you get every image, just without cell-position metadata for orphans.
Yes! Text data extraction works perfectly with any model. Image extraction will still return ImageContent, but text-only models will simply ignore the image data. You won't get errors.
Yes. The server runs entirely on your local machine via stdio transport. No data is sent over the network and no files are uploaded anywhere. Read tools never modify your files; write tools change only the file you explicitly target, using atomic saves so a failed write can't corrupt it. You can also sandbox the server to specific directories with the EXCEL_VISION_MCP_ALLOWED_DIRS environment variable.
The server uses read_only mode for data iteration and processes images in-memory one at a time. For extremely large files, use read_excel_data with pagination (start_row + max_rows) instead of read_full_content to control memory usage.
Contributions are welcome! Please open an issue first to discuss what you'd like to change.
MIT β use it however you want.
Built for AI agents that need to see the whole picture, not just the text.
β Star this repo if it helped you!
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/excel-vision-mcp)<a href="https://allmcps.com/mcp/excel-vision-mcp"><img src="https://allmcps.com/api/badge/excel-vision-mcp?style=directory" alt="Excel Vision Mcp on AllMCPs" /></a>