Pick your way in
Dashboards in a chat
You need Beacon added to your Cursor app and signed in. Use Beacon in Cursor covers it.1
Start a new chat
Open a new chat in Cursor. You don’t need a project open.
2
Name the figures and the rules
Ask, for example: “From Beacon, build a revenue dashboard: closing MRR and ARR for the last three closed months, the movements in each, and this month so far kept separate. Show each figure’s month. Show only what Beacon served. Don’t work anything out yourself.”
3
Look beside the chat
Cursor may draw the dashboard as a Canvas that opens beside the chat, with tables and charts. It also writes the figures in the chat.
4
Refresh by asking again
Ask Cursor to read the same figures again. Every read is fresh.
An agent key in Cursor
An agent key lets Cursor read Beacon under the key’s name rather than your own sign-in. The key acts for one accountable person and reads only what they see in Beacon. Use it when you want an agent’s reads kept apart from your own, with their own off switch.1
Make the key in Beacon
Go to Build → Agent keys and choose Make an agent key. Name it after the agent, choose who it acts for and untick anything it doesn’t need to read. Copy the key: it is shown once.
2
Put the key where Cursor can read it, not in the file
Store the key in an environment variable named, for example,
BEACON_AGENT_KEY. Cursor reads environment variables in a server’s address and headers, from your system environment.On a Mac, the Cursor app sees a variable set with launchctl setenv BEACON_AGENT_KEY followed by the key, provided Cursor is opened after it is set. Such a variable lasts until the Mac restarts.3
Quit Cursor, then add a second Beacon entry
With Cursor closed, open The
~/.cursor/mcp.json and add an entry next to your signed-in beacon entry:mcp.json
?via=cursor-agent-key ending matters: Cursor merges two entries that share an address into one, and the agent entry disappears. Beacon accepts the ending.4
Open Cursor and check the entry
Under Customize → MCPs, beacon-agent shows as connected. Cursor uses the key and doesn’t ask you to sign in. In Beacon’s test it listed 13 tools: eleven read tools, plus Who is working this account? and Note what I did, which only agent keys get. The setup tools aren’t listed for an agent key.
5
Ask
In a new chat, ask, for example: “Use only the beacon-agent tools. Which company am I connected to, and what is our ARR? Show only what Beacon served, with its month.”
Have Cursor write an app on the Data API
Cursor can write the code for an app that reads Beacon on its own: a dashboard on Vercel, an internal tool, a scheduled script. The app reads Beacon’s Data API with an app key.1
Make an app key in Beacon
Go to Build → App keys and choose Make a key. App keys covers every option. Copy the key and keep it out of the chat.
2
Point Cursor at the docs, and have it stop before the key
In a new chat, ask, for example:
Create a folderbeacon-app-testin my home folder and work there. First read https://docs.beaconrevenue.io/app-keys and the Data API reference at https://docs.beaconrevenue.io/api-reference. Then write a small web page that readshttps://api.beaconrevenue.io/data/v1/accountswithAuthorization: Bearerand the key from the environment variableBEACON_APP_KEY, loaded from a.envfile in that folder. Followpage.nextuntil there are no more pages. Show each account’s lifecycle stage and health score with that row’sas_of, and the total number of rows. If Beacon refuses a request or a value, show the reason it gives on the page, never a zero. Create the.envfile with the lineBEACON_APP_KEY=and stop there: tell me when it’s ready for my key. Never ask me to paste the key into this chat.
3
Paste the key into the file
When Cursor says it’s ready, open
.env in that folder and paste the key straight after BEACON_APP_KEY=, with no space. Save it. On a Mac, files that start with a dot are hidden in Finder: press Cmd + Shift + . to show them.4
Run it
Tell Cursor: “The key is in .env, run it.”
5
Move the key to where the app lives
When the app goes somewhere other people use it, add
BEACON_APP_KEY to that place’s settings, such as an environment variable on Vercel, and keep .env off every shared copy.6
Keep it current
Ask Cursor to add a check on
/changes so the app re-reads only what Beacon has re-worked. Stay current shows how..env, keeps .env out of version control, follows page.next to the last page, and shows Beacon’s reason in place of any refused value. The free plan reached its usage limit before Cursor could run it. The key itself read the customers on Beacon’s demo company with HTTP 200, and Beacon recorded the read.
Check how the page shows a refusal. A value Beacon doesn’t hold comes back with a
reason in its place. A request refused because of the key comes back differently: with no key, Beacon answered HTTP 401 with "status": "no_key" and a detail sentence saying what to do. The code Cursor wrote in Beacon’s test looked only for reason, so it would have shown a refused key without Beacon’s sentence. Ask Cursor to show status and detail too, so a refused read never looks like an empty list. Build an app on the Data API lists every answer.What Beacon records
Every read appears on Settings → Who read what, under the person it acts for:
Filter by Key to see only one key’s reads. A request that never reaches Beacon isn’t recorded, because nothing was read.
Keep it safe
- Keys stay out of files you share. An agent key lives in an environment variable, an app key in
.envor your host’s settings. Neither belongs inmcp.json, in code, or in the chat. - Anyone holding a key reads as its person. Give it only to people who may see what that person sees.
- Switch a key off to stop it. On Build → App keys or Build → Agent keys, choose Switch off. From then on Cursor is refused with
key_switched_off, and told to ask the person who made the key, or an admin, for a new one. A switched-off key can’t be switched back on; make a new one. - Replace a key that may have been seen. Replace key makes a new one with the same settings and stops the old one at once.
- Turning off Cursor for the company. Sign-ins from Cursor’s desktop app count as Other AI tools; see Turn Cursor off for your company. Agent keys and app keys each have their own off switch.
Not tested yet
- Cursor running the app it wrote and showing the page. Beacon’s test reached the free plan’s usage limit first. The key’s read itself was tested.
- Cursor’s cloud agents. They need a paid Cursor plan and haven’t been tested with Beacon.
- Setting the agent key’s variable on Windows. Beacon’s test was on a Mac.
Related
Use Beacon in Cursor
Add Beacon and sign in.
Build an app on the Data API
Keys, paging and every answer.
Agent keys
The accountable person, what it may read, refusals.