ExcelForge
A Windows-based MCP server that enables AI assistants to manage Excel files through the desktop application, supporting workbook operations, data manipulation, and formula validation. It features robust safety tools including snapshot-based rollbacks, path restrictions, and comprehensive audit logging.
README
ExcelForge
ExcelForge 是一个基于 MCP (Model Context Protocol) 的 Excel 操作工具集,让 AI 助手能够安全、高效地操作 Excel 文件。
功能特性
- 工作簿管理 - 打开、保存、关闭 Excel 文件
- 工作表操作 - 创建、删除、重命名、查看结构
- 范围操作 - 读写数据、复制、清除、排序
- 公式支持 - 验证表达式、填充范围
- 格式设置 - 设置单元格样式、自动调整列宽
- 备份恢复 - 文件级备份、快照回滚
- VBA 只读访问 - 查看工程和模块代码
- 命名范围 - 列出和读取命名区域
- 数据验证和条件格式 - 读取工作表规则
版本
当前版本: 0.5.0
系统要求
- Windows 操作系统
- Microsoft Excel (已安装)
- Python 3.11+
- pywin32
安装
pip install -e .
配置
编辑 config.yaml 文件配置:
server.version- 服务器版本excel.visible- Excel 是否可见paths.allowed_roots- 允许访问的目录paths.allowed_extensions- 允许打开的文件扩展名limits.*- 各种操作限制
使用
# 启动服务器
python -m excelforge serve
# 查看帮助
python -m excelforge --help
工具列表
服务器启动后会注册以下工具(共 45 个):
工作簿工具
workbook.open_file- 打开 Excel 文件workbook.list_open- 列出已打开的工作簿workbook.get_info- 获取工作簿信息workbook.save_file- 保存工作簿workbook.close_file- 关闭工作簿workbook.create_file- 创建新工作簿
工作表工具
sheet.inspect_structure- 检查工作表结构sheet.create_sheet- 创建工作表sheet.rename_sheet- 重命名工作表sheet.preview_delete- 预览删除sheet.delete_sheet- 删除工作表sheet.set_auto_filter- 设置自动筛选sheet.get_conditional_formats- 获取条件格式sheet.get_data_validations- 获取数据验证
范围工具
range.read_values- 读取范围值range.write_values- 写入范围值range.clear_contents- 清除范围内容range.copy_range- 复制范围range.insert_rows- 插入行range.delete_rows- 删除行range.insert_columns- 插入列range.delete_columns- 删除列range.sort_data- 排序数据range.merge_cells- 合并单元格range.unmerge_cells- 取消合并单元格
公式工具
formula.validate_expression- 验证公式formula.fill_range- 填充公式
格式工具
format.set_range_style- 设置范围样式format.auto_fit_columns- 自动调整列宽
回滚工具
rollback.list_snapshots- 列出快照rollback.preview_snapshot- 预览快照rollback.restore_snapshot- 恢复快照
快照工具
snapshot.get_stats- 获取快照统计snapshot.run_cleanup- 运行清理
审计工具
audit.list_operations- 列出操作记录
VBA 工具
vba.inspect_project- 检查 VBA 工程vba.get_module_code- 获取模块代码vba.scan_code- 扫描 VBA 代码vba.sync_module- 同步 VBA 模块vba.remove_module- 删除 VBA 模块
备份工具
backup.list_backups- 列出备份backup.restore_file- 恢复备份文件
命名范围工具
named_range.list_ranges- 列出命名范围named_range.read_values- 读取命名范围值
服务器工具
server.get_status- 获取服务器状态
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.