{"type":"mcp_server","name":"mcp-server-mariadb","description":"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","category":"Database","language":"Python","stars":20,"forks":0,"owner":"abel9851","github_url":"https://github.com/abel9851/mcp-server-mariadb","homepage":null,"setup":"## Setup\n\n### install mariadb\n\n- mac\n  - when install mariadb,\nmaybe raise os error below.\nyou can resolve by installing mariadb-connector-c.\n\n```bash\n\nOSError: mariadb_config not found.\n\n      This error typically indicates that MariaDB Connector/C, a dependency which\n      must be preinstalled, is not found.\n      If MariaDB Connector/C is not installed, see installation instructions\n      If MariaDB Connector/C is installed, either set the environment variable\n      MARIADB_CONFIG or edit the configuration file 'site.cfg' to set the\n       'mariadb_config' option to the file location of the mariadb_config utility.\n\n\n```\n\n1. execute `brew install mariadb-connector-c`\n2. execute `echo 'export PATH=\"/opt/homebrew/opt/mariadb-connector-c/bin:$PATH\"' >> ~/.bashrc`\n3. set environment variable `export MARIADB_CONFIG=$(brew --prefix mariadb-connector-c)/bin/mariadb_config`\n4. execute `uv add mariadb` again.","tools":"## Available Tools\n\n1. Resources (Expose schema list in database)\n2. query_database (Execute read-only operations against MariDB)","faq":null,"created_at":"2025-02-18T15:25:15+00:00","updated_at":"2025-03-28T01:42:13+00:00","source_url":"https://model-context-protocol.com/servers/mcp-server-read-only-mariadb-access","related_articles":[]}