The MCP server runs inside the Lunagraph desktop app. Keep the app open while your agent uses it.
On this page
Video walkthrough
This clip is from Part 3 of the getting started tutorial, starting at 14:40.
Set up the MCP
In Lunagraph, click MCP in the top bar to open Connect MCP. The dialog shows your local server URL and whether the server is ready. You can copy the setup for your agent from there, or use the steps below.- Claude Code
- Codex
- Cursor
- Other
1
Add Lunagraph MCP to Claude Code
Run this command in your terminal to register the Lunagraph MCP server:
2
Verify connection
Run this command and confirm Lunagraph appears as connected:
Point the agent at your selection
Tell your agent exactly which element you mean by giving it a link to your selection.1
Open your agent in the terminal
Start Claude Code or another connected agent while Lunagraph is open.
2
Copy a link to your selection
Select an element on the canvas and press Shift + Cmd + L to copy a link to it.
3
Paste the link into your prompt
Paste the link into your message along with what you want to change. The agent uses the MCP to find that element on the canvas.

