One sign-in and a private Postgres database for every app you build with AI. Hosted, OAuth sign-in.
Is this your server? Claim it to get a Verified maintainer mark, your own note here, and an email when it goes down or its tools change. Free.
MCP Score How we grade
A server needs 3 daily checks before it gets a grade (2 so far).
Connect Remote server
claude mcp add --transport http leash https://leash.build/mcp
{
"mcpServers": {
"leash": {
"url": "https://leash.build/mcp"
}
}
}
{
"servers": {
"leash": {
"type": "http",
"url": "https://leash.build/mcp"
}
}
}
Settings > Connectors > Add custom connector
URL: https://leash.build/mcp
Tools 16 found in our last check
list_appsList the person's Leash apps (id, slug, allowed origins).
create_appCreate a Leash app: its own walled-off Postgres schema and sign-in. slug: 2–40 chars, lowercase letters, digits and dashes, starting with a letter. origins: where the web app is served (needed for browser sign-in and CORS). Free plans allow 1 app, Pro 25.
set_app_originsReplace the app's allowed web origins (sign-in return URLs and CORS). Each is https://host[:port] or http://localhost:port, no path; at most 10.
usageShow the account's storage: bytes per app as last measured (null with a note until first measured, a few minutes after the first write), total vs the plan's limit, plan, whether writes are blocked for being over the limit, snapshot usage, and the database server's state (running…
reclaim_spaceCompact the app's tables that have many deleted rows (VACUUM FULL), then re-measure storage. Use after deleting lots of data to get back under the storage limit. Returns the tables compacted, the tables skipped because the app's role doesn't own them, and whether writes are stil…
list_tablesList the app's tables and views (name, kind, estimated row count).
describe_tableDescribe one of the app's tables or views: columns (name, type, nullable, default), primary key, constraints, indexes, and a view's definition.
queryRun one read-only SQL SELECT against the app's tables (its own schema). Returns { columns, rows (arrays), truncated }: at most 1000 rows and 10 MB; int8/numeric come back as strings, bytea as base64, dates as ISO text. Writes, multiple statements and system functions are refused.
executeRun one SQL statement that changes data (insert/update/delete) or the schema. Returns { rowCount, columns, rows, rowsTruncated, snapshots }, or for DDL { changeId, snapshots } (logged like apply_schema_change). At most 100 RETURNING rows (10 MB) come back: when rowsTruncated is…
apply_schema_changeApply one schema change (create/alter/drop table, index, view, sequence; truncate) to the app's own schema, recorded in its change log with your description. Destructive changes (drop table/column, column type change, truncate) first save a 7-day snapshot of each affected table;…
mint_device_keyMint a device key for a non-browser client of the app (script, extension, phone app). The key is returned ONCE: store it in the device's local config or secret store, never in browser code or a repo. Use it as Authorization: Bearer lk_… on the data API.
list_device_keysList the app's device keys (id, name, created, last used, revoked). Never shows the keys themselves.
revoke_device_keyRevoke one of the app's device keys (it stops working immediately).
list_snapshotsList the app's safety snapshots (taken automatically before destructive changes; kept 7 days), newest first.
restore_snapshotRestore a snapshot as a table in the app: under its original name if that table no longer exists, otherwise as <table>_restored_<timestamp>, or as asTable. Rows only: re-create constraints, indexes and defaults with apply_schema_change. Returns { table }.
get_direct_connectionPro only: a Postgres connection locked to the app's own schema, for apps with their own server (Drizzle, migrations). Keep it in the server's environment, never in browser code.
Details
| Endpoint | https://leash.build/mcp (Streamable HTTP) |
| First published | 23 Nov 2026 |
| Last updated | 23 Nov 2026 |
| Registry name | build.leash/leash |
More databases servers See all
Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.
