db-mcp-server
Multi-database MCP server for AI assistants to query and explore schemas.
Install
See the repository for setupWhat it does
This MCP server gives AI assistants a single interface for working with several databases at once. It supports MySQL, PostgreSQL, SQLite, Oracle and TimescaleDB, connecting to multiple instances concurrently and generating per-database tools for queries, data statements, transactions, schema exploration and performance analysis. Lazy loading can defer connections until first use, which helps with larger fleets of databases.
It is aimed at developers and data teams who want an assistant to inspect or query relational stores without building a custom connector. It runs over MCP transports including stdio and Streamable HTTP, and is described as compatible with the OpenAI Agents SDK. Configuration lists each connection with its type, host, port, name, user and password.
Operational controls include per-database read-only checks, row limits with truncation notices, query timeouts, column-name and PII masking, and explain-based cost limits. Streamable HTTP requires authentication via a shared bearer key or OIDC, and an optional JSONL audit log records statements.
Limitations: read-only is best-effort, not a security guarantee; strong enforcement needs a SELECT-only database account. Masking is pattern-based and can miss values split across columns, and cost limits apply only to PostgreSQL, TimescaleDB and MySQL.
Compatibility and authentication
- Connection
- Local
- Transports
- Unspecified
- Authentication
- Unknown
Security and permissions
- When you run the server locally, it runs with your user permissions.
- Authentication type: Unknown.
Repository data
- Stars
- 487
- Last push
- Nov 23, 2026
- License
- MIT
- Archived
- No
Other MySQL MCP servers
Compare serversFAQ
- What license does db-mcp-server use?
- MIT
- Does db-mcp-server run locally or remotely?
- It runs locally.
- Is db-mcp-server an official server?
- It is listed as a community server.
Embed a listing badge
<a href="https://aiagentsmarketplace.dev/mcp/db-mcp-server"><img src="https://aiagentsmarketplace.dev/badges/featured.svg" alt="Featured on AI Agents Marketplace" width="262" height="36"></a>
Comments
No comments yet.