
MCP服务器赋予Claude对Excel和CSV文件的全部读写和分析权限。37个工具——从基础单元格读取到财务建模。
概览
MCP服务器赋予Claude对Excel和CSV文件的全部读写和分析权限。37个工具——从基础单元格读取到财务建模。 —— 添加到你的 MCP 配置中(claude_desktop_config.json 或光标的 mcp.json): 无需全局安装——直接运行: 对于AI驱动的工具(parse_natural_language、explain_formula、smart_data_analysis),可以创建一个.env文件: 任何一个提供商都足够了。本地的备选方案无需密钥即可。 AI工具会将正在分析的电子表格内容发送给你配置的供应商(Anthropic、OpenAI、DeepSeek或Gemini)。保持密钥未设置,以确保每项操作都本地化——内置的备用服务提供商不会进行网络调用。 服务器只读写.csv、.xlsx和.xls文件,并以本地进程运行,拥有用户权限。 默认情况下,你指定的任何路径都是允许的,因为工具的目的是打开磁盘上任意的电子表格。
概述(AI 翻译)
MCP服务器赋予Claude对Excel和CSV文件的全部读写和分析权限。37个工具——从基础单元格读取到财务建模。
安装
选项1:NPM(推荐)
然后在你的MCP客户端中添加:
克劳德代码:
Claude 桌面 / 光标 — 添加到你的 MCP 配置(claude_desktop_config.json 或光标的 mcp.json):
选项2:npx(不安装)
无需全局安装——直接运行:
克劳德代码:
Claude桌面 / 光标:
选项3:来自源头
克劳德代码:
Claude桌面 / 光标:
它能做什么
| 类别 | 工具 | 示例 |
|---|---|---|
| 阅读与导航 | read_file, get_cell, get_range、get_headers、search、filter_rows、aggregate |
读取文件、搜索值、过滤行、列和 |
大文件read_file_chunked, get_file_info |
将100MB+文件分段流式传输 | |
| 写入并格式化 | write_file, add_sheet, write_multi_sheet, export_analysis、format_cells, auto_fit_columns |
创建Excel/CSV,多表格,含公式、样式单元格 |
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Excel MCP Server
MCP server that gives Claude full read/write/analyze power over Excel and CSV files. 37 tools — from basic cell reads to financial modeling.
Install
Option 1: npm (Recommended)
npm install -g excel-csv-mcp-server
Then add to your MCP client:
Claude Code:
claude mcp remove excel-csv # if previously added
claude mcp add excel-csv --transport stdio excel-csv-mcp-server
Claude Desktop / Cursor — add to your MCP config (claude_desktop_config.json or Cursor’s mcp.json):
{
"mcpServers": {
"excel-csv": {
"command": "excel-csv-mcp-server"
}
}
}
Option 2: npx (No Install)
No global install needed — runs directly:
Claude Code:
claude mcp add excel-csv stdio npx -- excel-csv-mcp-server
Claude Desktop / Cursor:
{
"mcpServers": {
"excel-csv": {
"command": "npx",
"args": ["-y", "excel-csv-mcp-server"]
}
}
}
Option 3: From Source
git clone https://github.com/ishayoyo/excel-mcp.git
cd excel-mcp
npm install
npm run build
Claude Code:
claude mcp add excel-csv stdio node /path/to/excel-mcp/dist/index.js
Claude Desktop / Cursor:
{
"mcpServers": {
"excel-csv": {
"command": "node",
"args": ["/path/to/excel-mcp/dist/index.js"]
}
}
}
What It Can Do
| Category | Tools | Examples |
|---|---|---|
| Read & Navigate | read_file, get_cell, get_range, get_headers, search, filter_rows, aggregate |
Read files, search values, filter rows, sum columns |
| Large Files | read_file_chunked, get_file_info |
Stream 100MB+ files in chunks |
| Write & Format | write_file, add_sheet, write_multi_sheet, export_analysis, format_cells, auto_fit_columns |
Create Excel/CSV, multi-sheet with formulas, style cells |
| Analytics | statistical_analysis, correlation_analysis, data_profile, pivot_table |
Stats, correlations, profiling, pivot tables |
| Financial | dcf_analysis, budget_variance_analysis, ratio_analysis, scenario_modeling, trend_analysis |
DCF valuation, budget vs actual, financial ratios, what-if scenarios |
| Data Cleaning | find_duplicates, data_cleaner, vlookup_helper |
Remove duplicates, fix dates/phones/names, cross-file lookups |
| Bulk Ops | bulk_aggregate_multi_files, bulk_filter_multi_files |
Aggregate/filter across multiple files |
| Validation | validate_data_consistency |
Cross-file referential integrity checks |
| AI-Powered | evaluate_formula, parse_natural_language, explain_formula, smart_data_analysis, ai_provider_status |
Evaluate formulas, natural language to formula, AI analysis |
AI Providers (Optional)
For AI-powered tools (parse_natural_language, explain_formula, smart_data_analysis), create a .env file:
cp .env.example .env
ANTHROPIC_API_KEY=your-key
安装
npx -y excel-csv-mcp-server配置
{
"mcpServers": {
"excel-csv": {
"command": "excel-csv-mcp-server"
}
}
}