MariaDB MCP Server
mcp-server-mariadb
MariaDBからデータを取得するためのMCPサーバーの実装
特徴
リソース
データベースのスキーマリストを公開する
ツール
クエリデータベース
MariDBに対して読み取り専用操作を実行する
Related MCP server: Database Tools for Claude AI
依存
MariaDBをインストールする
マック
mariadb をインストールすると、以下の OS エラーが発生する可能性があります。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.
brew install mariadb-connector-cを実行します。echo 'export PATH="/opt/homebrew/opt/mariadb-connector-c/bin:$PATH"' >> ~/.bashrc環境変数を設定する
export MARIADB_CONFIG=$(brew --prefix mariadb-connector-c)/bin/mariadb_configuv add mariadb再度実行します。
Claude Desktopでの使用
設定ファイル
Claude Desktop 構成ファイルへのパス:
MacOS :
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows :
%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}"
]
}
}
}
注: これらのプレースホルダーを実際のパスに置き換えます。
/PATH/TO/uvx: 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"
}
}
}
}注: これらのプレースホルダーを実際のパスに置き換えます。
/PATH/TO/uv: UV実行ファイルへのフルパス/YOUR/SOURCE/PATH/mcp-server-mariadb/src/mcp_server_mariadb: サーバーのソースコードへのパス
ライセンス
この mcp サーバーは MIT ライセンスに基づいてライセンスされています。リポジトリ内の LICENSE ファイルを参照してください。
This server cannot be deployed
Maintenance
Related MCP Connectors
Text-to-SQL MCP server: read-only queries on PostgreSQL, MySQL and SQL Server with your real schema
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
MCP server giving Claude AI access to 22+ NYC public-record databases for real estate due diligence
Related MCP Servers
- AlicenseCqualityCmaintenanceAn MCP server that enables MySQL database integration with Claude. You can execute SQL queries and manage database connections.29MIT
- AlicenseBqualityDmaintenanceMCP server that allows Claude AI to interact directly with MySQL databases, enabling query execution and table information retrieval through natural language.14 npm4MIT
- AlicenseAqualityCmaintenanceMCP server for Claude that connects to MySQL, MariaDB, and SQLite databases. Query your databases using natural language.3MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for MySQL/MariaDB/Aurora MySQL that enables executing SQL queries, explaining query plans, inspecting schema, checking health, and running diagnostic playbooks through Claude.Apache 2.0