ExecuteAutomation Database Server
OfficialMCP データベース サーバー
この MCP (Model Context Protocol) サーバーは、SQLite、SQL Server、および PostgreSQL データベースをサポートし、Claude にデータベース アクセス機能を提供します。
インストール
リポジトリをクローンします。
git clone https://github.com/executeautomation/database-server.git
cd database-server依存関係をインストールします:
npm installプロジェクトをビルドします。
npm run buildRelated MCP server: MCP SQL Server
使用オプション
Claude でこの MCP サーバーを使用するには、次の 2 つの方法があります。
直接使用: パッケージをグローバルにインストールして直接使用する
ローカル開発: ローカル開発環境から実行
NPM パッケージによる直接使用
この MCP サーバーを使用する最も簡単な方法は、グローバルにインストールすることです。
npm install -g @executeautomation/database-serverこれにより、ローカルにサーバーを構築せずに直接サーバーを使用できるようになります。
ローカル開発のセットアップ
コードを変更したり、ローカル環境から実行したりする場合は、次の手順を実行します。
インストールセクションに示されているようにリポジトリをクローンしてビルドします。
以下の使用方法セクションのコマンドを使用してサーバーを実行します。
使用法
SQLite データベース
SQLite データベースで使用するには:
node dist/src/index.js /path/to/your/database.dbSQL 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.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
利用可能なデータベースツール
MCP データベース サーバーは、Claude が使用できる次のツールを提供します。
道具 | 説明 | 必須パラメータ |
| SELECTクエリを実行してデータを読み取る |
|
| INSERT、UPDATE、またはDELETEクエリを実行する |
|
| データベースに新しいテーブルを作成する |
|
| 既存のテーブルスキーマを変更する |
|
| データベースからテーブルを削除する |
|
| すべてのテーブルのリストを取得する | なし |
| テーブルのスキーマ情報を表示する |
|
| クエリ結果をCSV/JSONとしてエクスポート |
|
| メモにビジネスインサイトを追加する |
|
| すべてのビジネスインサイトを一覧表示する | なし |
これらのツールを Claude で使用する実際の例については、 「使用例」を参照してください。
追加ドキュメント
SQL Server セットアップ ガイド: SQL Server データベースへの接続の詳細
PostgreSQL セットアップガイド: PostgreSQL データベースへの接続の詳細
使用例: Claude で使用するクエリとコマンドの例
発達
サーバーを開発モードで実行するには:
npm run dev開発中の変更を監視するには:
npm run watch要件
Node.js 18歳以上
SQL Server 接続の場合: SQL Server 2012 以降
PostgreSQL 接続の場合: PostgreSQL 9.5 以降
ライセンス
マサチューセッツ工科大学
This server cannot be deployed
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
Enable secure connectivity between Sentry issues and debugging data, and LLM clients, using a Model Context Protocol (MCP) server.
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
Related MCP Servers
FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables Large Language Models to access and interact with database connections, including viewing schemas and performing CRUD operations on connected databases.-- FlicenseNot gradedqualityCmaintenanceA Model Context Protocol server that allows Large Language Models like Claude to execute SQL queries, explore database schemas, and maintain persistent connections to SQL Server databases.-
- AlicenseNot gradedqualityDmaintenanceA flexible Model Context Protocol server that enables LLMs to interact with database systems, supporting dynamic schema discovery and query execution across PostgreSQL and SQLite backends.2MIT
- AlicenseNot gradedqualityDmaintenanceThis server enables Claude to directly interact with SQLite, SQL Server, PostgreSQL, and MySQL databases through the Model Context Protocol, allowing for query execution, table management, and data export capabilities.MIT