Database MCP servers: Postgres, MySQL, SQLite, MongoDB and SQL Server
Open-source MCP servers that let Claude, Cursor or VS Code query your database, grouped by database engine, with stars and last-update dates from GitHub.
Multi-database servers
One server, several engines. Useful if you work with more than one kind of database.
- dbhub (3,651 GitHub stars · TypeScript · last pushed 2026-10-13)
Token conscious database MCP server for Postgres, MySQL, SQL Server, Oracle, MariaDB, SQLite. Install config available on its page. - whodb (5,037 GitHub stars · Go · last pushed 2026-10-15)
Where data access meets operational intelligence - mcp-database-server (386 GitHub stars · TypeScript · last pushed 2025-08-27)
MCP Database Server is a new MCP Server which helps connect with Sqlite, SqlServer and Posgresql Databases
PostgreSQL
- pgmcp (542 GitHub stars · Go · last pushed 2026-05-26)
An MCP server to query any Postgres database in natural language. - MCP-PostgreSQL-Ops (160 GitHub stars · Python · last pushed 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 stars · Python · last pushed 2026-10-14)
MCP server and Claude plugin for Postgres skills and documentation. Helps AI coding tools generate better PostgreSQL code. Install config available on its page.
MySQL
- mysql_mcp_server (1,398 GitHub stars · Python · last pushed 2026-08-02)
A Model Context Protocol (MCP) server that enables secure interaction with MySQL databases - mysql_mcp_server_pro (249 GitHub stars · Python · last pushed 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 stars · TypeScript · last pushed 2026-10-14)
A Model Context Protocol server to connect to MongoDB databases and MongoDB Atlas Clusters.
SQL Server and Azure
- mssql-mcp (158 GitHub stars · C# · last pushed 2026-01-22)
MSSQL Server MCP implementation written in C# - data-api-builder (1,526 GitHub stars · C# · last pushed 2026-10-15)
Data API builder provides modern REST, GraphQL endpoints and MCP tools to your Azure Databases and on-prem stores.
Safe setup for databases
- Connect with a database user that has only the rights the assistant needs; a read-only user is the safest start.
- Try it on a copy or staging database before production.
- Keep connection strings in the
envblock of your config, not in prompts.
More lists: PostgreSQL · MySQL · MongoDB · SQL Server · all database servers.
About this list
Data: public GitHub repositories, refreshed 2026-10-15. Star counts change daily. A listing is not a security review, so read our security checklist before installing.