使用说明
MCP Excel PostgreSQL
该服务器实现 模型上下文协议(MCP) 将人工智能助理(如Claude Desktop)与您的本地数据连接起来。允许读取和编辑文件 Excel 并对数据库进行查询 PostgreSQL 以安全和直接的方式,在不需要手动导出的情况下提供数据分析工作流。
安装
-
克隆存储库并安装依赖项:
npm install -
编译服务器(在
dist/):npm run build
克劳德桌面配置
添加到您的MCP配置(~/.MPC/mcp.json o克劳德桌面配置):
{
"mcpServers": {
"excel-mcp-server": {
"command": "node",
"args": ["/path/to/your/project/dist/main.js"],
"cwd": "/path/to/your/project",
"env": {
"POSTGRES_USER": "your_user",
"POSTGRES_HOST": "localhost",
"POSTGRES_DB": "your_db",
"POSTGRES_PASSWORD": "your_password",
"POSTGRES_PORT": "5432"
}
}
}
}
可用的工具
擅长: read_excel、write_excel、update_excel
PostgreSQL: connect_database、execute_query、create_table、insert_data、list_tables、describe_table、get_database_info
集成 : export_to_excel、import_from_excel
