mcp-server-librarian

mcp-server-librarian

3.3

Librarian MCP Server is a read-only service designed to efficiently deliver document content to LLMs through the MCP framework.

Librarian is a Model Context Protocol (MCP) server that provides an API for listing, searching, and retrieving markdown files stored in a structured manner. It serves as a knowledge base for Large Language Models (LLMs), providing them with the information they need on demand. Librarian does not provide any writing operations - it is a read-only service designed to efficiently deliver document content to LLMs through the MCP framework.

Features

  • {'name': 'Structured Document Organization', 'description': 'Documents are organized by section (e.g., daisyui/components/button.md).'}
  • {'name': 'Tag-Based Filtering', 'description': 'Filter documents by tags defined in frontmatter.'}
  • {'name': 'Hierarchical Tag Inheritance', 'description': 'Tags are inherited from parent directories.'}
  • {'name': 'Flexible Search Capabilities', 'description': 'Includes simple string searches and regular expression searches with customizable flags.'}
  • {'name': 'Efficient Document Retrieval', 'description': 'Quickly access specific documents by path.'}

Usage with Different Platforms

node

bash
# Start with default configuration
node dist/bin.js

# Start with custom docs directory
node dist/bin.js --docs-root ./my-documentation

# Start with environment variable
LIBRARIAN_DOCS_ROOT=./my-documentation node dist/bin.js