Lain MCP Server

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). It runs locally over stdio via the published package.

People who work with agentic coding, petgraph and treesitter and want it reachable from Claude, Cursor, VS Code, or another MCP client. The project is written in Rust.

VERIFIED ACTIVE

LAST COMMIT 2026-09-18 · ★ 6 · #78 OF 229 MAINTAINED CODING AGENT · VERIFIED 2026-09-18

MIT · Rust servers · how we verify → /methodology

01 · Install Lain

before you install - you'll need

Set LAIN_EMBEDDING_MODEL before connecting.

Claude Code

claude mcp add spuentesp-lain -- npx -y @spuentesp/lain-mcp

Claude Desktop / Cursor / VS Code - add to config

{
  "mcpServers": {
    "spuentesp-lain": {
      "command": "npx",
      "args": [
        "-y",
        "@spuentesp/lain-mcp"
      ]
    }
  }
}

Same JSON for Cursor. For VS Code, rename the top-level key from `mcpServers` to `servers`.

Using another client? Same JSON, different key

Claude Desktop · mcpServers

Cursor · mcpServers

VS Code · servers

Windsurf · mcpServers

Zed · context_servers

Cline · mcpServers

Roo Code · mcpServers

Continue · mcpServers

LibreChat · mcpServers

Gemini CLI · mcpServers

Codex CLI · mcp_servers

Full setup guides: every client.

02 · Evidence

Security posture

What to check before giving this server access to your agent - from the registry, GitHub, and our own probes. We don't score safety; we show what's verifiable.

runs as local process (stdio) - runs on your machine with your user's permissions

license MIT - declared in the repository

npm package @spuentesp/lain-mcp - published under the repo owner's npm scope (@spuentesp)

registry namespace io.github.spuentesp is GitHub-verified and matches the repo owner

03 · What Lain can do

Prose above is summarized from the project's README and registry record - no invented capabilities.

Latest releases

v0.7.4 · 2026-09-16

v0.6.2 · 2026-08-29

v0.6.1 · 2026-08-28

[0.6.1] - 2026-08-28 · Fixed · Kimi integration (the headline fix). lain mcp now reads the · parent agent's cwd via /proc/$PPID/cwd on Linux and walks up for · .git from there, falling back to the process's own cwd.…

04 · Who maintains Lain

lain is maintained by spuentesp. It's the only MCP server we track from this author; the repo dates to Apr 2026.

05 · Facts

category
coding agent - ranked #78 of 229 actively-maintained coding agent servers as of 2026-09-18.
release cadence
9 releases in the last 90 days (latest 2026-09-16)
registry
io.github.spuentesp/lain (active, first published 2026-05-02)
packages
npm:@spuentesp/lain-mcp

06 · Lain FAQ

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). It runs locally over stdio via the published package.

Is Lain still maintained?

Yes - as of 2026-09-18, its last commit was 2026-09-18 and it shipped 9 releases in the last 90 days. We re-verify nightly.

How do I install Lain?

Run `npx -y @spuentesp/lain-mcp`. The README documents one environment variable (LAIN_EMBEDDING_MODEL) to set first. Set LAIN_EMBEDDING_MODEL before connecting. You can also paste the ready-made client config above.

Does Lain run locally?

Yes - it's a stdio server: it runs on your machine (via npx) with your user's permissions. Your data stays local unless the server itself calls external APIs.

07 · Alternatives to Lain

More coding agent MCP servers · Squirrelscan · Agendum · Starwind UI MCP Server · RLM Tools · Code Nib

More Rust MCP servers · Dbx · Tailscale · Memkeeper · Pond · Raven Nest MCP · see all