Leash
build.leash/leash
Serveur MCP OK 20 outils
One sign-in and a private Postgres database for every app you build with AI. Hosted, OAuth sign-in.
Fiche technique
- Auteur
- leash.build (espace de noms du registre)
- Dépôt
- —
- Site
- leash.build/docs
- Version
- 1.1.0
- Transport
- Streamable HTTP
- Authentification
- Aucune (constatée par notre test)
- Adresse du serveur
- https://leash.build/mcp Streamable HTTP
- Outils
- 20
- Catégories
- Bases de données
- Comparatifs
- Serveurs MCP pour Postgres
- Dernière mise à jour
- 23 nov. 2026
- Publication
- 23 nov. 2026
Badge pour votre README
Gratuit, pour toute fiche. Il renvoie vers cette fiche et affiche « testé OK » tant que notre dernier test est réussi.
[](https://latlas.dev/mcp/build.leash/leash)<a href="https://latlas.dev/mcp/build.leash/leash"><img src="https://latlas.dev/badge/fiche/build.leash/leash.svg" alt="Référencé sur L’Atlas" height="20"></a>Nos tests
Chaque semaine : initialize puis tools/list, sans identifiant, sans jamais appeler d’outil. Méthode
- Adresse
- https://leash.build/mcp
- Dernier résultat
- OK 28 nov. 2026, 08:10
- Temps de réponse
- 902 ms (initialize + tools/list)
- Version du protocole
- 2025-11-25
- Nom annoncé
- leash 1.0.0
- Outils
- 20
Historique
| Date | Résultat | Réponse | Outils |
|---|---|---|---|
| 28 nov. 2026, 08:10 | OK | 902 ms | 20 |
Outils exposés (20, réponse à tools/list, 28 nov. 2026)
list_apps
List the person's Leash apps (id, slug, allowed origins).
Aucun paramètre.
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| slug | string | oui | Short name, e.g. notes |
| origins | array<string> | non | Web origins the app is served from, e.g. https://myapp.example.com or http://localhost:5173 (no path). |
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| app | string | oui | The app's slug or id (from list_apps / create_app). |
| origins | array<string> | oui | Web origins the app is served from, e.g. https://myapp.example.com or http://localhost:5173 (no path). |
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 limit (file storage full only stops new uploads), snapshot usage, and the database server's state (running/stopped: it sleeps when idle and wakes on the next request).
Aucun paramètre.
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| app | string | oui | The app's slug or id (from list_apps / create_app). |
list_tables
List the app's tables and views (name, kind, estimated row count).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| app | string | oui | The app's slug or id (from list_apps / create_app). |
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| app | string | oui | The app's slug or id (from list_apps / create_app). |
| table | string | oui | Table or view name (unqualified). |
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| app | string | oui | The app's slug or id (from list_apps / create_app). |
| sql | string | oui | Exactly one SQL statement. Use $1, $2 … for values. |
| params | array<any> | non | Values for $1, $2 … (strings, numbers, booleans, null, or JSON for json/jsonb columns). |
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 happened in full and rowCount counts every row. An update/delete touching more than 100 rows (or inside a WITH clause), a truncate or a drop first saves a 7-day snapshot of the table. EXPLAIN ANALYZE of a write is refused. One statement per call; time limit per statement = the plan's (Free 5 s, Plus and Pro 30 s).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| app | string | oui | The app's slug or id (from list_apps / create_app). |
| sql | string | oui | Exactly one SQL statement. Use $1, $2 … for values. |
| params | array<any> | non | Values for $1, $2 … (strings, numbers, booleans, null, or JSON for json/jsonb columns). |
| description | string | non | For schema changes: what and why (logged). |
| allowWithoutSnapshot | boolean | non | Go ahead even if a safety snapshot can't be taken (cap reached). Only when the person agrees. |
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 is reached the change is refused unless allowWithoutSnapshot. Returns { changeId, snapshots }. One statement per call.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| app | string | oui | The app's slug or id (from list_apps / create_app). |
| sql | string | oui | Exactly one SQL statement. Use $1, $2 … for values. |
| description | string | oui | What the change does and why (logged). |
| allowWithoutSnapshot | boolean | non | Go ahead even if a safety snapshot can't be taken (cap reached). Only when the person agrees. |
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| app | string | oui | The app's slug or id (from list_apps / create_app). |
| name | string | oui | Which device or script, e.g. laptop-sync |
list_device_keys
List the app's device keys (id, name, created, last used, revoked). Never shows the keys themselves.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| app | string | oui | The app's slug or id (from list_apps / create_app). |
revoke_device_key
Revoke one of the app's device keys (it stops working immediately).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| app | string | oui | The app's slug or id (from list_apps / create_app). |
| keyId | string | oui | The key's id from list_device_keys |
list_snapshots
List the app's safety snapshots (taken automatically before destructive changes; kept 7 days), newest first.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| app | string | oui | The app's slug or id (from list_apps / create_app). |
restore_snapshot
Restore a snapshot as a table in the app: under its original name if that table no longer exists, otherwise as _restored_ , or as asTable. Rows only: re-create constraints, indexes and defaults with apply_schema_change. Returns { table }.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| app | string | oui | The app's slug or id (from list_apps / create_app). |
| snapshotId | string | oui | |
| asTable | string | non | Name for the restored table (must not exist). |
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| app | string | oui | The app's slug or id (from list_apps / create_app). |
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| app | string | oui | The app's slug or id (from list_apps / create_app). |
| limit | integer | non | How many files to return (default 50, max 100). |
| offset | integer | non | How many files to skip (for the next page). |
| include_deleted | boolean | non | Also list files in the trash (they show deleted_at). |
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| app | string | oui | The app's slug or id (from list_apps / create_app). |
| id | string | oui | The file's id from list_files. |
delete_file
Delete a file. It moves to the trash and can be restored for 7 days, then it is gone for good.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| app | string | oui | The app's slug or id (from list_apps / create_app). |
| id | string | oui | The file's id from list_files. |
restore_file
Bring a deleted file back from the trash (within 7 days of deleting it).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| app | string | oui | The app's slug or id (from list_apps / create_app). |
| id | string | oui | The file's id from list_files. |
Compatibilité clients
Selon les transports que chaque client déclare accepter dans sa documentation officielle ; ce n’est pas un essai réel dans le client.
| Client | Transports documentés | Ce serveur | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepté | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepté | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepté | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepté | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepté | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepté | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepté | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepté | doc |
Configs prêtes à copier
Adresse distante utilisée : https://leash.build/mcp. Formats repris de la documentation de chaque client.
claude mcp add --transport http leash https://leash.build/mcpCustomize > Connectors > + Add > Add custom connector ; Name : leash ; URL : https://leash.build/mcpchatgpt.com/plugins > + > Add custom MCP server ; Name : leash ; Server URL : https://leash.build/mcp ; Create as a plugin{
"mcpServers": {
"leash": {
"url": "https://leash.build/mcp"
}
}
}{
"mcpServers": {
"leash": {
"type": "http",
"url": "https://leash.build/mcp",
"tools": ["*"]
}
}
}{
"mcpServers": {
"leash": {
"url": "https://leash.build/mcp"
}
}
}{
"mcpServers": {
"leash": {
"httpUrl": "https://leash.build/mcp"
}
}
}[mcp_servers.leash]
url = "https://leash.build/mcp"Citer cette source
Vous rédigez un article ou un comparatif ? Cette fiche distingue les informations du registre et nos mesures. Citez le lien permanent et la date du test ; un résultat OK ne constitue pas un audit de sécurité ni une garantie de disponibilité.
Leash · L’Atlas · Test du
[Leash — L’Atlas](https://latlas.dev/mcp/build.leash/leash)Source : Registre officiel MCP · relevé le 30 nov. 2026. L’Atlas n’ajoute aucune donnée qui ne vienne de cette source ou de ses propres tests.