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
| Users (last 30 days) | 0 |
| Handshake | Healthy |
| Auth needed | None |
| Tool count | 20 |
| Latency | 2672 ms |
| Last checked (UTC) | 2026-11-29T23:35:27.662Z |
| Checked (UTC) | Status | Latency | Error |
|---|---|---|---|
| 2026-11-29T23:35:27.662Z | Healthy | 2672 | |
| 2026-11-27T14:35:52.753Z | Healthy | 544 | |
| 2026-11-25T07:15:29.313Z | Healthy | 4929 | |
| 2026-11-23T02:00:51.210Z | Needs auth | 1737 | initialize: HTTP 401 |
list_apps | List the person's Leash apps (id, slug, allowed origins). |
create_app | Create 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_origins | Replace 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. |
usage | Show 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_space | Compact 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_tables | List the app's tables and views (name, kind, estimated row count). |
describe_table | Describe one of the app's tables or views: columns (name, type, nullable, default), primary key, constraints, indexes, and a view's definition. |
query | Run 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. |
execute | Run 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_change | Apply 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_key | Mint 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_keys | List the app's device keys (id, name, created, last used, revoked). Never shows the keys themselves. |
revoke_device_key | Revoke one of the app's device keys (it stops working immediately). |
list_snapshots | List the app's safety snapshots (taken automatically before destructive changes; kept 7 days), newest first. |
restore_snapshot | Restore 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_connection | Plus 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_files | List 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_file | Read 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_file | Delete a file. It moves to the trash and can be restored for 7 days, then it is gone for good. |
restore_file | Bring a deleted file back from the trash (within 7 days of deleting it). |