
dolthub/dolt-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
Dolt の MCP サーバー
概要
DoltとDoltgreSQLデータベースへの直接アクセスが可能なモデルコンテキストプロトコル(MCP)サーバー。 このサーバーでは、Claude のような AI ツールが、MySQL または PostgreSQL ワイヤープロトコルの Dolt のバージョン管理 SQL データベースとやりとりし、データベース操作、バージョン管理ワークフロー、データ管理タスクを可能にします。 Dolt MCP Server は、AI アシスタントと Dolt データベース間のブリッジとして機能し、包括的な一連のツールを提示します。 - : データベースの作成、ドロップ、管理 - : 作成、変更、ドロップ、説明、クエリテーブル - : ブランチ管理、コミット、マージ、および差分 - : インサート、更新、削除、クエリデータ - : クローン、フェッチ、プッシュ、リモートリポジトリからプル Dolt (MySQL 互換) と DoltgreSQL (PostgreSQL 互換) の両方のバックエンドがサポートされています。 SQL のダイアレクトは --dolt または --doltgres フラグで起動時に選択されます.
概要(AI 翻訳)
DoltとDoltgreSQLデータベースへの直接アクセスが可能なモデルコンテキストプロトコル(MCP)サーバー。 このサーバーでは、Claude のような AI ツールが、MySQL または PostgreSQL ワイヤープロトコルの Dolt のバージョン管理 SQL データベースとやりとりし、データベース操作、バージョン管理ワークフロー、データ管理タスクを可能にします。
概要
Dolt MCP Server は、AI アシスタントと Dolt データベース間のブリッジとして機能し、包括的な一連のツールを提示します。
- データベース管理:データベースの作成、削除、管理
- テーブル操作: 作成、変更、ドロップ、説明、クエリテーブル -Version Control:ブランチ管理、コミット、マージ、diffs -データ操作: インサート、更新、削除、およびクエリデータ
- リモート操作: クローン、フェッチ、プッシュ、リモートリポジトリからプル
Dolt (MySQL 互換) と DoltgreSQL (PostgreSQL 互換) の両方のバックエンドがサポートされています。 起動時に --dolt または --doltgres] フラグで SQL のダイアレクトを選択します。 埋め込まれた DoltLite バックエンド (--doltlite) は、サーバーなしでローカルデータベースファイルに対して実行されている、特別に構築されたバイナリでも利用できます。
インストール
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Dolt MCP Server
A Model Context Protocol (MCP) server that provides AI assistants with direct access to Dolt and DoltgreSQL databases. This server enables AI tools like Claude to interact with Dolt’s version-controlled SQL databases over either the MySQL or PostgreSQL wire protocol, allowing for database operations, version control workflows, and data management tasks.
Overview
The Dolt MCP Server acts as a bridge between AI assistants and Dolt databases, exposing a comprehensive set of tools for:
- Database Management: Create, drop, and manage databases
- Table Operations: Create, alter, drop, describe, and query tables
- Version Control: Branch management, commits, merges, and diffs
- Data Operations: Insert, update, delete, and query data
- Remote Operations: Clone, fetch, push, and pull from remote repositories
Both Dolt (MySQL-compatible) and DoltgreSQL (PostgreSQL-compatible) backends are supported. The SQL dialect is selected at startup with the --dolt or --doltgres flag. An embedded DoltLite backend (--doltlite) is also available in specially built binaries, running against a local database file with no server at all — see DoltLite Mode.
Installation
Prerequisites
- Go 1.25 or later
- A running Dolt or DoltgreSQL SQL server instance (not needed for DoltLite mode)
Building from Source
The default build is pure Go (no cgo) and cross-compiles freely:
git clone https://github.com/dolthub/dolt-mcp
cd dolt-mcp
go build -o dolt-mcp-server ./mcp/cmd/dolt-mcp-server
Binaries built this way do not include DoltLite support (--doltlite returns an error). Building with embedded DoltLite requires cgo and libdoltlite; see Building with DoltLite Support.
Docker Installation
Pull the official Docker image:
docker pull dolthub/dolt-mcp:latest
Usage
The Dolt MCP Server can run in two modes and supports multiple deployment methods:
Docker Usage (Recommended for Production)
HTTP Server with Docker
docker run -d \
--name dolt-mcp-server \
-p 8080:8080 \
-e MCP_MODE=http \
-e DOLT_HOST=your-dolt-host \
-e DOLT_USER=root \
-e DOLT_DATABASE=your_database \
-e DOLT_PASSWORD=your_password \
dolthub/dolt-mcp:latest
Stdio Server with Docker
docker run -it --rm \
-e MCP_MODE=stdio \
-e DOLT_HOST=your-dolt-host \
-e DOLT_USER=root \
-e DOLT_DATABASE=your_database \
-e DOLT_PASSWORD=your_password \
dolthub/dolt-mcp:latest
Connecting to DoltgreSQL from Docker
Set MCP_DIALECT=doltgres to point the container at a DoltgreSQL server. DOLT_PORT defaults to 5432 when the dialect is doltgres.
docker run -d \
--name dolt-mcp-server \
-p 8080:8080 \
-e MCP_MODE=http \
インストール
docker run -d \設定
{
"mcpServers": {
"dolt-mcp": {
"command": "/path/to/dolt-mcp-server",
"args": [
"--stdio",
"--dolt",
"--host", "0.0.0.0",
"--port", "3306",
"--user", "root",
"--database", "your_database_name"
],
"env": {
"DOLT_PASSWORD": "your_password_if_needed"
}
}
}
}