EM

executeautomation/mcp-database-server

Database management

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

389 stars 97 forks 품질 69 트렌드 20MIT

MCP 데이터베이스 서버는 Sqlite, SqlServer, Posgresql 데이터베이스와 연결하는 데 도움을 주는 새로운 MCP 서버입니다

개요

이 MCP(모델 컨텍스트 프로토콜) 서버는 Claude에 대한 데이터베이스 접근 기능을 제공하며, SQLite, SQL Server, PostgreSQL, MySQL 데이터베이스를 지원합니다. 이 MCP 서버를 클로드와 함께 사용하는 방법은 두 가지가 있습니다: 1. : 패키지를 전역적으로 설치하고 직접 사용하기 2. : 로컬 개발 환경에서 실행하기 이 MCP 서버를 사용하는 가장 쉬운 방법은 전역적으로 설치하는 것입니다: 이렇게 하면 서버를 직접 로컬로 구축하지 않고도 사용할 수 있습니다. 코드를 수정하거나 로컬 환경에서 실행하고 싶다면: 1. 설치 섹션에 표시된 대로 저장소를 복제하고 구축합니다 2. 아래 사용 섹션의 명령어를 사용하여 서버를 실행하세요 필수 매개변수: - --서버: SQL Server 호스트 이름 또는 IP 주소 - --데이터베이스: 데이터베이스 이름

개요(AI 번역)

이 MCP(모델 컨텍스트 프로토콜) 서버는 Claude에 대한 데이터베이스 접근 기능을 제공하며, SQLite, SQL Server, PostgreSQL, MySQL 데이터베이스를 지원합니다.

설치

  1. 저장소 복제:

  2. 의존성 설치:

  3. 프로젝트 구축:

사용 옵션

이 MCP 서버를 클로드와 함께 사용하는 방법은 두 가지가 있습니다:

  1. 직접 사용: 패키지를 전역적으로 설치하고 직접 사용하세요
  2. 지역 개발: 지역 개발 환경에서 운영하세요

NPM 패키지를 통한 직접 사용

이 MCP 서버를 사용하는 가장 쉬운 방법은 전역적으로 설치하는 것입니다:

이렇게 하면 서버를 직접 로컬로 구축하지 않고도 사용할 수 있습니다.

로컬 개발 설정

코드를 수정하거나 로컬 환경에서 실행하고 싶다면:

  1. 설치 섹션에 표시된 대로 저장소를 복제하고 구축합니다
  2. 아래 사용 섹션의 명령어를 사용하여 서버를 실행하세요

사용

SQLite 데이터베이스

SQLite 데이터베이스와 함께 사용할 방법:

SQL 서버 데이터베이스

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

  1. Clone the repository:
git clone https://github.com/executeautomation/mcp-database-server.git
cd mcp-database-server
  1. Install dependencies:
npm install
  1. Build the project:
npm run build

Usage Options

There are two ways to use this MCP server with Claude:

  1. Direct usage: Install the package globally and use it directly
  2. 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:

  1. Clone and build the repository as shown in the Installation section
  2. 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
GitHub에서 전체 README 보기

설치

npx -y @executeautomation/database-server /path/to/your/database.db
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "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" ] …