mcpbeat Sign in

Lain MCP Server

local only

Lain runs on your own machine — the client starts it, so there is no endpoint to ping. 964 installs a week from npm. Last commit 30 Oct 2026.

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

Installs per day peak 273 · avg 53 · +518% w/w
a month agotoday
964
Installs / week
npm · @spuentesp/lain-mcp
9
Stars
1 open issue
30 Oct 2026
Last commit
13 releases in 90 days
MIT
License
Rust

What the code does

We read the source, 2 d ago · rules 995398eba69f

Capabilities

What this server is able to do. For an MCP server this is often the job itself — a terminal server runs commands because that is what it is for. Listed so you know what you are plugging in, not as an accusation.

Runs a command on install [пакет] package.json:1
postinstall: node scripts/install.js
  const child = spawn(binary, process.argv.slice(2), { cwd: process.cwd(), stdio: 'inherit' });
In the project's build, not in the package

Found in continuous integration, deployment or infrastructure files, or in a neighbouring package of the same monorepo. None of this is installed when you add the server: it describes how the project is built and released. We list it because a leaked key in a build pipeline is still a real problem, but it is not something this server does on your machine.

Page loads a third-party script src/ui/blast-radius.html:7
    <script src="https://d3js.org/d3.v7.min.js"></script>

Is this your server and something here is wrong? Tell us — corrections are free and do not require a plan.

This code can reach further than it looks

We found places where it runs commands, builds paths or queries from values it is given. None of that is a flaw by itself — it becomes one when the code changes, and code changes quietly between releases. We re-read it on every one.

Three servers free · no card

Connect this server

This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.

run in your terminal
claude mcp add lain -- npx -y @spuentesp/lain-mcp
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "lain": {
      "command": "npx",
      "args": [
        "-y",
        "@spuentesp/lain-mcp"
      ]
    }
  }
}
~/.codex/config.toml
[mcp_servers.lain]
command = "npx"
args = ["-y", "@spuentesp/lain-mcp"]
.cursor/mcp.json
{
  "mcpServers": {
    "lain": {
      "command": "npx",
      "args": [
        "-y",
        "@spuentesp/lain-mcp"
      ]
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "lain": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@spuentesp/lain-mcp"
      ]
    }
  }
}

Alternatives to Lain

same job, measured the same way
Mnemograph
by tm42

Event-sourced knowledge graph memory for AI coding agents with semantic search

205 installs/wk local only
Graphlens MCP
by neko1313

Semantic code graph MCP server for coding agents

134 installs/wk local only
Neuromcp
by adelelo13

Semantic memory for AI agents with hybrid search, knowledge graph, and consolidation

403 installs/wk local only
Graph-Mem
by sathvik-1007

Persistent knowledge-graph memory for AI agents, with local semantic search. No API keys.

87 installs/wk local only
Codeseeker
by jghiringhelli

Graph-powered code intelligence with semantic search and knowledge graph for AI assistants

369 installs/wk local only
Agent Knowledge
by keshrath

Cross-session memory for AI agents - knowledge graph, scoring, semantic search

610 installs/wk local only
Komplyt Zero
by komplyzen

Persistent working memory for AI agents: a knowledge graph with semantic search and decay.

154 installs/wk answering
Cacheoverflow
by getcacheoverflow

MCP server for cache.overflow - AI agents sharing knowledge with AI agents

55 installs/wk local only

Lain — questions

Answers built from our own checks of this server.

Why is there no uptime for Lain?
Lain runs on your own machine over stdio — there is no network address to reach, so uptime cannot be measured for it by anyone. What can be measured is adoption: the npm package @spuentesp/lain-mcp was installed 964 times last week.
How do I connect Lain?
Copy the ready config from this page. We generate it for Claude Code, Claude Desktop, Codex, Cursor and VS Code, each in the form that client actually reads. It runs locally, so the command pulls @spuentesp/lain-mcp straight from npm; nothing to host, nothing to sign up for.
How many people use Lain?
The npm package @spuentesp/lain-mcp was installed 964 times in the last week. Week over week that is +518%. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.
Is Lain open source?
Yes — it is published under the MIT licence, written in Rust, 9 stars on GitHub and 1 open issue. The source link is on this page, so you can read exactly what it does with your data before you connect it.