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.
Browse all MySQL servers →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.
Several community MySQL/MariaDB servers are widely used. This page ranks them by real usage across the AllMCPs directory.
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.
Usually yes — MariaDB is wire-compatible with MySQL, so most MySQL MCP servers connect to it without changes. Check the listing to be sure.