支持哪些数据库类型?
支持 MySQL 和 PostgreSQL。通过环境变量 `DB_TYPE` 配置为 `mysql` 或 `postgres`。
@cherl
Basic information
No overview available yet
No standard config provided
This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.
RepositoryTool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
MCP 数据库服务器 (TypeScript) 是一个基于 Model Context Protocol (MCP) 的数据库查询服务器,用 TypeScript 实现。它允许 AI 模型安全地查询关系型数据库,如 MySQL 和 PostgreSQL。该服务器专为需要让 AI 直接访问数据库结构并执行只读查询的开发者和应用设计。
安装:克隆仓库后运行 cnpm install。配置:复制 .env.example 为 .env 并设置数据库连接信息(DB_TYPE、MySQL/PostgreSQL 参数)。构建:cnpm run build。运行:cnpm start。开发模式:cnpm run dev。通过 MCP 协议调用 list_resources、read_resource 和 db_query 工具与服务器交互。
支持 MySQL 和 PostgreSQL。通过环境变量 `DB_TYPE` 配置为 `mysql` 或 `postgres`。
不,服务器仅支持只读 SQL 查询。所有查询通过 `db_query` 工具执行,使用事务确保不会修改数据。
复制 `.env.example` 为 `.env`,然后设置数据库类型、主机、端口、用户名、密码和数据库名。MySQL 和 PostgreSQL 的配置项独立。
提供了 `list_resources`(列出所有表)、`read_resource`(获取表结构)和 `db_query`(执行只读 SQL 查询)工具。
需要 Node.js 环境、cnpm(或 npm)包管理器,以及可访问的 MySQL 或 PostgreSQL 数据库。源代码用 TypeScript 编写,需先构建为 JavaScript。

Model Context Protocol Servers
A powerful multi-database server implementing the Model Context Protocol (MCP) to provide AI assistants with structured access to databases.
The official Redis MCP Server is a natural language interface designed for agentic applications to manage and search data in Redis efficiently
Universal MCP-Server for your Databases optimized for LLMs and AI-Agents.
Drop-in Apache Spark replacement written in Rust, unifying batch processing, stream processing, and compute-intensive AI workloads.
Comments