ExecuteAutomation Database Server

MIT License
198
10
  • Linux
  • Apple

Integrations

  • Enables connection to PostgreSQL databases with support for authentication, SSL connections, and execution of SQL queries against PostgreSQL 9.5 or later.

  • Provides direct access to SQLite database files, allowing for executing queries, schema modifications, and data operations against local SQLite databases.

MCP データベース サーバー

この MCP (Model Context Protocol) サーバーは、SQLite、SQL Server、および PostgreSQL データベースをサポートし、Claude にデータベース アクセス機能を提供します。

インストール

  1. リポジトリをクローンします。
git clone https://github.com/executeautomation/database-server.git cd database-server
  1. 依存関係をインストールします:
npm install
  1. プロジェクトをビルドします。
npm run build

使用オプション

Claude でこの MCP サーバーを使用するには、次の 2 つの方法があります。

  1. 直接使用: パッケージをグローバルにインストールして直接使用する
  2. ローカル開発: ローカル開発環境から実行

NPM パッケージによる直接使用

この MCP サーバーを使用する最も簡単な方法は、グローバルにインストールすることです。

npm install -g @executeautomation/database-server

これにより、ローカルにサーバーを構築せずに直接サーバーを使用できるようになります。

ローカル開発のセットアップ

コードを変更したり、ローカル環境から実行したりする場合は、次の手順を実行します。

  1. インストールセクションに示されているようにリポジトリをクローンしてビルドします。
  2. 以下の使用方法セクションのコマンドを使用してサーバーを実行します。

使用法

SQLite データベース

SQLite データベースで使用するには:

node dist/src/index.js /path/to/your/database.db

SQL Server データベース

SQL Server データベースで使用するには:

node dist/src/index.js --sqlserver --server <server-name> --database <database-name> [--user <username> --password <password>]

必須パラメータ:

  • --server : SQL Server のホスト名または IP アドレス
  • --database : データベースの名前

オプションパラメータ:

  • --user : SQL Server 認証のユーザー名 (指定しない場合は Windows 認証が使用されます)
  • --password : SQL Server 認証のパスワード
  • --port : ポート番号(デフォルト: 1433)

PostgreSQLデータベース

PostgreSQL データベースで使用するには:

node dist/src/index.js --postgresql --host <host-name> --database <database-name> [--user <username> --password <password>]

必須パラメータ:

  • --host : PostgreSQLのホスト名またはIPアドレス
  • --database : データベースの名前

オプションパラメータ:

  • --user : PostgreSQL認証のユーザー名
  • --password : PostgreSQL認証用のパスワード
  • --port : ポート番号(デフォルト: 5432)
  • --ssl : SSL接続を有効にする(true/false)
  • --connection-timeout : 接続タイムアウト(ミリ秒)(デフォルト: 30000)

Claudeデスクトップの設定

直接使用構成

パッケージをグローバルにインストールした場合は、Claude Desktop を次のように構成します。

{ "mcpServers": { "sqlite": { "command": "npx", "args": [ "-y", "@executeautomation/database-server", "/path/to/your/database.db" ] }, "sqlserver": { "command": "npx", "args": [ "-y", "@executeautomation/database-server", "--sqlserver", "--server", "your-server-name", "--database", "your-database-name", "--user", "your-username", "--password", "your-password" ] }, "postgresql": { "command": "npx", "args": [ "-y", "@executeautomation/database-server", "--postgresql", "--host", "your-host-name", "--database", "your-database-name", "--user", "your-username", "--password", "your-password" ] } } }

ローカル開発構成

ローカル開発の場合は、ローカルでビルドしたバージョンを使用するように Claude Desktop を構成します。

{ "mcpServers": { "sqlite": { "command": "node", "args": [ "/absolute/path/to/mcp-database-server/dist/src/index.js", "/path/to/your/database.db" ] }, "sqlserver": { "command": "node", "args": [ "/absolute/path/to/mcp-database-server/dist/src/index.js", "--sqlserver", "--server", "your-server-name", "--database", "your-database-name", "--user", "your-username", "--password", "your-password" ] }, "postgresql": { "command": "node", "args": [ "/absolute/path/to/mcp-database-server/dist/src/index.js", "--postgresql", "--host", "your-host-name", "--database", "your-database-name", "--user", "your-username", "--password", "your-password" ] } } }

Claude Desktop 構成ファイルは通常、次の場所にあります。

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

利用可能なデータベースツール

MCP データベース サーバーは、Claude が使用できる次のツールを提供します。

道具説明必須パラメータ
read_querySELECTクエリを実行してデータを読み取るquery : SQL SELECT文
write_queryINSERT、UPDATE、またはDELETEクエリを実行するquery : SQL変更文
create_tableデータベースに新しいテーブルを作成するquery : CREATE TABLE ステートメント
alter_table既存のテーブルスキーマを変更するquery : ALTER TABLE ステートメント
drop_tableデータベースからテーブルを削除するtable_name : テーブル名、 confirm : 安全フラグ(trueである必要があります)
list_tablesすべてのテーブルのリストを取得するなし
describe_tableテーブルのスキーマ情報を表示するtable_name : テーブル名
export_queryクエリ結果をCSV/JSONとしてエクスポートquery : SQL SELECT ステートメントformat : "csv" または "json"
append_insightメモにビジネスインサイトを追加するinsight :洞察のテキスト
list_insightsすべてのビジネスインサイトを一覧表示するなし

これらのツールを Claude で使用する実際の例については、 「使用例」を参照してください。

追加ドキュメント

発達

サーバーを開発モードで実行するには:

npm run dev

開発中の変更を監視するには:

npm run watch

要件

  • Node.js 18歳以上
  • SQL Server 接続の場合: SQL Server 2012 以降
  • PostgreSQL 接続の場合: PostgreSQL 9.5 以降

ライセンス

マサチューセッツ工科大学

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

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Claude などの LLM が SQLite および SQL Server データベースと対話し、スキーマ検査と SQL クエリ実行を可能にするモデル コンテキスト プロトコル サーバー。

  1. インストール
    1. 使用オプション
      1. NPM パッケージによる直接使用
      2. ローカル開発のセットアップ
    2. 使用法
      1. SQLite データベース
      2. SQL Server データベース
      3. PostgreSQLデータベース
    3. Claudeデスクトップの設定
      1. 直接使用構成
      2. ローカル開発構成
    4. 利用可能なデータベースツール
      1. 追加ドキュメント
        1. 発達
          1. 要件
            1. ライセンス

              Related MCP Servers

              • A
                security
                A
                license
                A
                quality
                A Model Context Protocol server that enables LLMs to interact with Salesforce data through SOQL queries, SOSL searches, and various API operations including record management.
                Last updated -
                10
                53
                Python
                MIT License
              • A
                security
                A
                license
                A
                quality
                A Model Context Protocol server that provides database interaction capabilities through SQLite, enabling users to run SQL queries, analyze business data, and automatically generate business insight memos.
                Last updated -
                6
                9
                TypeScript
                MIT License
                • Apple
              • -
                security
                F
                license
                -
                quality
                A Model Context Protocol server that enables Claude and other LLMs to interact with Notion workspaces, providing capabilities like searching, retrieving, creating and updating pages, as well as managing databases.
                Last updated -
                275
                2
                TypeScript
              • -
                security
                A
                license
                -
                quality
                A Model Context Protocol server that enables LLMs to interact with databases (currently MongoDB) through natural language, supporting operations like querying, inserting, deleting documents, and running aggregation pipelines.
                Last updated -
                TypeScript
                MIT License
                • Apple

              View all related MCP servers

              ID: e2goor55gw