Leash

build.leash/leash · v1.1.0 · data-and-databases

Leash is healthy: it completed an MCP handshake in 2672 ms and exposes 20 tools.

One sign-in and a private Postgres database for every app you build with AI. Hosted, OAuth sign-in.

Endpoint: https://leash.build/mcp (streamable-http)

No repository listed · Website · JSON · Add to my inventory

Facts

Users (last 30 days)0
HandshakeHealthy
Auth neededNone
Tool count20
Latency2672 ms
Last checked (UTC)2026-11-29T23:35:27.662Z

Health history

Checked (UTC)StatusLatencyError
2026-11-29T23:35:27.662ZHealthy2672
2026-11-27T14:35:52.753ZHealthy544
2026-11-25T07:15:29.313ZHealthy4929
2026-11-23T02:00:51.210ZNeeds auth1737initialize: HTTP 401

Tools (20)

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 allows 1 app, Plus 10, 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, database and files apart: database bytes per app as last measured (null with a note until first measured, a few minutes after the first write) and file bytes per app, each total vs the plan's limit, plan, whether writes are blocked for being over the database storage limi
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 still blocked.
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 true the write still
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; if the snapshot cap
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_connectionPlus and Pro 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.
list_filesList the app's private files (photos, PDFs and videos the app stored), newest first: id, name, type, size, created. No links or contents; use read_file to see one.
read_fileRead one of the app's files. Files up to 5 MB come back: images so you can see them, PDFs as a file. Videos and larger files can't be opened: only their details are returned.
delete_fileDelete a file. It moves to the trash and can be restored for 7 days, then it is gone for good.
restore_fileBring a deleted file back from the trash (within 7 days of deleting it).