Database Updater MCP Server

by AnuragRai017
Verified

local-only server

The server can only run on the client’s local machine because it depends on local resources.

Integrations

  • Allows importing data from CSV and Excel files into MongoDB databases

  • Allows importing data from CSV and Excel files into MySQL databases

  • Allows importing data from CSV and Excel files into PostgreSQL databases

数据库更新程序 MCP 服务器

用于从 CSV 和 Excel 文件更新数据库的模型上下文协议服务器。

特征

工具

  • update_database - 从 CSV/Excel 文件更新数据库
    • 支持 CSV 和 Excel (.xlsx, .xls) 文件格式
    • 兼容多种数据库类型(PostgreSQL、MySQL、MongoDB、SQLite)
    • 可配置的连接设置和表映射
  • create_note - 创建和管理注释(用于文档)
    • 存储有关数据库更新的重要信息
    • 跟踪变更和修改

用法

更新数据库

使用具有以下参数的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 inspector

检查器将提供一个 URL 来访问浏览器中的调试工具。

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

Claude 集成可以通过自然语言命令从 CSV 和 Excel 文件更新各种数据库类型(PostgreSQL、MySQL、MongoDB、SQLite)。

  1. Features
    1. Tools
  2. Usage
    1. Update Database
    2. Supported Database Types
  3. Development
    1. Installation
      1. Debugging
    ID: yqdoq32xyf