What it is
A SQL front end to DuckDB and MotherDuck: execute queries, describe what is in the database, and move the connection between databases mid-session. It reads local files, in-memory databases, DuckDB files on S3, and MotherDuck, and it starts read-only unless you say otherwise.
Requirements
uv, and a database to point at — --db-path takes :memory:, a file path, an s3:// path or md: for MotherDuck, and defaults to an in-memory database. MotherDuck needs a token in motherduck_token, and in read-only mode it specifically needs a read-scaling token; an ordinary token requires --read-write. S3 paths use the usual AWS environment variables. Switching databases mid-session only works if the server was started with --allow-switch-databases, and the read-only or read-write mode it started in follows the connection wherever you switch it. MotherDuck also runs a fully hosted remote server if you would rather not install anything. MIT licensed.
Setup effort
One command — uvx mcp-server-motherduck --db-path :memory: --read-write --allow-switch-databases