Sandbox Instances
Deploy local MariaDB Server instances for development and testing with the mariadb-shell MCP server.
The MCP server can deploy MariaDB Server instances on your local machine for development and testing. These sandbox instances don't require Docker or another container runtime, and you don't need administrator rights to create them. A sandbox is useful when no database server is available, or when you want to test changes before you apply them to a production database.
Deploy a Sandbox
To deploy a sandbox, ask the agent, for example:
Deploy a MariaDB sandbox on port 3310.The agent calls sandbox.deploy. The MCP server registers a connection to the new instance automatically, so you don't need to run mcp setup for it.
Server Versions
You don't need to install MariaDB Server. To find a server binary, sandbox.deploy checks the following locations in order:
A
mariadbdon thePATH.A version the sandbox has already downloaded.
The published index of MariaDB Server releases, from which it downloads a package, verifies its SHA-256 checksum, and unpacks it.
You can request a specific version with a full or partial version number, such as 11.8.9, 11.8, or 11. For a partial version number, the sandbox uses the latest matching release. To list the versions available for your platform, ask:
Which MariaDB server versions can you deploy?The agent calls sandbox.list_available_versions.
Sandbox Lifecycle
Deploy
sandbox.deploy
Creates and starts an instance, and registers its connection.
Stop
sandbox.stop
Graceful shutdown.
Start
sandbox.start
Restarts an existing instance with its data intact.
Stop forcefully
sandbox.kill
The fallback when sandbox.stop doesn't work.
Delete
sandbox.delete
Removes the instance. Refuses a running instance.
See sandbox Tools for every argument.
File Locations
Instances
~/.mariadb-shell/sandboxes/<port>/
%USERPROFILE%\MariaDB\mariadb-shell\sandboxes\<port>\
Downloaded servers
~/.local/share/mariadb-sandbox-server/
%LOCALAPPDATA%\Programs\mariadb-sandbox-server\
Security Considerations
A sandbox is deployed without TLS, so command-line clients may need
--skip-ssl.The connection that a sandbox registers is the only connection that the MCP server adds without your configuration. It points to the local sandbox instance only.
This page is licensed: GPLv2
Last updated
Was this helpful?

