Database Updater MCP Server
database-updater MCP 服务器
一个用于从 CSV 和 Excel 文件更新数据库的模型上下文协议(MCP)服务器。
功能
工具
update_database- 从 CSV/Excel 文件更新数据库支持 CSV 和 Excel (.xlsx, .xls) 文件格式
兼容多种数据库类型(PostgreSQL、MySQL、MongoDB、SQLite)
可配置连接设置和表映射
create_note- 创建并管理笔记(用于文档记录)存储有关数据库更新的重要信息
跟踪更改和修改
Related MCP server: SQL MCP Server for Claude Desktop
使用方法
更新数据库
使用带有以下参数的 update_database 工具:
{
"filePath": "/path/to/your/file.csv",
"databaseType": "PostgreSQL",
"connectionString": "postgresql://user:pass@localhost:5432/db",
"tableName": "target_table"
}支持的数据库类型
PostgreSQL
MySQL
MongoDB
SQLite
开发
安装依赖:
npm install构建服务器:
npm run build用于自动重新构建的开发模式:
npm run watch安装
要在 Claude Desktop 中使用,请添加服务器配置:
MacOS 上:~/Library/Application Support/Claude/claude_desktop_config.json
Windows 上:%APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"database-updater": {
"command": "/path/to/database-updater/build/index.js"
}
}
}调试
由于 MCP 服务器通过 stdio 进行通信,调试可能具有挑战性。我们建议使用 MCP Inspector:
npm run inspectorInspector 将提供一个 URL,以便在浏览器中访问调试工具。
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/AnuragRai017/database-updater-MCP-Server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server