# MCP server

Quickland exposes a Model Context Protocol server so agents can create, edit, and publish landing pages without leaving the IDE.

## Hosted (recommended)

Connect to `https://app.quickland.app/api/mcp` with Streamable HTTP:

```json
{
  "mcpServers": {
    "quickland": {
      "url": "https://app.quickland.app/api/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}
```

Create an API key in the dashboard under **Settings → API Keys** (keys start with `ql_`).

## Local package

Point Cursor (or any MCP client) at the local MCP package and set `QUICKLAND_API_KEY`. Optionally set `CONVEX_URL` for a non-production deployment.

## What agents can do

- `list_sites` / `get_site` — inspect sites and elements
- `create_site` / `publish_site` / `unpublish_site`
- `add_element` / `update_element` / `remove_element` / reorder
- Section children, theme, header/footer, nav, multi-page SEO
- `preview_page` — unauthenticated demo preview for autonomous routing

## Demo preview (no account)

Agents can POST a JSON payload to create a short-lived preview on `demo.quickland.app` via the demo flow / `preview_page` tool — useful when routing without credentials.

## Machine-readable variants of this page

- [llms.txt](https://www.quickland.app/mcp/llms.txt)
- [Markdown](https://www.quickland.app/mcp?format=md)
- [JSON-LD](https://www.quickland.app/mcp?format=json)

## Next

[Sign up on the App Host](https://app.quickland.app/sign-up) · [API surfaces](https://www.quickland.app/api) · [Pricing](https://www.quickland.app/pricing)