
Excel Vision Mcp
io.github.VOYAGER-Inc由 GitHub 帳號 VOYAGER-Inc 發布v1.2.1更新於 Oct 24, 2026
Excel MCP with image extraction and write support — AI agents see and edit xlsx files
概覽
本機 MCP 伺服器,讓 AI 助理讀取和編輯 Excel 活頁簿,並把內嵌圖片以可檢視的影像內容回傳。
- 可以做什麼
- 列出工作表並取得活頁簿概觀,包含尺寸和圖片數量,也可在各工作表間搜尋儲存格,支援分頁和選擇性讀取隱藏列欄。讀取儲存格資料並附上粗體、刪除線、醒目提示和字型顏色等格式標記,或一次讀取全部文字與內嵌圖片。擷取內嵌圖片為影像內容,並對應到所在儲存格位置。建立活頁簿和工作表,更新儲存格並寫入公式,批次寫入表格列資料。將本機圖片插入活頁簿,並設定格式、框線、數字格式和欄寬。
- 適用情境
- 適合審閱或產出 .xlsx、.xlsm 檔案,尤其是重點藏在貼上的圖表、截圖或儲存格格式中的需求文件、報告或加註的試算表。也適合需要建立或修改活頁簿而不只是讀取的助理。
- 執行需求
- 以 Python 套件形式透過 stdio 在本機執行,可用 uvx 或 pip install 啟動,也可用 Docker 並掛載檔案目錄。不需要帳號、API 金鑰或網路存取。可選設定 EXCEL_VISION_MCP_ALLOWED_DIRS 限制可讀寫的目錄。僅支援 .xlsx 和 .xlsm,不支援 .xls 和 .csv。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Excel Vision Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
📊 Excel Vision MCP
Your AI reads the spreadsheet. It can't see the diagram in cell B12.
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.
[Python 3.11+] [License: MIT] [MCP] [PyPI]
Installation · Tools · Configuration · How It Works · FAQ
🤔 The Problem
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:
Same file. One agent sees a table of strings; the other sees what the author actually meant.
✨ Key Features
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.
👀 See It In Action
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.
🚀 Quick Start
Install via uvx (Recommended)
No installation needed — runs directly:
Install via pip
Then run:
Install from source
Run with Docker
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:
🔧 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):
Cursor
Edit .cursor/mcp.json in your project root:
Windsurf / VS Code (Copilot)
Edit your MCP settings file:
Antigravity IDE
Edit ~/.gemini/config/mcp_config.json:
Note: After editing the config, restart your IDE/client to load the new server.
Restricting file access (optional)
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):
🛠️ Available Tools
list_sheets
List 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_data
Read 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.
Markers and a short legend appear only on sheets that actually use formatting, so plain sheets cost no extra context.
extract_images
Extract 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."
Hidden rows & columns
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_overview
Quick structural summary of a workbook — file size, sheet list, dimensions, image count.
search_excel
Case-insensitive text search across all cells in the workbook.
Returns: Matching cells with sheet name, coordinate, and value. Limited to 100 results.
create_excel_file
Create a new empty workbook with the sheets you name.
add_excel_sheet
Add a new empty sheet to an existing workbook.
update_excel_cells
Set 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_rows
Write a rectangular block of tabular data in one call.
insert_excel_image
Insert a local image file into a workbook, anchored at a cell.
format_excel_cells
Style a range: font, colors, borders, alignment, number formats. Only the attributes you pass are changed — existing styling is preserved.
set_excel_column_widths
Set 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.
⚙️ How It Works
Architecture
Data Flow & Privacy
- Your file stays on your machine. The server runs locally via
stdio— no network requests, no uploads, no cloud. - Read tools never modify your files. All image processing happens in-memory (
BytesIObuffers). Write tools change only the exact file you specify, via atomic saves (temp file + swap) that can never leave a half-written workbook. - Optional directory sandbox. Set
EXCEL_VISION_MCP_ALLOWED_DIRS(path-separator-separated list) to restrict which directories the server may read or write. Unset = no restriction. - Memory is freed automatically. After each request, Python's garbage collector reclaims all buffers.
Image Processing Pipeline
📋 Supported Formats
Image Types
📊 Performance
Tested on real-world enterprise Excel files (macOS, Apple Silicon):
❓ 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 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.
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 workbooks, update cells, write formulas, insert images (v1.1.0)
- Format-aware reading — Bold, strikethrough, highlights, colors; hidden-content handling (v1.2.0)
- Formula evaluation — Show formulas alongside their calculated values
- CSV/TSV support — Extend to other tabular formats
- Conditional formatting — Extract formatting rules
- Chart extraction — Render charts as images
🤝 Contributing
Contributions are welcome! Please open an issue first to discuss what you'd like to change.
📄 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!
來源:README.md,提交 1462d4d
工具
0版本歷史
1- v1.2.1最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分