MCP Server for reading Excel files with embedded image extraction. The first MCP that lets AI agents SEE images inside your spreadsheets.
Project description
๐ Excel Vision MCP
The first MCP server that lets AI agents see images inside your spreadsheets.
Read Excel files with full content extraction โ cell data, formulas, merged cells, and embedded images โ all returned as multimodal content your AI can actually understand.
Installation ยท Tools ยท Configuration ยท How It Works ยท FAQ
๐ค The Problem
You ask your AI assistant to analyze an Excel document. It reads the text just fine โ but completely misses the diagrams, screenshots, and charts embedded in the file. That's because every existing Excel MCP server ignores images.
Excel MCP Server fixes this. It extracts embedded images, optimizes them, and returns them as native ImageContent that vision-capable AI models can see and analyze โ alongside all the text data.
โจ Key Features
| Feature | Description |
|---|---|
| ๐ผ๏ธ Image Extraction | Extracts all embedded images with cell-position mapping |
| ๐ Full Content Reading | Text + images in a single call โ nothing is missed |
| ๐ 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 |
Image Extraction โ What Makes This Different
Most Excel MCP servers only read cell values. This server uses a dual extraction strategy:
- Cell-Position Mapping (primary) โ Maps each image to its exact cell location using
openpyxl-image-loader - Archive Scanning (fallback) โ Scans the xlsx ZIP archive's
xl/media/directory to catch any images missed by method 1
The result: zero images left behind, with position metadata when available.
๐ Quick Start
Install via uvx (Recommended)
No installation needed โ runs directly:
uvx excel-vision-mcp
Install via pip
pip install excel-vision-mcp
Then run:
excel-vision-mcp
Install from source
git clone https://github.com/VOYAGER-Inc/excel-vision-mcp.git
cd excel-vision-mcp
uv sync
uv run excel-vision-mcp
๐ง Configuration
Add the server to your MCP client's configuration file.
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"excel-reader": {
"command": "uvx",
"args": ["excel-vision-mcp"]
}
}
}
Cursor
Edit .cursor/mcp.json in your project root:
{
"mcpServers": {
"excel-reader": {
"command": "uvx",
"args": ["excel-vision-mcp"]
}
}
}
Windsurf / VS Code (Copilot)
Edit your MCP settings file:
{
"mcpServers": {
"excel-reader": {
"command": "uvx",
"args": ["excel-vision-mcp"]
}
}
}
Antigravity IDE
Edit ~/.gemini/config/mcp_config.json:
{
"mcpServers": {
"excel-reader": {
"command": "uvx",
"args": ["excel-vision-mcp"]
}
}
}
Note: After editing the config, restart your IDE/client to load the new server.
๐ ๏ธ Available Tools
list_sheets
List all sheets with dimensions, merged cell counts, and image totals. Use this first to understand a workbook's structure.
list_sheets(file_path="/path/to/file.xlsx")
Returns: Sheet names, rowรcolumn dimensions, data ranges, merged cell counts, total image count.
read_excel_data
Read cell data from a specific sheet with pagination support.
read_excel_data(
file_path="/path/to/file.xlsx",
sheet_name="Sheet1", # optional, defaults to first sheet
start_row=1, # optional, 1-indexed
max_rows=200 # optional, default 200
)
Returns: Cell values organized by row with coordinate labels and merged cell indicators.
extract_images
Extract all embedded images from the workbook as base64 ImageContent.
extract_images(
file_path="/path/to/file.xlsx",
sheet_name="Overview", # optional, None = all sheets
max_width=1024, # optional, resize limit
max_height=1024 # optional, resize limit
)
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.
read_full_content(
file_path="/path/to/file.xlsx",
max_rows_per_sheet=500, # optional
max_image_width=1024, # optional
max_image_height=1024 # optional
)
Returns: Complete workbook contents โ every sheet's data as structured text, 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."
get_workbook_overview
Quick structural summary of a workbook โ file size, sheet list, dimensions, image count.
get_workbook_overview(file_path="/path/to/file.xlsx")
search_excel
Case-insensitive text search across all cells in the workbook.
search_excel(
file_path="/path/to/file.xlsx",
query="revenue",
sheet_name="Q4 Report" # optional, None = all sheets
)
Returns: Matching cells with sheet name, coordinate, and value. Limited to 100 results.
โ๏ธ How It Works
Architecture
Your AI Client (Claude, Cursor, etc.)
โ
โ stdio (JSON-RPC)
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Excel MCP Server โ
โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ openpyxl โ โโโโ Cell data, formulas, merged cells
โ โ (Excel parser) โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ openpyxl-image-loader โ โโโโ Images with cell positions
โ โ + zipfile (fallback) โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Pillow โ โโโโ Resize, optimize, base64 encode
โ โ (image processing) โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โ TextContent + ImageContent
โผ
AI sees text AND images
Data Flow & Privacy
- Your file stays on your machine. The server runs locally via
stdioโ no network requests, no uploads, no cloud. - Nothing is written to disk. All image processing happens in-memory (
BytesIObuffers). The original.xlsxfile is never modified. - Memory is freed automatically. After each request, Python's garbage collector reclaims all buffers.
Image Processing Pipeline
Original image in .xlsx (e.g., 2048ร1536px PNG)
โ Extract from ZIP archive / drawing layer
โ Resize to fit max dimensions (default 1024px)
โ Compress (JPEG 80% / PNG optimized)
โ Base64 encode
โ ImageContent returned to AI client (~100-300KB per image)
๐ Supported Formats
| 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 Types
| Image Type | Cell-Mapped | Archive Extraction |
|---|---|---|
| PNG | โ | โ |
| JPEG | โ | โ |
| GIF | โ | โ |
| BMP | โ | โ |
| TIFF | โ ๏ธ Partial | โ |
| EMF/WMF | โ | โ |
=IMAGE() formula |
โ | โ |
| Images in comments | โ | โ |
๐ Performance
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 |
โ FAQ
Why can't it extract images from .xls files?
.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.
Why are some images marked as "orphan"?
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.
Can I use this with models that don't support vision?
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.
Is my data safe?
Yes. The server runs entirely on your local machine via stdio transport. No data is sent over the network, no files are uploaded anywhere, and no temporary files are created on disk. Your Excel files are read in-place and never modified.
How do I handle very large files (100MB+)?
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.
๐บ๏ธ Roadmap
- Write support โ Create and update cells, insert images
- Chart extraction โ Render charts as images
- Formula evaluation โ Show calculated values alongside formulas
- Conditional formatting โ Extract formatting rules
- CSV/TSV support โ Extend to other tabular formats
๐ค Contributing
Contributions are welcome! Please open an issue first to discuss what you'd like to change.
git clone https://github.com/VOYAGER-Inc/excel-vision-mcp.git
cd excel-vision-mcp
uv sync
uv run pytest # Run the test suite
๐ License
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!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file excel_vision_mcp-1.0.2.tar.gz.
File metadata
- Download URL: excel_vision_mcp-1.0.2.tar.gz
- Upload date:
- Size: 76.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e00cad7a2f509e63d9a1d426712eec30a7d0a5359c9bc5a73ae0849d902757fc
|
|
| MD5 |
1eba40d27b444f0443800d018c47dd5e
|
|
| BLAKE2b-256 |
0e6744199ded4812dc2c0fa4550d905f8d98fa39555bd1f4d883fc86571b7c2c
|
Provenance
The following attestation bundles were made for excel_vision_mcp-1.0.2.tar.gz:
Publisher:
publish.yml on VOYAGER-Inc/excel-vision-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
excel_vision_mcp-1.0.2.tar.gz -
Subject digest:
e00cad7a2f509e63d9a1d426712eec30a7d0a5359c9bc5a73ae0849d902757fc - Sigstore transparency entry: 2181134606
- Sigstore integration time:
-
Permalink:
VOYAGER-Inc/excel-vision-mcp@768aaf316606dc21eb65ce00f5dd8a7250ad75d5 -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/VOYAGER-Inc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@768aaf316606dc21eb65ce00f5dd8a7250ad75d5 -
Trigger Event:
release
-
Statement type:
File details
Details for the file excel_vision_mcp-1.0.2-py3-none-any.whl.
File metadata
- Download URL: excel_vision_mcp-1.0.2-py3-none-any.whl
- Upload date:
- Size: 19.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abf2098fa086f923e81f5e70ccf9a67faca1523eb9616f7569fd4e7aa09b3c18
|
|
| MD5 |
9df17c440672ddb54270ac91d74831db
|
|
| BLAKE2b-256 |
8d09654249492b997772ce4016123d874bcacc574c511ac44e1e8ec61ca76a30
|
Provenance
The following attestation bundles were made for excel_vision_mcp-1.0.2-py3-none-any.whl:
Publisher:
publish.yml on VOYAGER-Inc/excel-vision-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
excel_vision_mcp-1.0.2-py3-none-any.whl -
Subject digest:
abf2098fa086f923e81f5e70ccf9a67faca1523eb9616f7569fd4e7aa09b3c18 - Sigstore transparency entry: 2181134737
- Sigstore integration time:
-
Permalink:
VOYAGER-Inc/excel-vision-mcp@768aaf316606dc21eb65ce00f5dd8a7250ad75d5 -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/VOYAGER-Inc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@768aaf316606dc21eb65ce00f5dd8a7250ad75d5 -
Trigger Event:
release
-
Statement type: