New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

local-engineering-brain

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

local-engineering-brain

Local-first MCP server that auto-indexes the active coding workspace when available, with dependency analysis, architecture checks, test impact, and workspace log intelligence.

latest
npmnpm
Version
0.2.9
Version published
Weekly downloads
1
-94.74%
Maintainers
1
Weekly downloads
 
Created
Source

Local Engineering Brain

Local-first MCP server that gives AI clients durable, repo-aware engineering context from your own machine.

What This MCP Is

Local Engineering Brain indexes a workspace into a local SQLite knowledge base and exposes that knowledge through MCP tools. Instead of forcing an AI to repeatedly scan raw files, it gives the model structured access to:

  • code modules and symbols
  • dependency relationships
  • branch-local changes
  • architecture violations
  • deterministic test impact
  • workspace logs and incident timelines

Everything stays local. There is no cloud sync, remote indexing service, or automatic repo access on startup.

How It Helps Users

This MCP helps users who want their AI assistant to answer engineering questions with real project context instead of generic guesses.

It is useful for:

  • understanding unfamiliar codebases faster
  • tracing dependencies before changing code
  • estimating blast radius before a refactor
  • checking whether a branch breaks architecture boundaries
  • identifying likely affected tests after local changes
  • correlating branch changes with workspace logs and incidents

Quick Start

Add it to an MCP client with npx:

{
  "mcpServers": {
    "local-engineering-brain": {
      "command": "npx",
      "args": ["-y", "local-engineering-brain"]
    }
  }
}

Optional overrides:

{
  "mcpServers": {
    "local-engineering-brain": {
      "command": "npx",
      "args": [
        "-y",
        "local-engineering-brain",
        "--data-dir",
        "C:\\Users\\you\\.local-engineering-brain",
        "--workspace",
        "D:\\Workspace\\my-repo"
      ]
    }
  }
}

Safe defaults:

  • no arguments means no workspace is auto-indexed
  • index_workspace is the approval boundary for repo crawling
  • local state is stored under ~/.local-engineering-brain/

Supported Indexing

  • deep parsing for TypeScript and JavaScript
  • guaranteed discovery and evidence-backed indexing for C# and Lua
  • manifest, config, and documentation indexing as local evidence
  • git, architecture, test, and log intelligence on top of the indexed workspace

Tool Table

ToolWhat It DoesTypical User Benefit
index_workspaceAllowlists and indexes a workspace.Gives the AI durable project context for later questions.
get_index_statusReturns indexing progress or safe-default server status.Lets the user know whether the workspace is ready to query.
search_codeSearches indexed files, modules, and symbols.Finds relevant implementation areas quickly.
find_symbolResolves a symbol and nearby graph context.Explains where a symbol lives and how it is used.
find_moduleResolves a module and returns metadata and symbols.Helps the AI answer module-specific questions accurately.
get_module_dependenciesReturns direct and transitive dependencies.Shows what a module relies on before editing it.
get_reverse_dependenciesReturns modules that depend on an entity.Shows what may be affected by a change.
trace_dependency_pathFinds the shortest dependency path between two modules.Explains why two areas of the codebase are connected.
explain_moduleSummarizes a module and its local neighborhood.Produces fast codebase orientation for users and AI.
summarize_branch_changesMaps current branch changes to indexed modules and packages.Helps review local changes in project context.
estimate_blast_radiusEstimates what else is impacted by a module change.Supports safer refactors and change planning.
check_architecture_violationsReturns persisted architecture-rule violations.Helps keep dependency boundaries and layering intact.
analyze_test_failuresRanks likely impacted tests from changed modules.Helps focus testing effort after edits.
query_logsSearches indexed workspace logs.Lets the AI inspect runtime evidence without rereading raw log files each time.
build_incident_timelineCombines changes, tests, incidents, and logs.Helps explain local failures and regression timelines.

Example Prompts For AI Clients

  • Index D:\\Workspace\\my-repo with Local Engineering Brain and tell me when it is ready.
  • Use Local Engineering Brain to find calculateTotal and explain which module owns it.
  • Use Local Engineering Brain to summarize branch changes and estimate blast radius for src/api/checkout-service.ts.
  • Use Local Engineering Brain to check architecture violations and explain the highest-severity issue.
  • Use Local Engineering Brain to rank likely affected tests for the current branch.
  • Use Local Engineering Brain to query API error logs and build an incident timeline.

npm Package Description

Npm description:

Local-first MCP server for codebase indexing, dependency analysis, architecture checks, test impact, and workspace log intelligence.

Production Notes

  • transport: stdio only
  • recommended Node version: >=22
  • publish from the generated release bundle in .release/local-engineering-brain
  • the release bundle rewrites internal workspace packages so the published npx package is self-contained

FAQs

Package last updated on 20 Mar 2026

Related posts