Lien
OfficialProvides semantic search and code understanding for Astro projects, including framework-aware indexing and complexity analysis.
Provides semantic search and code understanding for C++ codebases.
Provides semantic search and code understanding for Django projects, including framework-aware indexing.
Provides semantic search and code understanding for JavaScript codebases.
Provides semantic search and code understanding for Kotlin codebases.
Provides semantic search and code understanding for Laravel projects, including framework-aware indexing.
Provides semantic search and code understanding for Markdown documentation.
Provides semantic search and code understanding for .NET projects, including framework-aware indexing.
Provides semantic search and code understanding for Node.js projects, including framework-aware indexing.
Provides semantic search and code understanding for PHP codebases and frameworks like Laravel.
Provides semantic search and code understanding for Python codebases and frameworks like Django.
Provides semantic search and code understanding for Ruby codebases and frameworks like Rails.
Provides semantic search and code understanding for Rust codebases.
Provides semantic search and code understanding for Scala codebases.
Provides semantic search and code understanding for Swift codebases.
Provides semantic search and code understanding for TypeScript codebases, including framework-aware indexing.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Lienhow does the authentication flow work?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Lien
/ljɛ̃/, French for "link"
A code-intelligence layer for AI agents: structural analysis + fast lexical search. 100% local, 100% private.
Lien connects AI coding assistants like Cursor and Claude Code to your codebase through the Model Context Protocol (MCP). Its core value is structural: reverse dependencies and blast radius, complexity hotspots, and test associations, the questions an agent needs to answer before it edits your code. Alongside that, it offers fast lexical code search (FTS5/BM25 over code, docstrings, and identifier-split symbol names). Everything runs locally, with no embedding model to download: it installs in seconds and indexes offline.
Full Documentation | Getting Started | How It Works
Features
Impact Analysis - Find all dependents and blast radius before refactoring, with risk assessment
Complexity Analysis - Human-friendly metrics: test paths, mental load, time to understand
Test Associations - Know which tests cover a file before you touch it
Lexical Search - Fast full-text (FTS5/BM25) keyword search over code, docstrings, and identifier-split symbol names
100% Local & Private - All analysis happens on your machine
No Model Download - No embeddings, no ~100MB model: tiny install, instant offline indexing
MCP Integration - Works with Cursor, Claude Code, and other MCP-compatible tools
Fast - Sub-millisecond file context; minutes to index large codebases
Free Forever - No API costs, no subscriptions, no usage limits (applies to the local MCP/search tooling; Lien Review's agent pass uses your own LLM key and has its own token cost)
Ecosystem-Aware & Monorepo - Auto-detects 12 ecosystem presets; supports 15+ languages
Related MCP server: contextforge-mcp
Quick Start
Claude Code (recommended): one-time plugin install
/plugin marketplace add getlien/lien
/plugin install lienThat's it. Lien's MCP tools and hooks are now available in every Claude Code session, in every repo, including a hook that enhances Claude Code's built-in Explore agent with Lien-tool guidance. First use in a new git repo triggers a one-time index automatically, with no lien init per project required.
Other editors (Cursor, Windsurf, OpenCode, Kilo Code, Antigravity)
# 1. Install
npm install -g @liendev/lien
# 2. Wire it up for your editor
lien init
# 3. Restart your editor and start asking questionslien init writes the right MCP config for your editor and (for Claude Code's legacy per-project flow, via lien init --legacy) copies an Explore agent into .claude/agents/. Lien auto-detects your project and indexes on first use.
MCP Tools
Lien exposes 6 tools via Model Context Protocol:
Tool | Description |
| Full-text (BM25) keyword code search |
| Find similar code patterns |
| Get file context with test associations |
| List symbols by pattern |
| Impact analysis (what depends on this?) |
| Tech debt analysis with human-friendly metrics |
Complexity Metrics
Lien tracks code complexity with human-friendly outputs:
Test paths - Cyclomatic complexity as "needs ~X tests for full coverage"
Mental load - Cognitive complexity with nesting penalty
Time to understand - Halstead effort as readable duration (~2h 30m)
Estimated bugs - Halstead prediction (Effort^(2/3) / 3000)
Lien Review
Lien Review is a self-hostable GitHub Action that reviews pull requests: complexity analysis, agent-driven bug review, and a PR summary, posted back as inline comments and workflow annotations. It runs without a server, a database, or a recurring bill.
# .github/workflows/lien-review.yml
name: Lien Review
on:
pull_request:
permissions:
contents: read
pull-requests: write
jobs:
review:
runs-on: ubuntu-latest
steps:
- uses: getlien/lien-review@v1
with:
openrouter-api-key: ${{ secrets.OPENROUTER_API_KEY }}That single uses: line is the whole integration: Lien self-clones the PR by SHA using the workflow's own token, so no actions/checkout step is needed.
Feature | Description |
Complexity analysis | Flags new/worsened cyclomatic, cognitive, and Halstead complexity violations |
Agent bug review | LLM-driven review for correctness bugs (OpenRouter or Anthropic) |
PR summary | A concise summary of the change, posted as a step summary |
Advisory by default |
|
Lien Review guide · Action reference
Git Worktrees
A linked git worktree (git worktree add) automatically shares the main
checkout's index instead of building a full independent copy: a read-only
base plus a small per-worktree overlay for whatever's actually changed. No
setup required; set LIEN_WORKTREE_STANDALONE=1 to opt out and get a fully
independent index for that worktree.
Documentation
Installation - npm, npx, or local setup
Getting Started - Step-by-step configuration for Cursor or Claude Code
Configuration - Customize indexing, thresholds, performance
CLI Commands - Full command reference
MCP Tools - Complete API reference for all 6 tools
Lien Review - GitHub Action PR review setup
How It Works - Architecture overview
Supported Languages
TypeScript • JavaScript • Vue • Python • PHP • Liquid • Go • Rust • Java • C/C++ • Ruby • Swift • Kotlin • C# • Scala • Markdown • YAML
Ecosystem Presets: 12 ecosystem presets including Node.js, Python, PHP, Laravel, Ruby, Rails, Rust, JVM, Swift, .NET, Django, and Astro (auto-detected)
Contributing
Contributions welcome! See CONTRIBUTING.md for guidelines.
Support
Issues - Report bugs or request features
Discussions - Ask questions and share ideas
License
AGPL-3.0 © Alf Henderson
Lien is free forever for local use. The AGPL-3.0 license requires that anyone who distributes a modified version release its source under the same terms. For licensing questions, contact alf@lien.dev.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityAmaintenanceMCP Server for persistent code indexing. Gives AI assistants (Claude, Gemini, Copilot, Cursor) instant access to your codebase. 50x less context than grep.Last updated227239MIT
- AlicenseBqualityBmaintenancePersistent memory MCP server for Claude Code, Cursor, and GitHub Copilot. Semantic search, Git sync, project-based, Persistent memory MCP server for Claude Code, Cursor, and GitHub Copilot. Semantic search, Git sync, project-based organization, and team collaboration via Model Context Protocol.Last updated672662MIT
- Alicense-qualityAmaintenanceA unified context layer that connects your local data — repositories, documents, remote machines, and notes — to LLM interfaces through the Model Context Protocol (MCP).Last updated3MIT
- AlicenseAqualityCmaintenanceA semantic code context server that connects your local repository to AI assistants via the Model Context Protocol, enabling dynamic codebase exploration without copy-pasting.Last updated5743MIT
Related MCP Connectors
User-owned memory for AI agents, Copilot, Claude, IDEs, CLIs, and chat apps over remote MCP.
Connect your team's living knowledge base — docs, data, issues, CRM — to Claude and ChatGPT.
Local-first RAG engine with MCP server for AI agent integration.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/getlien/lien'
If you have feedback or need assistance with the MCP directory API, please join our Discord server