Skip to content

Quickstart

Lucerna ships a built-in Model Context Protocol server so AI coding assistants (Claude Code, Cursor, Windsurf, Zed, VS Code, and more) can search your codebase directly.

Run the interactive installer from your project directory:

Terminal window
npx -y @upstart.gg/lucerna@latest install

The installer will:

  1. Detect and configure your AI clients — registers the Lucerna MCP server with every AI coding assistant found on your machine (Claude Code, Cursor, Windsurf, Zed, VS Code, and more)
  2. Scaffold lucerna.config.ts — creates a config file at your project root if one doesn’t exist yet (edit it afterwards to configure an embedding provider for semantic search)
  3. Scope the index for version control — writes a narrow .lucerna/.gitignore (excludes only ephemeral files like SQLite WAL journals and the process lock) and a .lucerna/.gitattributes (marks DB files binary / generated). The .lucerna/ directory itself is safe to commit by default, so teammates pick up a pre-built index on clone.

Restart your AI client after running the installer to load the MCP server.

See MCP Tools for the full tool reference.