> ## Documentation Index
> Fetch the complete documentation index at: https://heygen-1fa696a7.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Lovable

> Connect HeyGen to Lovable as a custom MCP chat connector. Generate AI avatar videos from prompts while you build apps in Lovable.

## Prerequisites

* A Lovable account
* A HeyGen account with Video Agent access

## Add the Connector

Lovable supports custom MCP servers as **chat connectors** — per-user connections that give Lovable's chat context while you build.

<Steps>
  <Step title="Open chat connectors">
    Go to **Connectors → Chat connectors**. You can also reach this from the **+** menu next to the prompt input, or via the command palette (**Cmd/Ctrl+K**).
  </Step>

  <Step title="Add a custom MCP server">
    Choose **Add custom MCP server**, name it `HeyGen`, and enter the remote MCP server URL:

    ```text theme={null}
    https://mcp.heygen.com/mcp/v1/
    ```
  </Step>

  <Step title="Authenticate with OAuth">
    Save and connect, then complete the one-time OAuth sign-in to HeyGen to approve access — no API key required.
  </Step>
</Steps>

## Usage

In Lovable's chat, prompt a video generation request:

```text theme={null}
Generate a short product walkthrough video with HeyGen for this app.
```

Lovable calls HeyGen's tools to handle scripting, avatar selection, and rendering. Completed videos are accessible from the **Projects** page in your HeyGen dashboard.

<Note>
  Custom MCP servers in Lovable are **per-user** connections — they are personal, not shared with your workspace, and provide context to Lovable's chat during app creation. They are not bundled into your deployed app. See Lovable's [Integrations overview](https://docs.lovable.dev/integrations/introduction) for details.
</Note>
