MCP Server for MariaDB
Project description
mcp-server-mariadb
An MCP server implementation for retrieving data from mariadb
Features
Resources
Expose schema list in database
Tools
- query_database
- Execute read-only operations against MariDB
dependency
install mariadb
- mac
- when install mariadb, maybe raise os error below. you can resolve by installing 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.
- execute
brew install mariadb-connector-c - execute
echo 'export PATH="/opt/homebrew/opt/mariadb-connector-c/bin:$PATH"' >> ~/.bashrc - set environment variable
export MARIADB_CONFIG=$(brew --prefix mariadb-connector-c)/bin/mariadb_config - execute
uv add mariadbagain.
Usage with Claude Desktop
Configuration File
Paths to Claude Desktop config file:
- MacOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Add this configuration to enable development/unpublished servers:
{
"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"
}
}
}
}
Note: Replace these placeholders with actual paths:
/PATH/TO/uv: Full path to UV executable/YOUR/SOURCE/PATH/mariadb-mcp-server/src/mcp_server_mariadb: Path to server source code
License
This mcp server is licensed under the MIT license. please see the LICENSE file in the repository.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_server_mariadb-0.1.2.tar.gz.
File metadata
- Download URL: mcp_server_mariadb-0.1.2.tar.gz
- Upload date:
- Size: 25.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.30
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35a7830cc6406a181111c70c8ff4c931ef7acb932ee746cdcfbc533df6d589af
|
|
| MD5 |
1b0a9cf0813aad6fbea7d06c6411e64c
|
|
| BLAKE2b-256 |
867b6f38054240041edffcb38df9b566d2d8a19468ac387743b541b6d641baef
|
File details
Details for the file mcp_server_mariadb-0.1.2-py3-none-any.whl.
File metadata
- Download URL: mcp_server_mariadb-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.30
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b72ac523e27e34bfa0f95ffcdfbf25558e12a0c7c948fa288021101dd0f62ef
|
|
| MD5 |
3b06f5928971748e58bfd60bafa05bde
|
|
| BLAKE2b-256 |
0d9c5b73227c78c35e61d15fd9020d3ac1cd3df203a823f8006cb3df6d81e8be
|