MCP server

Leash

build.leash/leash

MCP server OK 20 tools

Get a review See pricing

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

Technical sheet

Author
leash.build (registry namespace)
Repository
—
Site
leash.build/docs
Version
1.1.0
Transport
Streamable HTTP
Authentication
None (observed by our test)
Server address
https://leash.build/mcp Streamable HTTP
Tools
20
Categories
Databases
Comparisons
MCP servers for Postgres
Last updated
23 Nov 2026
Published
23 Nov 2026

Verified author and popularity

Entry not claimed yet. Is it your project? Claim it

Not “Popular” for now Removed automatically as soon as the criteria are no longer met.

  • Distinct visitors of this entry over 30 days: 1 (30 needed) not yet
  • or install configs copied over 30 days: 0 (5 needed) not yet
  • and a successful test less than 14 days old: tested 28 Nov 2026 met

Badge updates by itself. Always “tested on …”, never “certified”. How it works

MarkdownREADME.md
[![Status on L’Atlas](https://latlas.dev/badge/statut/mcp/build.leash/leash.svg?lang=en)](https://latlas.dev/en/mcp/build.leash/leash)
HTML
<a href="https://latlas.dev/en/mcp/build.leash/leash"><img src="https://latlas.dev/badge/statut/mcp/build.leash/leash.svg?lang=en" alt="Status on L’Atlas" height="20"></a>

Badge for your README

Listed on L’Atlas

Free, for every entry. It links back to this entry and shows “tested OK” as long as our latest test succeeded.

MarkdownREADME.md
[![Listed on L’Atlas](https://latlas.dev/badge/fiche/build.leash/leash.svg?lang=en)](https://latlas.dev/en/mcp/build.leash/leash)
HTML
<a href="https://latlas.dev/en/mcp/build.leash/leash"><img src="https://latlas.dev/badge/fiche/build.leash/leash.svg?lang=en" alt="Listed on L’Atlas" height="20"></a>

Our tests

Every week: initialize then tools/list, without credentials, never calling a tool. Method

Address
https://leash.build/mcp
Last result
OK 28 Nov 2026, 08:10
Response time
902 ms (initialize + tools/list)
Protocol version
2025-11-25
Announced name
leash 1.0.0
Tools
20

History

DateResultResponseTools
28 Nov 2026, 08:10OK902 ms20

Exposed tools (20, from tools/list, 28 Nov 2026)

list_apps

List the person's Leash apps (id, slug, allowed origins).

No parameters.

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.

ParameterTypeRequiredDescription
slugstringyesShort name, e.g. notes
originsarray<string>noWeb 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.

ParameterTypeRequiredDescription
appstringyesThe app's slug or id (from list_apps / create_app).
originsarray<string>yesWeb 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).

No parameters.

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.

ParameterTypeRequiredDescription
appstringyesThe app's slug or id (from list_apps / create_app).

list_tables

List the app's tables and views (name, kind, estimated row count).

ParameterTypeRequiredDescription
appstringyesThe 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.

ParameterTypeRequiredDescription
appstringyesThe app's slug or id (from list_apps / create_app).
tablestringyesTable 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.

ParameterTypeRequiredDescription
appstringyesThe app's slug or id (from list_apps / create_app).
sqlstringyesExactly one SQL statement. Use $1, $2 … for values.
paramsarray<any>noValues 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).

ParameterTypeRequiredDescription
appstringyesThe app's slug or id (from list_apps / create_app).
sqlstringyesExactly one SQL statement. Use $1, $2 … for values.
paramsarray<any>noValues for $1, $2 … (strings, numbers, booleans, null, or JSON for json/jsonb columns).
descriptionstringnoFor schema changes: what and why (logged).
allowWithoutSnapshotbooleannoGo 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.

ParameterTypeRequiredDescription
appstringyesThe app's slug or id (from list_apps / create_app).
sqlstringyesExactly one SQL statement. Use $1, $2 … for values.
descriptionstringyesWhat the change does and why (logged).
allowWithoutSnapshotbooleannoGo 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.

ParameterTypeRequiredDescription
appstringyesThe app's slug or id (from list_apps / create_app).
namestringyesWhich 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.

ParameterTypeRequiredDescription
appstringyesThe 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).

ParameterTypeRequiredDescription
appstringyesThe app's slug or id (from list_apps / create_app).
keyIdstringyesThe 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.

ParameterTypeRequiredDescription
appstringyesThe 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 }.

