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
- repository
- github.com/spuentesp/lain
- 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
Alternatives to Lain
Maintained coding agent servers if Lain isn't the fit.
- Serena A powerful toolkit for coding, providing semantic retrieval and editing capabilities. ★ 29,556 · 2026-09-17
- Desktop Commander MCP server for terminal commands, file operations, and process management ★ 9,633 · 2026-09-17
- Ouroboros Pins an acceptance spec; the verify command and expected output never enter the success contract. ★ 6,016 · 2026-09-15
- Socraticode MCP server for enterprise local codebase indexing, semantic search, and code dependency graphs. ★ 3,312 · 2026-09-17
- Omnara Deploy durable AI agents with Omnara, an open-source managed-agent platform. ★ 2,858 · 2026-09-18
- Docs Search and read Empryo's documentation. Read-only, no auth, no local access. ★ 1,246 · 2026-09-17
Pairs well with
Servers that cover what Lain doesn't - only shown when the pairing reason fits the companion.
- Context7 → documentation companion documentation · ★ 62,152
- GitLab MCP → documentation companion documentation · ★ 1,984
- Xcode Build MCP → developer tools companion developer tools · ★ 6,397
- Sentry MCP → developer tools companion developer tools · ★ 855
- Server Filesystem → filesystem companion filesystem · ★ 39,038
- Pdf MCP → filesystem companion filesystem · ★ 135
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