MM

motherduckdb/mcp-server-motherduck

Developer tools

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

536 stars 90 forks 품질 91 트렌드 41MIT

DuckDB와 MotherDuck용 로컬 MCP 서버

개요

AI 어시스턴트 및 IDE를 위한 SQL 분석 및 데이터 엔지니어링. DuckDB의 강력한 분석 SQL 엔진을 사용해 AI 비서를 데이터에 연결하세요. 로컬 DuckDB 파일, 인메모리 데이터베이스, S3 호스팅 데이터베이스, MotherDuck 연결을 지원합니다. SQL 읽기 및 쓰기 쿼리 실행, 데이터베이스 카탈로그 탐색, 다양한 데이터베이스 연결 전환을 실시간으로 지원합니다. 📝 - : 서버는 기본적으로 읽기 전용 모드로 실행됩니다. 쓰기 접근을 가능하게 하려면 --read-write를 추가합니다. 프로덕션 시 보안을 참조하세요. - : --db-path 기본값이 md:에서 :memory:로 변경되었습니다. MotherDuck에 명시적으로 --db-path md를 추가합니다. - : 읽기 전용 모드의 MotherDuck 연결은 읽기 확장 토큰이 필요합니다. 일반 토큰은 --read-write가 필요합니다. : pip로 uv 설치 또는 brew install uv 완전한 유연성과 보호 장치 없이 — 읽기-쓰기 권한과 런타임에 어떤 데이터베이스(로컬 파일, S3, MotherDuck)로도 전환할 수 있는 기능. 특정 DuckDB 파일에 읽기 전용 모드로 연결됩니다.

개요(AI 번역)

DuckDB / MotherDuck 로컬 MCP 서버

AI 어시스턴트 및 IDE를 위한 SQL 분석 및 데이터 엔지니어링.


DuckDB의 강력한 분석 SQL 엔진을 사용해 AI 비서를 데이터에 연결하세요. 로컬 DuckDB 파일, 인메모리 데이터베이스, S3 호스팅 데이터베이스, MotherDuck 연결을 지원합니다. SQL 읽기 및 쓰기 쿼리 실행, 데이터베이스 카탈로그 탐색, 다양한 데이터베이스 연결 전환을 실시간으로 지원합니다.

MotherDuck용 완전 관리형 원격 MCP 서버를 찾고 계신가요? → MotherDuck 원격 MCP 문서로 가기

원격 vs 로컬 MCP

원격 MCP 로컬 MCP (이 저장소)
호스팅 MotherDuck이 호스팅 로컬/자체 호스팅
설정 제로 설정 로컬 설치 필요
접근 읽기-쓰기 지원 읽기-쓰기 지원
로컬 파일 시스템 - 로컬 및 원격 데이터베이스 간 쿼리, 로컬 파일 시스템에서 데이터를 수집하거나 내보내기

퀵 스타트

전제 조건: pip install uv 또는 [[T2]를 통해 uv 설치하세요.

메모리 내 DuckDB에 연결 (개발자 모드)

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

README

원문 README의 일부입니다. 원문 보기.

DuckDB / MotherDuck Local MCP Server

SQL analytics and data engineering for AI Assistants and IDEs.


Connect AI assistants to your data using DuckDB’s powerful analytical SQL engine. Supports connecting to local DuckDB files, in-memory databases, S3-hosted databases, and MotherDuck. Allows executing SQL read- and write-queries, browsing database catalogs, and switching between different database connections on-the-fly.

Looking for a fully-managed remote MCP server for MotherDuck? → Go to the MotherDuck Remote MCP docs

Remote vs Local MCP

Remote MCP Local MCP (this repo)
Hosting Hosted by MotherDuck Runs locally/self-hosted
Setup Zero-setup Requires local installation
Access Read-write supported Read-write supported
Local filesystem - Query across local and remote databases, ingest data from / export data to local filesystem

Quick Start

Prerequisites: Install uv via pip install uv or brew install uv

Connecting to In-Memory DuckDB (Dev Mode)

{
  "mcpServers": {
    "DuckDB (in-memory, r/w)": {
      "command": "uvx",
      "args": ["mcp-server-motherduck", "--db-path", ":memory:", "--read-write", "--allow-switch-databases"]
    }
  }
}

Full flexibility with no guardrails — read-write access and the ability to switch to any database (local files, S3, or MotherDuck) at runtime.

Connecting to a Local DuckDB File in Read-Only Mode

{
  "mcpServers": {
    "DuckDB (read-only)": {
      "command": "uvx",
      "args": ["mcp-server-motherduck", "--db-path", "/absolute/path/to/your.duckdb"]
    }
  }
}

Connects to a specific DuckDB file in read-only mode. Won’t hold on to the file lock, so convenient to use alongside a write connection to the same DuckDB file. You can also connect to remote DuckDB files on S3 using s3://bucket/path.duckdb — see Environment Variables for S3 authentication. If you’re considering third-party access to the MCP, see Securing for Production.

Connecting to MotherDuck in Read-Write Mode

{
  "mcpServers": {
    "MotherDuck (local, r/w)": {
      "command": "uvx",
      "args": ["mcp-server-motherduck", "--db-path", "md:", "--read-write"],
      "env": {
        "motherduck_token": ""
      }
    }
  }
}

See Command Line Parameters for more options, Securing for Production for deployment guidance, and Troubleshooting if you encounter issues.

Client Setup

| Client | Config Location | One-Click Install |

GitHub에서 전체 README 보기

설치

uvx mcp-server-motherduck --db-path :memory: --read-write --allow-switch-databases
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "DuckDB (in-memory, r/w)": { "command": "uvx", "args": ["mcp-server-motherduck", "--db-path", ":memory:", "--read-write", "--allow-switch-databases"] } } }