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.

Use add-mcp, which supports 14 clients and writes the correct config file automatically:

Terminal window
npx add-mcp "@upstart.gg/lucerna mcp-server" --name lucerna

add-mcp will prompt you to choose which clients to configure (Claude Code, Claude Desktop, Cursor, VS Code, Zed, etc.). The MCP server will use the working directory of the client as the project root — no hardcoded paths needed.

ToolDescription
search_codebaseHybrid semantic + BM25 search with optional graph context expansion. Returns { results, warning? }.
get_neighborsGet the knowledge-graph neighborhood for a chunk ID from search results.
ParameterTypeDefaultDescription
querystringSearch query
includeGraphContextbooleantrueExpand results with related symbols from the knowledge graph
graphDepthnumber1Hops to follow when expanding graph context (0–3)
limitnumber10Maximum results to return
languagestringRestrict to a language (e.g. "typescript")
typestringRestrict to a chunk type ("function", "class", etc.)
filePathstringFilter by file path (supports glob patterns)

To improve search quality with custom embedding or reranking providers, see Configuration.