Context7
Feeds AI the latest docs for libraries and frameworks before it answers, so code it writes does not use outdated, removed functions.
Description from the maker (original English)
High-performance knowledge graph MCP server for AI coding agents with semantic search.
These three are never merged into one score: opinions, measurements and popularity are different things.
We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.
Pick the AI app you use, then copy the settings.
You need
Which app do you use?
Pick your app above. We remember it, so next time the button says “Install in …”.
Open Claude Desktop → Settings → Developer → Edit Config, and paste this into claude_desktop_config.json
{
"mcpServers": {
"lain": {
"command": "npx",
"args": [
"-y",
"@spuentesp/lain-mcp"
]
}
}
}Run this in your terminal
claude mcp add lain -- npx -y @spuentesp/lain-mcpPaste into .cursor/mcp.json in your project, or ~/.cursor/mcp.json
{
"mcpServers": {
"lain": {
"command": "npx",
"args": [
"-y",
"@spuentesp/lain-mcp"
]
}
}
}Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.
Paste into .vscode/mcp.json in your project
{
"servers": {
"lain": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@spuentesp/lain-mcp"
]
}
}
}Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.
This one runs on your computer, and ChatGPT can only connect to servers on the internet. Pick another app.
Your choice stays on this device in a cookie; no account needed.
These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
Runs on your computer; the tool list appears in your AI app after you install it.
We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 7, 2026
The registry name was verified with the GitHub account spuentesp, which owns the repo
We have not read this repo from GitHub yet
We have not read this repo from GitHub yet
This one runs on your computer; there is no internet endpoint
Runs on your computer and uses local settings instead
Runs on your computer; we can only read tool lists from internet endpoints
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
It passed 1 of 1 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.
The registry does not list a required key, though some servers ask you to sign in on first use.
It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).
The GitHub repo last changed –, and the latest version (0.10.0) reached the registry 23 days ago.
Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.
In the same category: Context7, Codebase Memory, Exa
Servers in the same category from other makers, sorted by stars.
Reading a card:★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi
Feeds AI the latest docs for libraries and frameworks before it answers, so code it writes does not use outdated, removed functions.
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.
A code graph for coding agents. Lain maps callers, dependencies, symbols, and Git co-changes, then exposes them through the Model Context Protocol (MCP). Before an agent edits a function, it can inspect what depends on it and how the rest of the code reaches it.
The demo traces a symbol across the bytes and tokio repositories. Agents query the same graph through MCP; the browser shows what Lain indexed and where an answer came from.
Ask your agent:
If I change validate_token, what breaks?
Show me the call chain from entry to helper_a. Which files usually change with auth.rs? Is another agent already editing this code?
Lain answers with symbol names and source paths from a local index. The index stays on disk between runs and can cover more than one repository. It follows commits, not uncommitted edits: after committing, a re-index pass (lain reindex or a fresh session) brings it current — and answers that may miss recent work say so instead of going quiet. Semantic search is optional; graph queries work without an embedding model.
Using the release installer:
curl -fsSL https://raw.githubusercontent.com/spuentesp/lain/main/install.sh | bash
source ~/.zshrc # or ~/.bashrc lain --version
Or from npm (macOS, Linux, and x64 Windows):
npm install -g @spuentesp/lain-mcp
lain --version
Two npm notes:
npm install -g fails with EEXIST when an unrelated lain file already sits in npm's global bin directory — for example an older manual copy in ~/.local/bin when your npm prefix is ~/.local. The npm error itself cannot tell the file is unrelated; move or remove it, or install under a different prefix: npm install -g --prefix ~/.local/lain-npm @spuentesp/lain-mcp (then add ~/.local/lain-npm/bin to your PATH).--ignore-scripts, a locked-down CI), the platform binary is not fetched during install. The first lain run downloads and verifies it, so that first run needs network access; once cached, lain works offline.Rust 1.89 or newer is only needed when building from source. The quickstart covers non-interactive installation and the optional local embedding model.
Run one setup command from the repository you want Lain to index:
lain setup --agent claude-code
lain setup --agent codex lain setup --agent cursor lain setup --agent vscode lain setup --agent continue
Use lain setup --agent generic for another MCP host. Each adapter writes the client's own configuration — claude mcp add for Claude Code, ~/.codex/config.toml for Codex, ~/.cursor/mcp.json for Cursor, .vscode/mcp.json (or the user-scoped mcp.json) for VS Code, a block file under the repository's .continue/mcpServers/ for Continue. generic writes this project-level .mcp.json:
{
"mcpServers": { "lain": { "command": "/home/you/.local/lain/lain", "args": ["mcp"] } } }
command is always the absolute path of the lain binary that ran setup — not the bare name — so the agent runs the same binary no matter which PATH it inherits. That path depends on the install: the release installer puts the binary at ~/.local/lain/lain, while the npm package registers the verified cache binary it launches (~/.cache/lain/ / /lain on Linux, ~/Library/Caches/lain/… on macOS, %LOCALAPPDATA%\lain\Cache\… on Windows). Setup finishes by starting exactly that command once and verifying the MCP handshake.
On a terminal, lain setup without --agent asks which client to configure (Enter picks Claude Code), and without --lsp asks which optional language servers to install (Enter installs none). Non-interactive runs default to generic and no language servers, so scripts should pass --agent and --lsp explicitly.
Restart the agent after setup. Lain walks up from the agent's working directory to find .git, builds .lain/graph.bin, and serves the repository over stdio. No repos.yaml is needed for one repository.
Parsers for Rust, Python, TypeScript, JavaScript, Go, Java, C, C++, C#, Ruby, Swift, Kotlin, Scala and PHP are built into the binary, as are the blocks of Vue and Svelte components. Every one gets definitions and a call graph with nothing else installed.
Language servers are optional and only add precision. lain setup lists the languages it found and asks which servers to install; pressing Enter installs none. Non-interactive runs install none unless you name them:
lain setup --lsp python,go # just these
lain setup --lsp detected # every missing one for this repository lain setup --lsp none
Ask the connected agent:
Use Lain to show the blast radius of validate_token.
Or call the same tool from a terminal:
lain oneshot get_blast_radius validate_token
Use a symbol from your repository in place of validate_token. If the graph isn't ready or an answer looks stale, run lain doctor.
lain repos add bytes https://github.com/tokio-rs/bytes.git
lain repos add tokio https://github.com/tokio-rs/tokio.git lain workspaces create tokio-stack --members bytes,tokio lain server --config ./repos.yaml --transport http --port 9999
Open http://localhost:9999 for the Command Center. The server listens on localhost only; set LAIN_BIND_ADDR=0.0.0.0 (with LAIN_API_KEYS=key1,…) to expose it on the network. Federation adds organization-wide search and cross-repository blast-radius queries. The federation guide covers configuration, source types, and failure states. After a federation schema upgrade, run lain reindex to rebuild the on-disk graph from the sources.
From a source checkout:
scripts/demo.sh --quick
The script creates a small repository with a known call graph, starts a real Lain server, and compares the answers with that graph. It exits non-zero when a check fails. A full run also records timings against this repository.
| Need | Tool or feature |
|---|---|
| See callers before changing a symbol | get_blast_radius, assess_change |
| Trace how two functions connect | get_call_chain |
| Find architectural entry points | find_anchors, list_entry_points |
| Search by name or meaning | find_symbol, search_code |
| Follow a symbol across repositories | get_cross_repo_blast_radius, search_org |
| Keep agents from editing the same code blindly | intents, presence, and advisory file claims |
Static analysis can't prove every dynamic call through a message bus, dependency injection container, or reflective router. explain_dispatch combines static callers with convention matches, runtime traces, and Git co-change evidence; an empty result becomes insufficient_evidence, not a claim that the edit is safe.
| Start here | Covers |
|---|---|
| Quickstart | Installation, first query, and first aid |
| User manual | CLI reference, tuning, operation, and troubleshooting |
| Tool guide | MCP tools, arguments, outputs, and limits |
| Skill bundle | Agent-loadable skills and role recipes |
| Federation | Multi-repository configuration and queries |
| Multiplayer | Agent presence, intents, claims, and hooks |
| Architecture | Graph construction and design choices |
| Documentation index | Every maintained document |
MIT — Copyright (c) 2026 spuentesp