An MCP (Model Context Protocol) server providing read-only access to MariaDB and MySQL databases for AI agents. Version 0.0.1, initial release. Allows listing databases, tables, describing schemas, and executing SELECT queries with built-in security: read-only by default, SQL injection prevention, query timeout, and row limits. Supports both MariaDB and MySQL via environment variable configuration. No known breaking changes yet.
npm install mariadb-mcp-serverNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Add the server configuration to your MCP client to enable AI agents to query MariaDB/MySQL databases.
Set MARIADB_ALLOW_INSERT=true, MARIADB_ALLOW_UPDATE=true, MARIADB_ALLOW_DELETE=true to enable write operations (not recommended for security).
Ensure JSON argument includes 'server_name': 'mariadb' or 'mysql'.
Use as CLI: 'npx mariadb-mcp-server' or configure in MCP settings.
N/A
Install globally with 'npm install -g mariadb-mcp-server' and use via command line or MCP settings.
Verify MARIADB_USER, MARIADB_PASSWORD, and ensure the user has SELECT privileges on target databases.
Set MARIADB_TIMEOUT_MS to a higher value, or optimize the query.