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

# Build on Beacon with Lovable

> Use Lovable to build apps on Beacon's figures: a dashboard drafted from Beacon while you build, or a published app that reads Beacon live with an app key.

Lovable builds full apps from a description. Beacon can be the source of their figures in two ways: Lovable reads Beacon while you build, or the app you publish reads Beacon every time it opens.

Whatever Lovable builds, the figures stay Beacon's. Lovable reads what Beacon stored, with each figure's date, and never more than one person's Beacon access allows.

## Pick your way in

| You want | Use | Signs in with | Figures |
| - | - | - | - |
| A first draft of a dashboard, built from your figures | Beacon as an MCP server in Lovable | Your own Beacon sign-in | A copy of today's figures, refreshed when you ask Lovable again |
| A published app that shows current figures | Beacon as a custom connector in Lovable | An app key | Read from Beacon each time the app opens |

## Build from Beacon's figures

Lovable reads Beacon while it builds, through the same connector Claude uses. The app it builds keeps a copy of the figures as they were that day: it can't contact Beacon by itself.

**1. Add Beacon in Lovable**

In Lovable, open **Connectors**, choose **Add custom**, then **MCP server**. Fill in:

* **Server name:** `Beacon`
* **Server URL:** `https://api.beaconrevenue.io/mcp`
* **Authentication:** **OAuth (default)**

Choose **Add & authorize**.

**2. Sign in to Beacon**

Sign in with your Beacon login if asked. Check the company shown, then choose **Allow**. Lovable shows Beacon as **Connected** and lists Beacon's tools.

**3. Describe the app**

For example: "Use the Beacon connector to read our monthly recurring revenue for the last 12 months. Build a one-page dashboard: a line chart of MRR by month, and a table of new, expansion, contraction and churned MRR. Show the figures exactly as Beacon gives them. Don't calculate totals or growth rates. Say which month the data runs to and that it comes from Beacon."

**4. Refresh by asking again**

When a new month closes, ask Lovable to bring in Beacon's figures again.

On Beacon's demo company on 18 November 2026, Lovable built this dashboard in about five minutes. It left out November, which hadn't closed, and noted that October had been checked against Stripe.

## Publish an app that reads Beacon live

A published app reads Beacon's [Data API](https://docs.beaconrevenue.io/build/app-on-the-api.md) through a Lovable custom connector. Lovable keeps the app key on its own servers: it never reaches the app's pages.

**1. Make an app key in Beacon**

Go to **Build → App keys** and choose **Make a key**. Choose who the key acts for and untick anything the app doesn't need. Copy the key: it is shown once. [App keys](https://docs.beaconrevenue.io/app-keys.md) covers every option.

**2. Create the connector in Lovable**

A Lovable workspace admin opens **Connectors**, chooses **Add custom**, then **Custom connector**, and fills in:

* **Display name:** `Beacon Data API`
* **Authentication → Method:** **Bearer token**
* **Credential label:** `Beacon app key`
* **API base URL:** `https://api.beaconrevenue.io/data/v1`
* **Test request:** **GET** `/accounts`

Choose **Create**. The form holds no key.

**3. Connect it with the key**

Open **Beacon Data API** in **Connectors** and choose **Connect**. Paste the key into **Beacon app key** and choose **Connect**. Lovable reads `/accounts` once to check the key.

**4. Describe the app**

In a project, ask, for example: "Using the Beacon Data API connector, read `GET /periods` every time the page opens, on the server. Don't copy any figures into the code. Show monthly recurring revenue by month, with each row's `as_of` and `lock_label`. If Beacon refuses a value, show its reason, never a zero. Don't calculate totals, averages or growth rates." When Lovable asks, link your Beacon connection to the project.

On Beacon's demo company on 19 November 2026, the app read Beacon fresh each time it opened, showed October 2026 as locked at month-end, and showed Beacon's reason for every value it refused.

> [!WARNING]
>
> **Everyone who opens the app sees what the key's person sees.** A Lovable custom connector uses one key for every request the app makes, whoever is looking. A Lovable app has no sign-in unless you add one, so once published, anyone with the link sees the figures. Put the app behind a sign-in, and make the key for a person whose view is fine to share.

### Keep the key safe

* **Never paste the key into Lovable's chat.** Paste it only into the connector's **Beacon app key** field.
* **Switch the key off to stop the app.** On **Build → App keys**, choose **Switch off**. Every read is recorded on **Settings → Who read what** under the key's name.
* **Replace it if it may have been seen.** **Replace key** stops the old key at once. Connect the Lovable connector again with the new one.

## Not available in Lovable yet

* **Each viewer signing in with their own Beacon login.** Lovable offers this only for tools on its own list, and Beacon isn't on it.
* **Beacon in Lovable's connector catalogue.** Add Beacon yourself as above.

## Related

> [card] [App on the Data API](https://docs.beaconrevenue.io/build/app-on-the-api.md)
>
> Addresses, paging, stamps and refusals.

> [card] [App keys](https://docs.beaconrevenue.io/app-keys.md)
>
> Make, replace and switch off keys.

> [card] [Pick your way in](https://docs.beaconrevenue.io/build/overview.md)
>
> Claude, ChatGPT, Lovable, agents, apps or files.


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