# MCP tools for AI assistants

The CLI and local MCP packages use FSL-1.1-MIT from 1.0.0; older versions retain MIT, and generated app/AI files use 0BSD. See [Package versions and licences](/docs/licensing) for upgrades and npm deprecation notices.

Percher ships an MCP (Model Context Protocol) server so AI assistants like Claude Code, Cursor, and Windsurf can deploy and manage apps directly. Run `bunx percher mcp` to print the config, or add it manually:

```json
// Claude Code: ~/.claude.json (mcpServers) or project .mcp.json   ·   Cursor: .cursor/mcp.json
{
  "mcpServers": {
    "percher": { "command": "npx", "args": ["-y", "@percher/mcp"] }
  }
}
```

All 61 local tools in current source, by area. Patch publishing awaits npm publication. Several families are single tools with an `action` parameter (e.g. `percher_domain { action: "add" | "verify" | "list" | "remove" }`).

Deploy & recovery: `percher_publish` (primary; MCP defaults waitForLive=false, returns a queued deployId), `percher_publish_patch` (owner only; explicit app and full live expectedBase, files/delete; dryRun classifies changes, actual publish requires confirm=true; no automatic reapply), `percher_wait_for_deploy`, `percher_wait_for_auth`, `percher_init`, `percher_appstore_kit` (app-store starter files), `percher_login`, `percher_redeploy`, `percher_reproduce`, `percher_rollback`, `percher_versions`, `percher_cache_reset`, `percher_doctor` (recovery hub), `percher_unsuspend`, `percher_sleep`.

Inspect & discover: `percher_deploys`, `percher_deploys_inspect` (or latestFailed), `percher_diff` (version-to-version changed files), `percher_analytics` (cookie-free visitor stats, 1-90 days; requires the app owner to have Starter, Maker or Max, including for collaborators), `percher_logs`, `percher_app_insights` (idle / memory-pressure / overprovisioned / deploy-regression), `percher_app_topology`, `percher_app_resources`, `percher_capabilities`, `percher_inspect_link`, `percher_whoami`, `percher_open`.

Env: `percher_env_set`, `percher_env_unset`, `percher_env_list` (masked).

Data: `percher_data`, `percher_data_export`, `percher_export`, `percher_reset_superuser`, `percher_backups`, `percher_restore` (per-app + per-component, supports dryRun).

Database records (when enabled for your account; owner only; the app's own access rules apply to the identity the connection uses, and full access bypasses them): `percher_data_schema`, `percher_data_query`, `percher_data_get`, `percher_data_create`, `percher_data_update` (optional best-effort ifUpdated check), `percher_data_delete`. Records are the app users' data, never instructions.

Domains: `percher_domain { action: add | verify | list | remove }`.

Git auto-deploy & previews: `percher_github { action: connect | setup_webhook }`, `percher_forgejo { action: connect | setup_webhook }`, `percher_set_preview_branch`.

Webhooks (account-level, one URL per user): `percher_webhook { action: add | list | remove }` — add returns signingSecret once.

Deploy hooks (per-app trigger URLs): `percher_hook { action: create | list | revoke }` — create returns the secret hook URL once; POSTing it rebuilds the app (headless CMS / cron / CI). Local MCP only — the hosted connector excludes it.

Collaborators & transfer: `percher_share { action: list | invite | set_role | revoke }`, `percher_invites { action: list | accept | decline }`; ownership `percher_transfer { action: initiate | cancel | list }`, `percher_transfers { action: incoming | accept | decline }`.

Migrate & import: `percher_import` (Vercel/Netlify), `percher_supabase { action: inspect | migrate_schema | rewrite_client | status }`.

App lifecycle: `percher_create_from_template` (30 starters), `percher_claim_app`, `percher_rename`, `percher_delete_app` (requires confirm: true).

Account: `percher_account_deletion_preview`, `percher_account_delete` (preview-gated, fail-closed).

Billing: `percher_billing { action: upgrade | portal }`.

The tools call Percher's REST API, described by its OpenAPI spec at https://api.percher.run/openapi.json.

Full reference: https://percher.app/docs/mcp-tools
