Lybrary logo

Lybrary

Indexes local repositories for symbol-aware code search and memory through a stdio MCP server.

Install Lybrary

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "lybrary": {
      "command": "uvx",
      "args": [
        "lybrary"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx lybrary

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The Lybrary MCP server indexes local repositories by code structure and exposes searchable functions, classes, files, paths, and source excerpts to coding agents. It maintains a per-repository SQLite index, watches for file changes, and uses exact, lexical, and semantic search. Use it when an agent needs to locate relevant code before reading large files or tracing a feature across a repository. It runs locally without an API key or hosted database.

Use cases

  • Search a repository for the implementation of a feature
  • Trace calls across functions and source files
  • Locate relevant code before reading large files
  • Keep a local code index updated while editing
  • Compare agent runs with and without indexed memory

Key features

  • Symbol-aware repository indexing
  • SQLite FTS5 and semantic search
  • Incremental file-watching updates
  • Local per-repository indexes
  • MCP tools for query, status, and updates
  • Support for nine programming languages

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

12/12 checks healthy over the last 45d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 8d ago via OSV.dev · lybrary (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit1mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Lybrary works

What Lybrary MCP server does

The Lybrary MCP server gives coding agents a searchable map of a local repository. It identifies functions, classes, files, source paths, and line ranges, allowing an agent to locate likely implementation areas before opening complete files. The index is kept on the local machine, with a separate index and configuration directory for each repository.

The main MCP tools are memory_query, memory_status, and memory_update. Queries return ranked matches with symbols, line ranges, and compact numbered excerpts by default. Status reports the active repository and index health, while update starts incremental, full, or path-scoped re-indexing.

How it works

Run lybrary start from a repository after installing the Python package. The command creates .lybrary/ when needed, builds the initial index, and starts a background file-watching daemon. Changed files are refreshed while the daemon runs. lybrary stop, lybrary status, lybrary query, lybrary index --full, and lybrary logs provide local administration and terminal search options.

memory_query checks exact symbols and an SQLite FTS5 index first. When wording does not match the source closely, semantic search can serve as a fallback using the local embedding model. The MCP process is started with lybrary mcp, using the repository root as context. If an agent starts outside the indexed repository, pass that repository's absolute path as repo_root.

Setup and configuration

Install the package with pip install lybrary, change to the repository to index, and run:

bash
lybrary start
lybrary status

Register the stdio server with the MCP client using command lybrary and argument mcp. Codex can register it with codex mcp add lybrary -- lybrary mcp. Claude Code can register it with claude mcp add --scope user --transport stdio lybrary -- lybrary mcp. Their documented plugins can also help with setup.

Configuration is stored in .lybrary/config.toml. It can control the embedding model and device, chunk sizes, indexed languages, excluded paths, and watcher debounce behavior. Git-style ignore patterns can be added to .lybrary/ignore. Run lybrary index --full after changing settings that affect chunks or embeddings. The first indexing pass may download the local embedding model; subsequent runs use its cache.

Tools and capabilities

The Lybrary MCP server supports parsers for Python, JavaScript, TypeScript, TSX, Go, Rust, Java, C, and C++. Tree-sitter boundaries are used during indexing. Separate repository indexes let agents work with more than one local codebase without using a hosted service.

Useful capabilities include:

  • Searching for exact symbols, textual matches, or semantically related code
  • Returning ranked paths, symbols, line ranges, and excerpts
  • Requesting complete indexed chunks when needed
  • Checking repository and index status
  • Triggering incremental, full, or path-specific updates
  • Keeping the index current through a background file watcher

Limitations and notes

Lybrary is intended for local repositories and requires a running or available repository index. It does not replace inspection of the source files an agent ultimately needs to modify. Search quality and token use depend on the task, indexed content, and the agent's tool choices. A single benchmark question is not enough to establish typical savings.

If the index is missing or an MCP query fails, an agent should fall back to normal code search. When a call trace reaches a named symbol absent from the first result, query that symbol separately.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Lybrary

Lybrary is an MCP server that connects coding agents to a local, indexed repository and provides code search and repository-memory tools. Its main tools are memory_query for symbol-aware search and excerpts, memory_status for index health, and memory_update for incremental, full, or path-scoped re-indexing without an API key or hosted database.

Install it with `pip install lybrary`, run `lybrary start` inside the repository, and register `lybrary mcp` as a stdio MCP server. Use `lybrary status` to check the daemon and index after setup.

Yes, Lybrary documents support for Codex and Claude Code. Register the stdio server with each client's MCP command, or use the repository plugins that provide setup assistance; Claude Code also requires the Python package to be installed.

Edit `.lybrary/config.toml` for embedding, chunking, language, exclusion, and watcher settings, and add Git-style patterns to `.lybrary/ignore`. Run `lybrary index --full` after changing settings that affect stored chunks or embeddings.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewLybrary AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/lybrary?style=directory)](https://allmcps.com/mcp/lybrary)
HTML Embed
<a href="https://allmcps.com/mcp/lybrary"><img src="https://allmcps.com/api/badge/lybrary?style=directory" alt="Lybrary on AllMCPs" /></a>