Structural code intelligence for AI agents. Scan once, query everything — dead exports, circular imports, dependency graphs, and more. CLI + MCP server.
Quick Install
Copy the config for your editor. Some servers may need additional setup — check the README.
Claude Desktop
Claude Code
Cursor
Add to claude_desktop_config.json:
{
"mcpServers": {
"loctree": {
"command": "cargo",
"args": [
"run",
"--",
"loctree"
]
}
}
}
📋 Copy
Run in terminal:
claude mcp add loctree cargo run -- loctree
📋 Copy
Add to .cursor/mcp.json:
{
"mcpServers": {
"loctree": {
"command": "cargo",
"args": [
"run",
"--",
"loctree"
]
}
}
}
📋 Copy