Pgsandbox
UnclaimedAgent-facing MCP for disposable Postgres experimentation databases
Install
cargo install --path . --forceSet up this server
More in Databases
Browse the full directoryUnclaimed listing
Is this your MCP server?
This listing was auto-indexed from the public record. Claim it to edit the page, set compatibility and unlock growth tools. Takes under two minutes.
Claim this serverSecurity profile
Claimed and verified servers get a weekly static scan that shows what the code can reach: external services, environment variables, shell commands, agent configuration folders, plus any dependencies with known advisories. Claim this listing to get one. How the security profile works
27 of 27 tools
Documented tools (27)
From project documentation. A server handshake does not verify each tool’s description or behavior.
cleanup_expired
Delete expired metadata-owned sandboxes, or dry-run the selection.
clone_database
Clone an existing source database into a new sandbox with pgdump/pgrestore, optionally installing target extensions and skipping source-only extension entries.
create_database
Create one isolated sandbox database and role, optionally installing requested extensions.
create_sandbox_from_template
Restore a template into a new tracked sandbox.
create_schema_snapshot
Store a named local schema checkpoint.
create_template_from_sandbox
Export a sandbox to a reusable local template artifact.
delete_database
Delete a metadata-owned sandbox database and role.
delete_schema_snapshot
Delete a local schema snapshot artifact.
delete_template
Delete a template dump and metadata.
describe_schema
Return relation, column, constraint, index, view, materialized view, foreign table, and extension metadata.
diff_schema_snapshot
Compare a stored snapshot with the current schema.
doctor
Return MCP-safe diagnostics and profile health.
ensure_postgres
Install missing local Postgres server binaries with a supported package manager when available, then start a managed local profile.
explain_query
Return EXPLAIN (FORMAT JSON) for one safe plannable statement.
get_connection_string
Return redacted direct/container connection variants by default, or raw credentials when explicitly requested.
list_databases
List active metadata-owned sandboxes.
list_extensions
List available extensions for a profile and installed extensions for an existing sandbox.
list_profiles
List configured profiles and discovered local Postgres versions.
list_schema_snapshots
List named schema checkpoints for a sandbox.
list_templates
List local template artifacts for a profile.
prepare_for_repo
Write secret-free repo workflow metadata to .pgsandbox/project.json.
run_repo_command
Run an explicit repo command with sandbox DB env vars.
run_sql
Run SQL against a sandbox with bounded result rows.
schema_diff
Compare a previous digest with the current schema.
schema_digest
Return a compact checksummed schema summary.
seed_database
Run an explicit seed command against a sandbox.
validate_schema_change
Capture before/after schema digests around a repo command.
Tool change history
FAQ
Questions about Pgsandbox MCP Server
- How do I connect Pgsandbox MCP Server to Claude?
- The listing records `cargo install --path . --force` as its setup step. Run it, then follow the repository's instructions for the client configuration; the listing names Claude Desktop, Cursor, VS Code as compatible clients.
- Is Pgsandbox MCP Server free?
- The listed licence is MIT. Check the upstream terms for permitted use and commercial requirements; a public repository does not by itself mean the software is free or open source. Connected APIs and hosted services may have separate charges.
- What can Pgsandbox MCP Server do?
- Pgsandbox MCP Server documents 27 tools to the agent, including cleanup_expired, clone_database, create_database. The descriptions above come from project documentation. A live handshake does not test individual tool behavior.