Best MCP Servers for MySQL (2026)

The best MCP servers for MySQL and MariaDB — connect AI agents to your relational database to run queries, explore schemas, and safely read or update records.

Top 10 · ranked by installs, upvotes, stars and views · refreshed hourly

  1. Why it’s hereMost popular in this category on AllMCPs

    Minimal Database MCP Server for PostgreSQL, MySQL, SQL Server, SQLite, MariaDB

    Upvotes: 0Installs: 0GitHub stars: 3.8k
    Install
  2. Why it’s hereCommunity pick

    MySQL database integration in NodeJS with configurable access controls and schema inspection

    Upvotes: 0Installs: 0GitHub stars: 2.2k
    Install
  3. Why it’s hereCommunity pick

    Manage multiple SSH servers from one MCP: command execution, file transfer/rsync, database dump/import/query (MySQL/PostgreSQL/MongoDB), backups & restore, health monitoring, persistent sessions, tunnels, ProxyJump/bastion, and opt-in per-server security modes (readonly/restricted) with audit log. Linux, macOS & Windows OpenSSH.

    Upvotes: 0Installs: 0GitHub stars: 531
    Install
  4. Mysql MCP Server logo

    #4 Mysql MCP Server

    designcomputer

    Why it’s herePopular pick — 1 upvotes

    MySQL database integration with configurable access controls, schema inspection, and comprehensive security guidelines

    Upvotes: 1Installs: 0GitHub stars: 1.4k
    Install
  5. Why it’s hereCommunity pick

    Node.js-based MySQL database integration that provides secure MySQL database operations

    Upvotes: 0Installs: 0GitHub stars: 169
    Install
  6. Why it’s hereCommunity pick

    SQL database to MCP tools and REST API: PostgreSQL, MySQL, SQL Server, Oracle, SQLite, Snowflake.

    Upvotes: 0Installs: 0GitHub stars: 167
    Install
  7. Why it’s hereCommunity pick

    Self-hosted workspace for browsing and querying databases (Postgres, MySQL, SQLite, MongoDB, Redis and more), with an MCP server for agents.

    Upvotes: 0Installs: 0GitHub stars: 5k
    Install
  8. Why it’s hereCommunity pick

    WordPress database access via Local by Flywheel. Execute read-only MySQL queries and inspect schema.

    Upvotes: 0Installs: 0GitHub stars: 34
    Install
  9. Anyquery logo

    #9 Anyquery

    julien040

    Why it’s hereCommunity pick

    Query more than 40 apps with one binary using SQL. It can also connect to your PostgreSQL, MySQL, or SQLite compatible database. Local-first and private by design.

    Upvotes: 0Installs: 0GitHub stars: 1.8k
    Install
  10. Cli logo

    #10 Cli

    endorhq

    Why it’s hereCommunity pick

    Endor lets your AI agents run services like MariaDB, Postgres, Redis, Memcached, Alpine, or Valkey in isolated sandboxes. Get pre-configured applications that boot in less than 5 seconds.

    Upvotes: 0Installs: 0GitHub stars: 26
    Install

Which MySQL MCP server should you use?

MariaDB is wire-compatible with MySQL, so almost any MySQL MCP server connects to a MariaDB instance without modification — check the listing's README for an explicit MariaDB callout only if you're relying on MariaDB-specific features.

As with any relational database, create a dedicated MySQL user for the MCP server with grants limited to the schemas it needs (`GRANT SELECT ON yourdb.* TO ...`), rather than reusing an application or root credential.

Frequently asked questions about MySQL MCP servers

What is the best MySQL MCP server?

Several community MySQL/MariaDB servers are widely used. This page ranks them by real usage across the AllMCPs directory.

Is it safe to give an agent MySQL access?

Use a dedicated database user with least-privilege grants, and prefer read-only access until you trust the workflow. MCP servers act with exactly the credentials you provide.

Does the same server work with MariaDB?

Usually yes — MariaDB is wire-compatible with MySQL, so most MySQL MCP servers connect to it without changes. Check the listing to be sure.