Submit

Lain Mcp

@spuentesp

2 months ago
Overview

What is LAIN-mcp?

LAIN-mcp is a Rust MCP server that gives AI coding agents real architectural awareness of your codebase — not just line-by-line search, but system-wide understanding.

Built to solve a real problem: navigating large codebases with AI agents burns token budgets fast. LAIN-mcp fixes that by maintaining a persistent knowledge graph of your code, so agents understand structure and impact before making changes.

Key Features

  • Blast radius analysis — know what breaks before you change anything
  • Knowledge graph — persistent, queryable map of every symbol and relationship in your codebase
  • Co-change detection — git history analysis to find files that evolve together
  • Local semantic search — ONNX embeddings, no API keys, no data leaving your machine
  • Sub-millisecond graph queries — built in Rust with petgraph
  • 21 MCP tools — architecture, search, impact analysis, and health monitoring

Why Rust?

Zero-cost abstractions, memory safety without GC, and sub-millisecond traversal for long-running agent processes.

Completely local

No cloud. No API keys. Your code never leaves your machine.

License

MIT

Server Config

{
  "mcpServers": {
    "lain": {
      "command": "/path/to/lain/target/release/lain",
      "args": [
        "--workspace",
        "/path/to/your/project",
        "--transport",
        "stdio"
      ]
    }
  }
}
© 2025 MCP.so. All rights reserved.

Build with ShipAny.