Overview
mcp-server-mariadb is an MCP server implementation designed to retrieve data from MariaDB databases. It provides a capability to expose the database schema list to clients and offers a dedicated tool, query_database, for performing read-only queries against MariaDB. The server relies on the MariaDB Connector/C library and includes macOS-specific setup guidance to resolve common OSError: mariadb_config not found errors, including installing mariadb-connector-c via Homebrew, updating the PATH, and configuring the MARIADB_CONFIG environment variable or site.cfg. The README also outlines Claude Desktop usage for deploying and testing: you can publish the server by adding an mcpServers entry with a uvx command, or use a development/unpublished setup with uv and a server.py invocation, along with environment variables MARIADB_HOST, MARIADB_USER, MARIADB_PASSWORD, MARIADB_DATABASE, and MARIADB_PORT. This combination enables both published and development workflows to access MariaDB data through the MCP interface in a controlled manner.
Features
Expose schema list in database
Expose the list of database schemas to MCP clients.
query_database
Execute read-only operations against MariaDB.




