Luci for Cursor.

Cursor applies .cursorrules to its agent in every chat. Luci adds a managed block there with your project's rules, design baseline and active task, and the local luci-mcp server gives Cursor's agent your captures, design checks and the feedback you pin on the running page.

What Cursor gets

Instead of guessing from screenshots and long descriptions, Cursor works from files in your project and a local MCP server:

  • Project memory. Rules, decisions, the playbook and the active task in .luci/, linked from .cursorrules.
  • Your design system. luci capture baseline writes your type, colours and spacing from your stylesheets, so Cursor reuses your tokens instead of inventing new ones.
  • Measured references. Components, text styles, colours and spacing captured with the dev toolbar or the extension, saved as .design.md files.
  • Pinned feedback. Notes you click onto the running page. In React, Vue and Svelte projects each one carries its component and source line.
  • Design checks. A part-by-part comparison of what Cursor built against the capture.

1. Initialize Luci

Run this in your project root. It needs Node 18 or later:

npx @luci-dev/cli@latest init

Luci detects your framework and stylesheets, creates .luci/ and writes its block into .cursorrules. Cursor is one of the default agents, so no flag is needed.

Luci only edits the lines between its <!-- LUCI and <!-- END LUCI --> markers. Anything you write elsewhere in .cursorrules stays as it is when luci update runs.

2. Connect luci-mcp

luci-mcp (from @luci-dev/mcp) runs on your machine over standard stdio, with no network calls. Add the server to .cursor/mcp.json in your project (or ~/.cursor/mcp.json to use it in every project):

.cursor/mcp.json
{
  "mcpServers": {
    "luci": {
      "command": "npx",
      "args": ["-y", "@luci-dev/mcp"]
    }
  }
}

In Cursor's settings, check that the luci server is listed and turned on.

The tools Cursor uses most:

get_project_context
Rules, context and project setup, read at the start of a task.
list_captures · get_capture
The saved .design.md references, read before writing UI.
get_feedback_prompt · watch_feedback
Your pending notes from every page, or new ones as you save them.
get_design_checks
Recent design check results, read after edits.

Every tool is listed in the Agents and MCP docs.

3. Show it what to change

Start the dev toolbar while your app is running, then point at the page instead of describing it:

npx @luci-dev/cli@latest serve

Then ask Cursor, for example:

  • “Read the pending Luci feedback and fix every item, then report each ID.”
  • “Watch for new Luci feedback while I review the app.”
  • “Build the pricing card from the saved Luci capture, using our tokens.”
  • “Run the design checks again and fix what still differs.”

How notes, layout plans and checks work is in the Devtool guide.

Check the setup

luci doctor checks the installation and project setup and says what to fix. After upgrading Luci, luci update refreshes .cursorrules and the other agent files.

Using more than one agent? They all read the same .luci/ memory. Set up Claude Code, Codex, Gemini CLI or GitHub Copilot the same way.