db-mcp-server

Multi-database MCP server for AI assistants to query and explore schemas.

Local

Install

See the repository for setup

What 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 servers
  • Open-source desktop SQL workspace with an MCP server for AI coding agents.

    • BigQuery
    • ClickHouse
    • DuckDB
    Updated
  • Instant REST and MCP APIs over PostgreSQL or MySQL without writing a backend

    • MySQL
    • PostgreSQL
    Updated
  • Git-versioned codebase index that coding agents read before acting.

    • MySQL
    • PostgreSQL
    Updated
  • SQL query engine for files, databases, and apps, with MCP access for LLMs.

    • MySQL
    • Notion
    • SQLite
    Updated
  • Keyboard-first SQL client for PostgreSQL, MySQL, SQL Server, SQLite and ClickHouse.

    • ClickHouse
    • MySQL
    • PostgreSQL
    Updated
  • MCP server for exploring and querying MySQL from AI clients

    • MySQL
    Updated

FAQ

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.

Comments

No comments yet.

Embed a listing badge

Featured on AI Agents Marketplace
<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>
See badge options