Skip to main content
Glama

MariaDB MCP Server

by abel9851
MIT License
18
  • Apple

mcp-server-mariadb

MariaDBからデータを取得するためのMCPサーバーの実装

特徴

リソース

データベースのスキーマリストを公開する

ツール

  • クエリデータベース
    • MariDBに対して読み取り専用操作を実行する

依存

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.
  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再度実行します。

Claude Desktopでの使用

設定ファイル

Claude Desktop 構成ファイルへのパス:

  • MacOS : ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows : %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 ファイルを参照してください。

-
security - not tested
A
license - permissive license
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Claude が MariaDB データベースに対して読み取り専用クエリを実行し、自然言語を通じてデータベース スキーマを探索できるようにする MCP サーバー実装。

  1. 特徴
    1. リソース
    2. ツール
  2. 依存
    1. MariaDBをインストールする
  3. Claude Desktopでの使用
    1. 設定ファイル
  4. ライセンス

    Related MCP Servers

    • A
      security
      A
      license
      A
      quality
      An MCP server implementation that integrates Claude with Salesforce, enabling natural language interactions with Salesforce data and metadata for querying, modifying, and managing objects and records.
      Last updated -
      7
      615
      75
      TypeScript
      MIT License
    • A
      security
      A
      license
      A
      quality
      An MCP server that enables MySQL database integration with Claude. You can execute SQL queries and manage database connections.
      Last updated -
      2
      7
      Python
      MIT License
      • Apple
    • -
      security
      F
      license
      -
      quality
      An MCP server that integrates with Claude to provide smart documentation search capabilities across multiple AI/ML libraries, allowing users to retrieve and process technical information through natural language queries.
      Last updated -
      Python
    • -
      security
      A
      license
      -
      quality
      An MCP server that enables natural language querying of Supabase PostgreSQL databases using Claude 3.7, allowing users to inspect schemas, execute SQL, manage migrations, and convert natural language to SQL queries.
      Last updated -
      Python
      MIT License
      • Linux
      • Apple

    View all related MCP servers

    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