
This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

一个通用数据库 MCP 服务器,可连接多种关系型数据库,并提供数据库结构信息、样例数据查看和只读 SQL 查询。
通用数据库 MCP 服务器 is cataloged as an MCP server attributed to xiaoshi7915. 一个通用数据库 MCP 服务器,可连接多种关系型数据库,并提供数据库结构信息、样例数据查看和只读 SQL 查询。 It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for 通用数据库 MCP 服务器 are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
支持 MySQL、PostgreSQL、Oracle、SQL Server 和 SQLite。
仅支持只读查询,禁止修改数据库操作。
敏感信息(如密码、个人身份信息)会自动进行掩码处理,并建议使用只有读取权限的数据库用户。
README.md · bd23b8415fb9 · 采集于 2026-11-13 10:36:20 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
这是一个通用的数据库 MCP (Model Context Protocol) 服务器,支持连接到各种关系型数据库系统并提供数据库结构信息和执行只读 SQL 查询。
克隆仓库:
git clone https://github.com/xiaoshi7915/universal-db-mcp-server.git
cd universal-db-mcp-server
安装依赖:
pip install -r requirements.txt
启动服务器:
./start.sh --db-host localhost --db-user root --db-password password --db-name mydatabase
构建Docker镜像:
docker build -t universal-db-mcp-server .
运行Docker容器:
docker run -p 8088:8088 -e DB_HOST=host.docker.internal -e DB_USER=root -e DB_PASSWORD=password -e DB_NAME=mydatabase universal-db-mcp-server
可以通过环境变量或命令行参数配置服务器:
| 参数 | 环境变量 | 说明 | 默认值 |
|---|---|---|---|
| --host | HOST | 服务器主机地址 | 0.0.0.0 |
| --port | PORT | 服务器端口 | 8088 |
| --db-type | DB_TYPE | 数据库类型 | mysql |
| --db-host | DB_HOST | 数据库主机地址 | localhost |
| --db-port | DB_PORT | 数据库端口 | 3306 |
| --db-user | DB_USER | 数据库用户名 | root |
| --db-password | DB_PASSWORD | 数据库密码 | (空) |
| --db-name | DB_NAME | 数据库名称 | (空) |
| --verbose | - | 启用详细日志输出 | false |
要将此服务器与Claude集成,请在claude_desktop_config.json文件中添加以下配置:
{
"mcpServers": {
"db": {
"command": "/path/to/start.sh",
"args": [
"--db-host", "localhost",
"--db-user", "root",
"--db-password", "password",
"--db-name", "mydatabase"
],
"env": {
"DB_TYPE": "mysql"
}
}
}
}
对于更完整的部署环境,可以使用Docker Compose:
version: '3'
services:
db-mcp-server:
build: .
ports:
- "8088:8088"
environment:
- DB_TYPE=mysql
- DB_HOST=mysql
- DB_PORT=3306
- DB_USER=root
- DB_PASSWORD=rootpassword
- DB_NAME=testdb
depends_on:
- mysql
mysql:
image: mysql:8.0
environment:
- MYSQL_ROOT_PASSWORD=rootpassword
- MYSQL_DATABASE=testdb
volumes:
- mysql-data:/var/lib/mysql
volumes:
mysql-data:
欢迎提交问题和拉取请求!
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for 通用数据库 MCP 服务器 from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/universal-db-mcp-server)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

A Model Context Protocol server that lets AI assistants run SQL queries against AWS Athena databases and retrieve results.

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.