这是一个通用的数据库 MCP (Model Context Protocol) 服务器,支持连接到各种关系型数据库系统并提供数据库结构信息和执行只读 SQL 查询。
通用数据库 MCP 服务器 is an MCP project maintained in the xiaoshi7915/universal-db-mcp-server repository. The maintainer describes its purpose as “这是一个通用的数据库 MCP (Model Context Protocol) 服务器,支持连接到各种关系型数据库系统并提供数据库结构信息和执行只读 SQL 查询。”. Read the project documentation for the complete scope.
The project provides a local client configuration using /path/to/start.sh. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.
The example declares DB_TYPE. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.
Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.
{
"mcpServers": {
"db": {
"command": "/path/to/start.sh",
"args": [
"--db-host",
"localhost",
"--db-user",
"root",
"--db-password",
"password",
"--db-name",
"mydatabase"
],
"env": {
"DB_TYPE": "mysql"
}
}
}
}From the project documentation. Replace placeholders and example paths before connecting.
| Variable | Description | Required |
|---|---|---|
| DB_TYPE | Declared in the maintainer’s client configuration. | Check documentation |
Inspect PostgreSQL schemas and run read-only queries with the archived MCP reference server. Review its maintenance status before choosing it.
Connect the Notion MCP server to search workspace content and work with pages and databases through Notion’s hosted OAuth service.
Use the Supabase MCP server to inspect database schemas, query project data and retrieve docs through a project-scoped connection.
Query, modify and analyse local SQLite databases in conversation — the fastest way to chat with a data file.
Metabase ships its own MCP endpoint — search your BI content, build and run queries, and save questions and dashboards without leaving the chat.
Official MongoDB server covering data, schemas and Atlas management — from find queries to spinning up clusters.