Skip to main content
Glama

Create private, local RAG libraries from any documentation. Libraries are single SQLite files you can share with your team—no cloud, no API keys.

Why libragen?

  • Stop hallucinations — Give AI agents authoritative docs to cite instead of guessing

  • Always current — Rebuild when docs change; your AI gets the latest APIs

  • Private & local — Everything runs on your machine, nothing leaves your network

  • Shareable — Single .libragen files work anywhere

Related MCP server: Personal Research Assistant MCP

Packages

Package

Description

@libragen/cli

Build and query libraries from the command line

@libragen/mcp

Connect AI assistants to your libraries via MCP

@libragen/core

Programmatic API for embedding, search, and library management

Quick Start

1. Build a library

# From local docs
npx @libragen/cli build ./your-private-docs --name company-docs

# From a git repository
npx @libragen/cli build https://github.com/anthropics/anthropic-cookbook --name anthropic-cookbook

2. Connect your AI

npx -y install-mcp @libragen/mcp

Restart your AI tool (Claude Desktop, VS Code, Cursor, etc.). Libraries in your global directory are now searchable.

3. Ask questions

"How do I implement tool use with Claude's API?"

"What's our internal policy on deploying to production?"

"Show me examples of streaming responses from the Anthropic cookbook"

Your AI retrieves relevant documentation and responds with accurate, cited answers—not hallucinated guesses from 2-year-old training data.

What else can you do?

  • Chat with your Obsidian vaultTutorial →

  • Make your company's internal docs searchable — Runbooks, wikis, policies—all queryable by AI

  • Create a shared library for your team — One .libragen file, everyone's on the same page

  • Auto-build libraries in CI — Use the GitHub Action to generate .libragen files on every push


Full documentation →

License

MIT — see LICENSE for details.

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to search and query PDF documents through a local RAG system with vector embeddings. Provides semantic document search capabilities while keeping all data stored locally without external dependencies.
    -
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables semantic search and conversational querying across a personal research library of PDFs, DOCX, and other documents using a vector database. It provides tools for document summarization, finding related papers, and high-accuracy retrieval for AI clients like Claude Desktop.
    -
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI coding assistants to search and retrieve information from a locally ingested knowledge base using hybrid search, grounded in user-curated documentation.
    17
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to perform semantic, hybrid, and filtered search on indexed local documentation with RAG capabilities.
    2
    MIT