This repository provides an MCP server implementation designed to retrieve data from MariaDB databases, exposing schema lists and offering tools like query_database for read-only operations. It also includes instructions for
An MCP server implementation for retrieving data from MariaDB databases.
Exposes the schema list within the database.
query_database: Executes read-only queries against the MariaDB database.On macOS, an OSError related to mariadb_config might occur during installation. This can be resolved by installing MariaDB Connector/C using brew install mariadb-connector-c. Subsequently, update the PATH environment variable, set the MARIADB_CONFIG environment variable, and retry uv add mariadb.
Configuration files for Claude Desktop are located at ~/Library/Application Support/Claude/claude_desktop_config.json (MacOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows).
Two configuration examples are provided: one for published servers, using the uvx executable and environment variables for database credentials, and another for development/unpublished servers, using the uv executable, specifying the server source code directory, and setting database connection details via environment variables.
This MCP server is licensed under the MIT license. Refer to the LICENSE file in the repository for details.
abel9851/mcp-server-mariadb
February 18, 2025
March 28, 2025
Python