> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getsite.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP server

> Manage GetSite from Claude, Cursor or any MCP client. Agency plan.

GetSite runs a remote MCP (Model Context Protocol) server at `https://mcp.getsite.ai/mcp`. It gives an AI client tools for your websites, pages, versions, forms, leads, domains and the AI generators. It uses the same [API key](/developers/api#get-a-key) as the REST API, so it needs the Agency plan.

The server forwards your key to the API on every call and stores nothing.

## Connect

Claude Code:

```bash theme={null}
claude mcp add --transport http getsite https://mcp.getsite.ai/mcp \
  --header "Authorization: Bearer gsk_..."
```

Claude Desktop, Cursor and other clients that read an `mcp.json`:

```json theme={null}
{
  "mcpServers": {
    "getsite": {
      "type": "http",
      "url": "https://mcp.getsite.ai/mcp",
      "headers": { "Authorization": "Bearer gsk_..." }
    }
  }
}
```

Both snippets are on the API Keys page under **MCP Server**, filled in with your key right after you create one. The transport is Streamable HTTP over POST. OAuth is not supported.

## Typical flow

Ask the client to build a site and it calls, in order: `create_website` → `create_page` at path `/` with a `prompt` → `generate_page` → `get_run` until the run completes → `deploy_page`. Create and generate the `/` page first: `generate_page` returns 409 for any other page until the home page has been generated, and 400 if the page has no prompt. Credits and plan rules are the same as in the app.

`generate_page` has no `model` parameter, so it always runs on Opus 5.5 at the 1x rate. To use Fable 5.1, call `POST /v1/pages/:id/generate` on the REST API.

## Tools

**Websites**: `list_websites`, `get_website`, `create_website`, `update_website`, `delete_website`. `delete_website` removes the site and all its pages; it cannot be undone from the app or the API.

**Pages**: `list_pages`, `list_website_pages`, `get_page`, `create_page`, `import_page`, `update_page`, `delete_page`, `clone_page`, `fork_page`, `list_public_pages`

**Versions**: `list_page_versions`, `get_version`, `create_version`, `restore_version`, `deploy_page`

**AI**: `generate_page` (20 credits, +10 with images, async), `get_run`, `list_runs`, `suggest_pages`, `generate_image` (2), `generate_logo` (10 per variant), `generate_og_image` (10), `regenerate_section` (10), `regenerate_text`, `generate_metadata`, `generate_domains`, `generate_subdomain`, `check_domain`

**Forms and analytics**: `list_forms`, `get_form`, `update_form`, `delete_form`, `get_form_emails`, `list_form_submissions`, `list_submissions`, `delete_submission`, `get_page_analytics`, `get_all_pages_analytics`, `get_form_analytics`, `get_forms_analytics`

**Leads**: `list_leads`, `get_lead`, `update_lead`, `enrich_lead` (1 credit), `list_lead_searches`, `create_lead_search` (5 credits), `get_leads_stats`, `export_leads`

**Domains**: `list_domains`, `get_domain`, `add_domain`, `update_domain`, `delete_domain`, `add_subdomain`, `add_domain_dns_record`, `delete_domain_dns_record`, `get_domain_analytics`, `get_domain_uptime`

Not available over MCP: the editor chat (`POST /v1/edit/turn` on the REST API), campaigns, experiments, CMS, payments and file uploads. Use the REST API for those. Buying a domain is not possible over MCP; use the app.

List tools take a 1-based `page` and a `limit` (default 25, max 100; versions default 10; leads tools default 20, and `list_lead_searches` caps at 50). `list_website_pages` returns every page of the site with no paging. Version listings include the full HTML, CSS and JS of each version; keep limits small.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.