
abel9851/mcp-server-mariadb
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
MariaDB への読み込み専用アクセスを提供する mcp サーバー.
概要
Mariadbからデータを取得するMCPサーバーの実装 - query database - MariDBに対する読み取り専用の操作を実行 - mac - mariadbをインストールするとき、多分OSのエラーを下上げます。 mariadb-connector-c をインストールすることで解決できます。 1. brew install mariadb-connector-c 2 を実行します。 echo 'export PATH="/opt/homebrew/opt/mariadb-connector-c/bin:$PATH" >> ~/.bashrc 3. 環境変数 export MARIADB CONFIG=$(brew --prefix mariadb-connector-c)/bin/mariadb config 4. uv add mariadb を再度実行します。 - : ~/Library/Application Support/Claude/claude desktop config.json - : %APPDATA%\Claude\claude desktop config.json 公開サーバーを有効にするには、この設定を追加します。 : これらのプレースホルダーを実際のパスに置き換えます。 - /PATH/TO/uvx:UVx実行可能へのフルパス
概要(AI 翻訳)
Mariadbからデータを取得するMCPサーバーの実装
##特徴
リソース
データベースでスキーマリストを公開
ツール
- クエリ database
- MariDB に対する読み取り専用の操作を実行
依存関係
インストール mariadb
- マック
- mariadbをインストールするとき、 多分 os の間違いを下上げて下さい。 mariadb-connector-c をインストールすることで解決できます。
- [
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_config] - [
uv add mariadb]を再度実行します。
Claudeデスクトップでの使用
設定ファイル
Claudeデスクトップ設定ファイルへのパス:
-MacOS: [~/Library/Application Support/Claude/claude_desktop_config.json
-Windows:[%APPDATA%\Claude\claude_desktop_config.json
公開サーバーを有効にするには、この設定を追加します。
注意: 実際のパスでこれらのプレースホルダーを交換します。
- [
/PATH/TO/uvx: uvx実行可能なフルパス
この設定を追加して、開発/公開サーバーを有効にします
注意: 実際のパスでこれらのプレースホルダーを交換します。
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
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
License
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"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}"
]
}
}
}