
executeautomation/mcp-database-server
Database managementこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
MCPデータベースサーバーは、Sqlite、SqlServer、PosgreSQLデータベースと接続する新しいMCPサーバーです
概要
このMCP(Model Context Protocol)サーバーは、Claudeへのデータベースアクセス機能を提供し、SQLite、SQL Server、PostgreSQL、MySQLデータベースをサポートしています。 このMCPサーバーをClaudeで使用する方法は2つあります: 1. : パッケージをグローバルにインストールし、直接使用する 2.: ローカル開発環境から実行する このMCPサーバーを最も簡単に使う方法は、グローバルにインストールすることです: これにより、ローカルで構築することなくサーバーを直接利用できます。 コードを変更したり、ローカル環境から実行したい場合は: 1. インストールセクションに示されたリポジトリのクローンおよび構築 2.以下の使用セクションのコマンドを使ってサーバーを実行 必要なパラメータ: - --server: SQL Serverのホスト名またはIPアドレス- --database: データベース名
概要(AI 翻訳)
このMCP(Model Context Protocol)サーバーは、Claudeへのデータベースアクセス機能を提供し、SQLite、SQL Server、PostgreSQL、MySQLデータベースをサポートしています。
設置
-
リポジトリのクローン:
-
依存関係のインストール:
-
プロジェクトを構築する:
使用オプション
このMCPサーバーをClaudeで使用する方法は2つあります:
- 直接使用:パッケージをグローバルにインストールし、直接利用する
- ローカル開発:ローカル開発環境から実行する
NPMパッケージでの直接利用
このMCPサーバーを最も簡単に使う方法は、グローバルにインストールすることです:
これにより、ローカルで構築することなくサーバーを直接利用できます。
ローカル開発のセットアップ
コードを変更したり、ローカル環境から実行したい場合は:
- インストールセクションに示されたリポジトリのクローンおよびビルド
- 下記の使用セクションにあるコマンドを使ってサーバーを起動します
使用法
SQLite データベース
SQLiteデータベースで使用する場合:
SQL Server データベース
SQL Serverデータベースで使用する場合:
必要なパラメータ:
--server:SQL Serverホスト名またはIPアドレス--database:データベース名
オプションパラメータ:
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
MCP Database Server
This MCP (Model Context Protocol) server provides database access capabilities to Claude, supporting SQLite, SQL Server, PostgreSQL, and MySQL databases.
Installation
- Clone the repository:
git clone https://github.com/executeautomation/mcp-database-server.git
cd mcp-database-server
- Install dependencies:
npm install
- Build the project:
npm run build
Usage Options
There are two ways to use this MCP server with Claude:
- Direct usage: Install the package globally and use it directly
- Local development: Run from your local development environment
Direct Usage with NPM Package
The easiest way to use this MCP server is by installing it globally:
npm install -g @executeautomation/database-server
This allows you to use the server directly without building it locally.
Local Development Setup
If you want to modify the code or run from your local environment:
- Clone and build the repository as shown in the Installation section
- Run the server using the commands in the Usage section below
Usage
SQLite Database
To use with an SQLite database:
node dist/src/index.js /path/to/your/database.db
SQL Server Database
To use with a SQL Server database:
node dist/src/index.js --sqlserver --server --database [--user --password ]
Required parameters:
--server: SQL Server host name or IP address--database: Name of the database
Optional parameters:
--user: Username for SQL Server authentication (if not provided, Windows Authentication will be used)--password: Password for SQL Server authentication--port: Port number (default: 1433)
PostgreSQL Database
To use with a PostgreSQL database:
node dist/src/index.js --postgresql --host --database [--user --password ]
Required parameters:
--host: PostgreSQL host name or IP address--database: Name of the database
Optional parameters:
--user: Username for PostgreSQL authentication--password: Password for PostgreSQL authentication--port: Port number (default: 5432)--ssl: Enable SSL connection (true/false)--connection-timeout: Connection timeout in milliseconds (default: 30000)
MySQL Database
Standard Authentication
To use with a MySQL database:
node dist/src/index.js --mysql --host --database --port [--user --password ]
Required parameters:
--host: MySQL host name or IP address--database: Name of the database--port: Port number (default: 3306)
Optional parameters:
--user: Username for MySQL authentication--password: Password for MySQL authentication
インストール
npx -y @executeautomation/database-server /path/to/your/database.db設定
{
"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"
]
},
"mysql": {
"command": "npx",
"args": [
"-y",
"@executeautomation/database-server",
"--mysql",
"--host", "your-host-name",
"--database", "your-database-name",
"--port", "3306",
"--user", "your-username",
"--password", "your-password"
]
},
"mysql-aws": {
"command": "npx",
"args": [
"-y",
"@executeautomation/database-server",
"--mysql",
"--aws-iam-auth",
"--host", "your-rds-endpoint.region.rds.amazonaws.com",
"--database", "your-database-name",
"--user", "your-aws-username",
"--aws-region", "us-east-1"
]
…