lain-mcp
Architectural code intelligence for AI coding agents.
Installation
npm install -g lain-mcp
Or with npx (downloads binary on first run):
npx lain-mcp --workspace /path/to/project
What this installs
- Binary:
~/.lain/bin/lain — the Lain executable (downloaded from GitHub releases)
- Config:
~/.lain/tuning.toml — default tuning parameters
- Toolchains:
~/.lain/toolchains/ — empty dir for user toolchain overrides
- Models:
~/.lain/models/ — empty dir for ONNX embedding models (optional)
Configuration
Edit ~/.lain/tuning.toml to customize Lain's behavior. All values are optional — omit a field to use the built-in default.
Usage
After installation, add Lain to your MCP configuration:
{
"mcpServers": {
"lain": {
"command": "lain",
"args": ["--workspace", "/path/to/your/project"]
}
}
}
Or run directly:
~/.lain/bin/lain --workspace /path/to/project --transport stdio
Uninstall
npm uninstall -g lain-mcp
rm -rf ~/.lain