数据库 MCP 服务器:Postgres、MySQL、SQLite、MongoDB 和 SQL Server
让 Claude、Cursor 或 VS Code 查询数据库的开源 MCP 服务器,按数据库类型分组,附 GitHub 星标数和更新日期。
多数据库服务器
一个服务器支持多种数据库,适合同时使用多种数据库的场景。
- dbhub (3,651 个 GitHub 星标 · TypeScript · 最近推送:2026-10-13)
Token conscious database MCP server for Postgres, MySQL, SQL Server, Oracle, MariaDB, SQLite. 服务器页面提供安装配置。 - whodb (5,037 个 GitHub 星标 · Go · 最近推送:2026-10-15)
Where data access meets operational intelligence - mcp-database-server (386 个 GitHub 星标 · TypeScript · 最近推送:2025-08-27)
MCP Database Server is a new MCP Server which helps connect with Sqlite, SqlServer and Posgresql Databases
PostgreSQL
- pgmcp (542 个 GitHub 星标 · Go · 最近推送:2026-05-26)
An MCP server to query any Postgres database in natural language. - MCP-PostgreSQL-Ops (160 个 GitHub 星标 · Python · 最近推送:2026-10-09)
🐘 Give AI assistants full PostgreSQL DBA superpowers — 30+ tools for performance analysis, bloat detection, lock/deadlock monitoring, autovacuum & schema inspection. No extensions required. PG 12-18. - pg-aiguide (1,869 个 GitHub 星标 · Python · 最近推送:2026-10-14)
MCP server and Claude plugin for Postgres skills and documentation. Helps AI coding tools generate better PostgreSQL code. 服务器页面提供安装配置。
MySQL
- mysql_mcp_server (1,398 个 GitHub 星标 · Python · 最近推送:2026-08-02)
A Model Context Protocol (MCP) server that enables secure interaction with MySQL databases - mysql_mcp_server_pro (249 个 GitHub 星标 · Python · 最近推送:2025-08-28)
Model Context Protocol (MCP) server that supports secure interaction with MySQL databases and has anomaly analysis capabilities.更加牛逼!更加好用!不仅止于mysql的增删改查功能; 还包含了数据库异常分析能力;且便于开发者们进行个性化的工具扩展
MongoDB
- mongodb-mcp-server (1,142 个 GitHub 星标 · TypeScript · 最近推送:2026-10-14)
A Model Context Protocol server to connect to MongoDB databases and MongoDB Atlas Clusters.
SQL Server 与 Azure
- mssql-mcp (158 个 GitHub 星标 · C# · 最近推送:2026-01-22)
MSSQL Server MCP implementation written in C# - data-api-builder (1,526 个 GitHub 星标 · C# · 最近推送:2026-10-15)
Data API builder provides modern REST, GraphQL endpoints and MCP tools to your Azure Databases and on-prem stores.
安全地连接数据库
- 使用仅具备助手所需权限的数据库用户连接;只读用户是最安全的起点。
- 先在副本或预发布数据库上试用,再接入生产环境。
- 把连接字符串放在配置的
env块中,不要写进提示词。
更多榜单:PostgreSQL · MySQL · MongoDB · SQL Server · 全部数据库服务器
关于本列表
数据来源:公开的 GitHub 仓库,更新于 2026-10-15。星标数每天都在变化。收录并不代表经过安全审查,安装前请阅读我们的安全检查清单。