MariaDB Reader MCP Server
このプロジェクトは、MariaDBデータベースを参照して対話するためのModel Context Protocol(MCP)サーバーです。このサーバーは、ClineなどのAIアシスタントがMariaDBデータベースにアクセスして情報を検索できるようにするツールを提供します。
機能
このMCPサーバーは次のツールを提供します。
list_databases
: アクセス可能なすべてのデータベースのリストを返します。list_tables
: 指定されたデータベース内のすべてのテーブルのリストを返します。- 入力:
database
(文字列、必須) - 表のリストを照会するデータベースの名前。
- 入力:
get_table_schema
: 指定されたテーブルのスキーマ (列定義) を返します。- 入力:
database
(文字列、必須) - テーブルが属するデータベース名。table
(文字列、必須) - スキーマを照会するテーブル名。
- 入力:
query_table
: 指定されたテーブルからデータを照会します。デフォルトでは最初の100行を返します。- 入力:
database
(文字列、必須) - テーブルが属するデータベース名。table
(文字列、必須) - データを照会するテーブル名。limit
(数値、選択) - 返す最大行数(デフォルト:100)。
- 入力:
設定
このサーバーを使用するには、GitHubリポジトリをクローンし、MCPクライアント(VS Code拡張など)の設定ファイルにサーバー情報を登録する必要があります。このリポジトリには事前にビルドされた実行可能ファイル( build/index.js
)が含まれているため、別のビルドプロセスは必要ありません。
- **ストレージクローン:**目的の場所にこのストアをクローンします。
- MCP設定ファイルの変更:
設定例:
注意:
<클론된 저장소 경로>
部分を物理ストレージをクローンされたローカルパスに変更する必要があります。 (例:C:/Users/YourUser/Documents/GitHub/mcp_server_mariadb_reader
)env
オブジェクト内のMariaDB接続情報を実際の環境に合わせて変更する必要があります。
開発(ソースコード修正時)
このリポジトリにはビルドされたファイルが含まれているため、サーバーを使用するために以下の手順を実行する必要はありません。ソースコード( src
ディレクトリ)を直接変更して変更を適用するには、次の手順に従います。
- 依存関係のインストール(最初の1回または
package.json
変更時): - 修正後のビルド:
- このコマンドは、
src
ディレクトリのTypeScriptコードをbuild
ディレクトリのJavaScriptコードにコンパイルします。
- このコマンドは、
- (オプション)開発中の変更の検出と自動ビルド:
ライセンス
このプロジェクトは、[ライセンス情報の入力]ライセンスの下で配布されます。
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Provides tools for AI assistants to explore and interact with MariaDB databases, allowing them to list databases, view tables, inspect schema definitions, and query data.
Related MCP Servers
- AsecurityAlicenseAqualityAllows AI assistants to list tables, read data, and execute SQL queries through a controlled interface, making database exploration and analysis safer and more structured.Last updated -1580PythonMIT License
- AsecurityAlicenseAqualityThis server enables AI models to interact with MySQL databases through a standardized interface.Last updated -564661JavaScriptMIT License
- -securityFlicense-qualityEnables AI assistants to interact with Metabase databases and dashboards, allowing users to list and execute queries, access data visualizations, and interact with database resources through natural language.Last updated -25JavaScript
- -securityFlicense-qualityEnables AI assistants to interact with Metabase, providing access to dashboards, questions, databases, and tools for executing queries and viewing data through natural language.Last updated -JavaScript