excel mcp
安装excel-mcp
pip install excel-mcp
配置
在.cursor/mcp.json中配置:
{
"mcpServers": {
"excel-mcp": {
"command": "python",
"args": ["-m", "excel_mcp", "stdio"],
"env": {
"EXCEL_FILES_PATH": "D:\\code\\xxx\\quanfeng-end\\analysis\\"
},
"transport": "stdio"
}
}
}
通过环境变量EXCEL_FILES_PATH配置对应的excel文件路径
word mcp
安装uv
从这里下载: uv windows
然后解压后配置环境变量:
PATH里面加上:D:\softs\uv\
额外添加:
UV_DEFAULT_INDEX=https://pypi.tuna.tsinghua.edu.cn/simple
然后手动安装相关依赖:
D:\softs\uv\uvx.exe --from office-word-mcp-server word_mcp_server
cursor 里面配置
"word-document-server": {
"command": "D:\\softs\\uv\\uvx.exe",
"args": ["--from", "office-word-mcp-server", "word_mcp_server"]
}