MCP.Market

Lain MCP server

by spuentesp·io.github.spuentesp/lain·v0.10.0·9 stars

High-performance knowledge graph MCP server for AI coding agents with semantic search.

B77/100grade B
What users say
No reviews yet
Be the first
Safety scan
B77/100

not scanned yet

Adoption
Growing

9 stars

Reviews

Write one

Nobody has reviewed Lain yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

Lain tools

No tool declarations could be read from the package source. They show once the server is installed.

Not scanned yet. New listings are scanned within a day or two of arriving.

How Lain compares

Against every graded Web search MCP server, from our own scans and uptime checks. Updated after each scan run.

Safety score
77/100
higher than 55% of 3,470 Web search servers
GitHub stars
9
more than 85% of 1,786 Web search servers

Release history: 2 versions in the registry since 2026-05-02, latest 2026-10-14, typically one every 165 days.

Install Lain in Claude Code, Cursor or VS Code

Runs npx -y @spuentesp/lain-mcp on your machine. Read the scan report first; the gateway never runs local packages.

claude mcp add lain -- npx -y @spuentesp/lain-mcp
Add to Cursor

What the publisher says

From the Lain repository's README, as published. We do not edit it. Read it on GitHub

LAIN-mcp

Structural Code Intelligence & Multi-Agent Coordination for AI Assistants.

Give your coding agents an in-memory graph brain instead of making them guess from flat text.

What is LAIN?

LAIN is a persistent, high-performance code intelligence and coordination engine built specifically for AI coding agents (Claude Code, Cursor, Copilot, Codex, Agy, Cline, Windsurf, etc.) over the Model Context Protocol (MCP).

Instead of treating code as unstructured flat text or relying on fuzzy keyword searches, LAIN indexes your codebase into an in-memory, typed structural property graph (using Tree-sitter, language servers, and Git commit history). It then exposes a rich suite of deterministic MCP tools that allow AI agents to navigate, reason about, and modify complex codebases without hallucinations, blind edits, or context-window waste.

See it run

  • Instant Answers: Federation overview, repo health, and call graphs answered in milliseconds.
  • Hot Reload: Edit repos.yaml or workspaces.yaml; the server updates live without dropping a single active MCP session.
  • Interactive Tool Console: Exercise any MCP tool directly from the web browser; Copy as cURL gives agents and operators instant reproducibility.

[!NOTE]

The demo is kept as a single GIF so it plays inline without storing duplicate video encodings in the repository.

How it fits together

flowchart TB
    subgraph Clients["AI Agents & Developers"]
        A["AI Coding Agent<br/>(Claude Code / Cursor / Agy / Codex)"]
        B["Developer / Operator<br/>(Browser Command Center)"]
    end

    subgraph Transports["MCP & Web Transports"]
        S["stdio (single-repo)"]
        H["HTTP :9999 (JSON-RPC & SSE)"]
    end

    subgraph Core["LAIN Core Engine"]
        EX["Unified MCP Tool Dispatcher"]
        G["In-Memory Graph Engine<br/>(Petgraph · UUID v5)"]
        PRES["Presence & Claim Registry<br/>(Advisory Leases & Locks)"]
        FED["Federation Engine<br/>(N Repositories)"]
    end

    subgraph Sources["Code Analysis & Storage"]
        TS["Tree-sitter AST Parser"]
        LSP["Language Servers (rust-analyzer, pylsp...)"]
        GIT["Git Commit History (Co-change radar)"]
        BIN[".lain/graph.bin (Persistent Cache)"]
    end

    A -->|MCP JSON-RPC| S
    A -->|MCP HTTP| H
    B -->|GET /| H
    S --> EX
    H --> EX
    EX --> G
    EX --> PRES
    EX --> FED
    G <--> BIN
    G --> TS
    G --> LSP
    G --> GIT

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

Lain: common questions

Is Lain MCP server safe?
Mostly: it is graded B (77/100). Read the Lain safety report
How do I install Lain?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does Lain need an API key?
Not as far as the registry entry and our scan can tell: no credentials are declared or required.
Is Lain maintained?
The last commit was 37 days ago (2026-09-27). The latest release is v0.10.0.
What can I use instead of Lain?
Servers from other publishers that do the same job: Octocode MCP server, Crg MCP server and Shodh Memory MCP server. Compare all Lain alternatives.
How does Lain compare with other Web search MCP servers?
safety score 77/100 (higher than 55% of 3,470 Web search servers); github stars 9 (more than 85% of 1,786 Web search servers). Full comparison.

Alternatives to Lain

Same job from other publishers: the closest match first, then the best rated.

All Lain alternatives →
  • Octocode
    AI-powered code indexer with semantic search and knowledge graphs
    A
  • Crg
    Token-efficient code review knowledge graph: semantic search and call-graph resolution.
    B
  • Shodh Memory
    Cognitive memory for AI agents — semantic search, Hebbian learning, knowledge graphs.
    C
  • Codeseeker
    Graph-powered code intelligence with semantic search and knowledge graph for AI assistants
    C
  • Arxiv
    Search arXiv papers, download full text, semantic search, citation graphs, and alerts via MCP.
    A