Lain
Code graph for coding agents showing callers, dependencies and blast radius via MCP.
Tested on Linux
Use it
Linux x86_64
You need first
- Runtimes:
Rust 1.89 or newer
Install Lain via npm
npm install -g @spuentesp/lain-mcp
Check that it works
lain --version && which lain && ls ~/.pickfit/The output should contain “lain 0.14.0”.
Add it to your agent
claude mcp add lain -- lain mcpJSON for Claude Desktop, Cursor and other clients
{
"mcpServers": {
"lain": {
"command": "lain",
"args": [
"mcp"
]
}
}
}Add lain mcp as an MCP server in your coding agent's settings, then start the agent from inside your repository.
What it does
- See what a code change could affectTested
How to use it
- Start the server from your repository with
lain mcp. - Ask your agent to call the
get_blast_radiustool with the name of a function, for example{"symbol":"<function name>"}.
- Start the server from your repository with
- Trace the call chain between two functionsTested
How to use it
- Start the server from your repository with
lain mcp. - Ask your agent to call the
get_call_chaintool with a start and end function, for example{"from":"<caller>","to":"<callee>"}.
- Start the server from your repository with
- Search code by name or meaningTested
How to use it
- Start the server from your repository with
lain mcp. - Ask your agent to call the
find_symboltool with the name to look up, for example{"name":"<symbol name>"}.
- Start the server from your repository with
How far pickfit got
Linux x86_64
- Installs
- Connects
- 3 of 3 features work
- Needs the network
macOS and Windows: the project says it runs there; pickfit hasn’t tried it.
Good for
- assess blast radius before changing a function
- trace call chain between functions
- find files that usually co-change
- check agent presence before editing code
- search code by name or meaning
How pickfit tested it
Each run starts from a clean machine and follows the steps above. How pickfit verifies
Linux x86_64
An MCP client called one of its tools
- Replayed from scratch
- Needed the network
- Checked on 30 Oct 2026
- Version 0.14.0
An MCP client handshake over stdio listed 22 tools, and a call to get_blast_radius returned a result.