ParameterTypeRequiredDescription
appstringyesThe app's slug or id (from list_apps / create_app).
snapshotIdstringyes
asTablestringnoName 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.

ParameterTypeRequiredDescription
appstringyesThe 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.

ParameterTypeRequiredDescription
appstringyesThe app's slug or id (from list_apps / create_app).
limitintegernoHow many files to return (default 50, max 100).
offsetintegernoHow many files to skip (for the next page).
include_deletedbooleannoAlso 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.

ParameterTypeRequiredDescription
appstringyesThe app's slug or id (from list_apps / create_app).
idstringyesThe 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.

ParameterTypeRequiredDescription
appstringyesThe app's slug or id (from list_apps / create_app).
idstringyesThe file's id from list_files.

restore_file

Bring a deleted file back from the trash (within 7 days of deleting it).

ParameterTypeRequiredDescription
appstringyesThe app's slug or id (from list_apps / create_app).
idstringyesThe file's id from list_files.

Client compatibility

Based on the transports each client documents as supported; this is not a live test inside the client.

ClientDocumented transportsThis serverSource
Claude Codestdio Streamable HTTP SSEtransport accepteddoc
Claude (claude.ai, Claude Desktop, Cowork)stdio Streamable HTTP SSEtransport accepteddoc
ChatGPT (serveurs MCP personnalisés / plugins)Streamable HTTP SSEtransport accepteddoc
Cursorstdio Streamable HTTP SSEtransport accepteddoc
VS Code (GitHub Copilot)stdio Streamable HTTP SSEtransport accepteddoc
Windsurf (documentation redirigée vers Devin Local / Devin CLI)stdio Streamable HTTP SSEtransport accepteddoc
Gemini CLIstdio Streamable HTTP SSEtransport accepteddoc
OpenAI Codex (CLI, extension IDE, app)stdio Streamable HTTPtransport accepteddoc

Ready-to-copy configs

Remote address used: https://leash.build/mcp. Formats taken from each client’s documentation.

Claude Code
claude mcp add --transport http leash https://leash.build/mcp
Claude (claude.ai, Claude Desktop, Cowork)
Customize > Connectors > + Add > Add custom connector ; Name : leash ; URL : https://leash.build/mcp
ChatGPT (serveurs MCP personnalisés / plugins)
chatgpt.com/plugins > + > Add custom MCP server ; Name : leash ; Server URL : https://leash.build/mcp ; Create as a plugin
Cursor.cursor/mcp.json (projet) ou ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "leash": {
      "url": "https://leash.build/mcp"
    }
  }
}
VS Code (GitHub Copilot).mcp.json à la racine du workspace, ou ~/.copilot/mcp-config.json ($COPILOT_HOME/mcp-config.json)
{
  "mcpServers": {
    "leash": {
      "type": "http",
      "url": "https://leash.build/mcp",
      "tools": ["*"]
    }
  }
}
Windsurf (documentation redirigée vers Devin Local / Devin CLI).devin/mcp_config.json (projet), .devin/mcp_config.local.json (local), ~/.config/devin/mcp_config.json (utilisateur)
{
  "mcpServers": {
    "leash": {
      "url": "https://leash.build/mcp"
    }
  }
}
Gemini CLI~/.gemini/settings.json (utilisateur) ou .gemini/settings.json (projet)
{
  "mcpServers": {
    "leash": {
      "httpUrl": "https://leash.build/mcp"
    }
  }
}
OpenAI Codex (CLI, extension IDE, app)~/.codex/config.toml (ou .codex/config.toml pour un projet de confiance)
[mcp_servers.leash]
url = "https://leash.build/mcp"

Cite this source

Writing an article or comparison? This entry distinguishes registry information from our measurements. Cite the permanent link and the test date; an OK result is not a security audit or an availability guarantee.

Leash · L’Atlas · Tested on

Markdown
[Leash — L’Atlas](https://latlas.dev/en/mcp/build.leash/leash)
Test methodology and limitations

Source : Registre officiel MCP · retrieved 3 Dec 2026. L’Atlas adds no data beyond this source and its own tests.