MariaDB MCP Server
servidor mcp-mariadb
Una implementación de servidor MCP para recuperar datos de mariadb
Características
Recursos
Exponer la lista de esquemas en la base de datos
Herramientas
base de datos de consultas
Ejecutar operaciones de solo lectura contra MariDB
Related MCP server: Salesforce MCP Server
dependencia
instalar mariadb
impermeable
Al instalar MariaDB, es posible que aparezca el siguiente error del sistema operativo. Puede resolverlo instalando MariaDB-Connector-C.
OSError: mariadb_config not found.
This error typically indicates that MariaDB Connector/C, a dependency which
must be preinstalled, is not found.
If MariaDB Connector/C is not installed, see installation instructions
If MariaDB Connector/C is installed, either set the environment variable
MARIADB_CONFIG or edit the configuration file 'site.cfg' to set the
'mariadb_config' option to the file location of the mariadb_config utility.
ejecutar
brew install mariadb-connector-cejecutar
echo 'export PATH="/opt/homebrew/opt/mariadb-connector-c/bin:$PATH"' >> ~/.bashrcestablecer la variable de entorno
export MARIADB_CONFIG=$(brew --prefix mariadb-connector-c)/bin/mariadb_configEjecute
uv add mariadbnuevamente.
Uso con Claude Desktop
Archivo de configuración
Rutas al archivo de configuración de Claude Desktop:
MacOS :
~/Library/Application Support/Claude/claude_desktop_config.jsonVentanas :
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"mcp_server_mariadb": {
"command": "/PATH/TO/uvx"
"args": [
"mcp-server-mariadb",
"--host",
"${DB_HOST}",
"--port",
"${DB_PORT}",
"--user",
"${DB_USER}",
"--password",
"${DB_PASSWORD}",
"--database",
"${DB_NAME}"
]
}
}
}
Nota : reemplace estos marcadores de posición con rutas reales:
/PATH/TO/uvx: Ruta completa al ejecutable uvx
{
"mcpServers": {
"mcp_server_mariadb": {
"command": "/PATH/TO/uv",
"args": [
"--directory",
"/YOUR/SOURCE/PATH/mcp-server-mariadb/src/mcp_server_mariadb",
"run",
"server.py"
],
"env": {
"MARIADB_HOST": "127.0.0.1",
"MARIADB_USER": "USER",
"MARIADB_PASSWORD": "PASSWORD",
"MARIADB_DATABASE": "DATABASE",
"MARIADB_PORT": "3306"
}
}
}
}Nota : reemplace estos marcadores de posición con rutas reales:
/PATH/TO/uv: Ruta completa al ejecutable UV/YOUR/SOURCE/PATH/mcp-server-mariadb/src/mcp_server_mariadb: Ruta al código fuente del servidor
Licencia
Este servidor mcp tiene licencia MIT. Consulte el archivo LICENCIA en el repositorio.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/abel9851/mcp-server-mariadb'
If you have feedback or need assistance with the MCP directory API, please join our Discord server