Skip to content
Leash logo

Leash MCP server

Gives apps your AI builds a shared login and a private Postgres database, set up through an MCP connection.

read 2026-11-22

← Back to Leash

How to connect

Add the server to your MCP client config. Claude Desktop, Cursor and most other clients read this shape:

{
  "mcpServers": {
    "leash": {
      "type": "http",
      "url": "https://leash.build/mcp"
    }
  }
}

Add it

Claude Code, in a terminal

claude mcp add --transport http leash https://leash.build/mcp

Add to CursorAdd to VS Code

claude.ai, ChatGPT and other clients: add https://leash.build/mcp as a custom connector in the settings.

The first time it connects, the client opens a Leash sign-in.

Tools it offers20 tools · read 2026-11-30
  • list_appsseen, not called yet

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

  • create_appdescribed by the server

    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…

  • set_app_originsdescribed by the server

    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.

  • usagedescribed by the server

    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…

  • reclaim_spacedescribed by the server

    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…

  • list_tablesseen, not called yet

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

  • describe_tabledescribed by the server

    Describe one of the app's tables or views: columns (name, type, nullable, default), primary key, constraints, indexes, and a view's definition.

  • querydescribed by the server

    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…

  • executedescribed by the server

    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…

  • apply_schema_changedescribed by the server

    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…

  • mint_device_keydescribed by the server

    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_……

  • list_device_keysseen, not called yet

    List the app's device keys (id, name, created, last used, revoked). Never shows the keys themselves.

  • revoke_device_keydescribed by the server

    Revoke one of the app's device keys (it stops working immediately).

  • list_snapshotsseen, not called yet

    List the app's safety snapshots (taken automatically before destructive changes; kept 7 days), newest first.

  • restore_snapshotdescribed by the server

    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…

  • get_direct_connectiondescribed by the server

    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_filesseen, not called yet

    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_filedescribed by the server

    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_filedescribed by the server

    Delete a file. It moves to the trash and can be restored for 7 days, then it is gone for good.

  • restore_filechanges datadescribed by the server

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

How we checked it

Should an agent connect it

Not proven either way yet
  • Whether its tools do the product's job has not been judged yet.

Once connected

  • create_app, set_app_origins, delete_file change data without a sign-in: anyone with the address can call them.

Said by rules from the measurements above. The likely first call is a model's pick from the tool list; read its description before relying on it.

Measured daily

daily checks: 9, the first on 2026-11-22
  • INITE MCP score71 of 100answers 100 · definitions 94 · context 99 · connects 100 · lowered until one of our scenario runs passes · lowered by the warning signs below
  • Answered100% of days9 of 9 daily checks
  • Median first answer296 ms
  • Space in an agent's context≈ 3,108 tokensthe definitions of all its tools (20), which an agent carries on every turn
  • Tool definitionsA · 94 of 100
  • Typed results0 of 20 toolsdeclared outputSchema: results come typed, read once
  • Parameters without a description: in 1 of 20
  • Not saying whether it only reads or can destroy: 6 of 20

Worth a look

  • Tools that change data, on a server that answers without a sign-in: create_app, set_app_origins, delete_file

A program checks the server once a day: initialize and tools/list, no model. Tokens are the definitions' length at about four characters a token. The grade averages six checks of every tool's name, description, schema and annotations; it says how well the tools are described, not whether they work. The score weighs what was measured and nothing else: answering (25%), doing the product's job (25%), definitions (20%), context (10%), use (10%) and how readily a client connects (10%). A part that was not measured is left out, and a hidden instruction caps the score at 40. The state of vendors' MCP servers: method and numbers →

Security2026-11-29

Grade A, 94 of 100, checked 2026-11-29 · 18 of 18 checks judged · 3 failed

Full report →

When we asked itchecked 2026-11-22
  • Staterequires sign-inchecked 2026-11-22

On 2026-11-22 the server answered and asked for a sign-in with a Leash account (OAuth). It shows its tool list only to signed-in users, so we list none here.

Whose server it is
  • Registry namebuild.leash/leashverified in the MCP registry

The registry name sits under leash.build. The registry only lets a publisher use that namespace after proving control of the domain through DNS or HTTP.

Each line is something a program found when it went looking: the registry entry, the server's own answer, a spec that parses. A missing line means we did not find it, not that it does not exist.