Purpose: dolt-mcp is the MCP server for Dolt, acting as a bridge between AI assistants and Dolt databases, enabling AI tools to perform database operations, version control workflows, and data management tasks.
Key capabilities: The server provides more than 40 tools by function, covering database management (list, create, and delete databases, query the server version), table operations (list tables, view table creation SQL, describe table structure, create/alter/drop tables), data operations (query executes SELECT, exec executes INSERT/UPDATE/DELETE), branch management (list, view the current branch, create, create from HEAD, delete, rename), version control (view commit history, create commits, stage/unstage tables), diff and status (view uncommitted changes in the working set, view diffs by table name or date range, check merge status), merge (normal merge and force merge commit), reset (soft reset and hard reset), and remote operations (list/add/remove remotes, clone databases, fetch/push/pull branches).
Usage: Requires Go 1.25 or later, and a running Dolt or DoltgreSQL SQL server (except in DoltLite mode). The default build is pure Go with no cgo, allowing free cross-compilation, but it does not include DoltLite support. It can be run via a Docker image or using native binaries. stdio mode communicates over standard input and output and is suitable for integration into Claude Desktop; HTTP mode exposes a REST API, and HTTP connections require appending the /mcp endpoint to the server URL. At startup, use --dolt or --doltgres to select the SQL dialect; the default ports are 3306 and 5432 respectively. DoltLite mode uses --doltlite and --db-file to point to a local database file and does not require host, port, user, password, or TLS parameters, but it requires a binary with DoltLite support (requires cgo, the doltlite and libsqlite3 build tags, and libdoltlite) and cannot be cross-compiled.
Configuration: Required parameters include --host, --user, and either --stdio or --http; optional parameters include --database, --port, --password, --tls, --tls-ca, --mcp-port, --db-file, --commit-name, --commit-email, --doltlite-busy-timeout. The environment variable DOLT_PASSWORD can set the password; under Docker, configurations such as DOLT_HOST, DOLT_USER, DOLT_DATABASE, DOLT_PASSWORD, DOLT_PORT, MCP_DIALECT, MCP_MODE, MCP_PORT, DOLT_DB_FILE, DOLT_COMMIT_NAME, DOLT_COMMIT_EMAIL, DOLTLITE_BUSY_TIMEOUT, DOLTLITE_CREDS_DIR, DOLTLITE_CREDS_KID, DOLTLITE_CA_FILE, etc. can be used.
Applicable scenarios: suitable for development and data management scenarios that require an AI assistant to directly operate a version-controlled SQL database, including local-first AI workflows (DoltLite single-file mode), containerized deployment, and web applications integrated via HTTP.
Limitations: DoltLite mode hides server-oriented and multi-database tools (list_databases, create_database, drop_database, clone_database, show_processlist, kill_process), while the remaining 39 tools are available; in this mode each file has only one database, and the working_database parameter is ignored; when no commit author is configured, the commit author is doltlite; remote storage must use DoltLite's file or HTTP(S) protocol, and the storage formats of a full Dolt repository and a DoltLite database are different. The DoltLite binary cannot be cross-compiled due to cgo.