
A Model Context Protocol server for global law with read-only tools to find and read provisions by date, trace the law behind each word, search text and changes, and check cases or briefs against law in force.

A read-only Model Context Protocol server that lists, searches, and retrieves markdown documents from a structured, tag-organized knowledge base for LLMs.
Librarian MCP Server is cataloged as an MCP server attributed to segararai. A read-only Model Context Protocol server that lists, searches, and retrieves markdown documents from a structured, tag-organized knowledge base for LLMs. It is categorized under file systems-docs. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Librarian MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
No. Librarian is a read-only service and provides no writing operations.
It supports simple string searches or regex searches with customizable case sensitivity.
README.md · 605c8a2ccb99 · 采集于 2026-11-13 11:53:02 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
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.
daisyui/components/button.md)The Librarian MCP server is organized into modular components:
This modular design allows for easy extension and maintenance, with clear separation of concerns.
# Clone the repository
git clone https://github.com/yourusername/mcp-server-librarian.git
cd mcp-server-librarian
# Install dependencies
pnpm install
# Build the project
pnpm build
The document folder path can be configured using the following methods (in order of priority):
node dist/bin.js --docs-root /path/to/your/docs
LIBRARIAN_DOCS_ROOT=/path/to/your/docs node dist/bin.js
Documents are organized by section, following a hierarchical structure:
<docs_root>/
├── daisyui/
│ ├── index.md # DaisyUI section info with tags
│ └── components/
│ ├── index.md # Components section info with tags
│ ├── button.md # Document with specific tags
│ └── card.md # Another document with specific tags
└── tailwind4/
├── index.md # Tailwind section info with tags
└── getting-started.md # Document with specific tags
Each markdown document can include frontmatter with a tags field:
---
tags: ["frontend", "ui", "button"]
---
# Button Component
This document describes the button component...
Tags are inherited through the folder hierarchy:
index.md files in its parent directoriesFor example, if we have:
/daisyui/index.md with tags: ["ui"]/daisyui/components/index.md with tags: ["components"]/daisyui/components/button.md with tags: ["interactive", "form"]Then /daisyui/components/button.md will effectively have all tags: ["documentation", "ui", "components", "interactive", "form"]
You can describe a folder itself by creating an index.md file within that folder. This file can contain both frontmatter (with tags) and content describing the purpose of that section.
The Librarian MCP server provides the following tools:
Retrieves multiple documents by their paths.
Parameters:
filepaths: Array of file paths to retrieveResponse:
**/path/to/document1.md**
- tags: tag1, tag2, tag3
======
Document 1 content
======
**/path/to/document2.md**
- tags: tag1, tag4, tag5
======
Document 2 content
======
Retrieves a specific document by path.
Parameters:
filepath: The path to the documentResponse:
**/path/to/document.md**
- tags: tag1, tag2, tag3
======
Document content
======
Lists all documents with optional filtering by directory and tags.
Parameters:
directory (optional): The directory path to list documents from (default: "/")tags (optional): Array of tags to filter by (default: [])includeContents (optional): Whether to include document contents in results (default: false)depth (optional): Maximum directory depth to traverse (-1 for infinite, default: -1)Response: (When includeContents is false)
- /path/to/document1.md
- tags: tag1, tag2, tag3
- /path/to/document2.md
- tags: tag1, tag4, tag5
...
Response: (When includeContents is true)
**/path/to/document1.md**
- tags: tag1, tag2, tag3
======
Document 1 content
======
**/path/to/document2.md**
- tags: tag1, tag4, tag5
======
Document 2 content
======
Searches document content using string or regex patterns.
Parameters:
query: The search query (string or regex pattern)mode (optional): Search mode ("string" or "regex", default: "string")caseSensitive (optional): Whether the search should be case-sensitive (default: false)directory (optional): The directory path to search in (default: "/")tags (optional): Array of tags to filter by (default: [])includeContents (optional): Whether to include document contents in results (default: false)depth (optional): Maximum directory depth to traverse (-1 for infinite, default: -1)Response: (When includeContents is false)
- /path/to/document1.md
- tags: tag1, tag2, tag3
- /path/to/document2.md
- tags: tag1, tag4, tag5
...
Response: (When includeContents is true)
**/path/to/document1.md**
- tags: tag1, tag2, tag3
======
Document 1 content
======
**/path/to/document2.md**
- tags: tag1, tag4, tag5
======
Document 2 content
======
Lists all tags with counts and optional filepaths.
Parameters:
directory (optional): The directory path to list tags from (default: "/")includeFilepaths (optional): Whether to include filepaths in results (default: false)depth (optional): Maximum directory depth to traverse (-1 for infinite, default: -1)Response: (When includeFilepaths is false)
- tag1 (5)
- tag2 (3)
- tag3 (2)
...
Response: (When includeFilepaths is true)
- tag1 (5)
- /path/to/document1.md
- /path/to/document2.md
- ...
- tag2 (3)
- /path/to/document3.md
- ...
# 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
// List all documents
const allDocs = await mcp.useTool("librarian", "listDocuments", {});
// List documents in a specific directory
const uiDocs = await mcp.useTool("librarian", "listDocuments", {
directory: "/daisyui/components",
});
// List documents with specific tags
const buttonDocs = await mcp.useTool("librarian", "listDocuments", {
tags: ["button", "interactive"],
});
// List documents with depth limit
const topLevelDocs = await mcp.useTool("librarian", "listDocuments", {
directory: "/daisyui",
depth: 1, // Only include direct children, not nested subdirectories
});
// Simple string search
const results = await mcp.useTool("librarian", "searchDocuments", {
query: "button styling",
});
// Regex search
const regexResults = await mcp.useTool("librarian", "searchDocuments", {
query: "\\bbutton\\b.*\\bstyle\\b",
mode: "regex",
caseSensitive: true,
includeContents: true,
});
// Search with tag filtering
const filteredResults = await mcp.useTool("librarian", "searchDocuments", {
query: "installation",
tags: ["tutorial"],
directory: "/tailwind4",
});
// Search with depth limit
const topLevelResults = await mcp.useTool("librarian", "searchDocuments", {
query: "component",
directory: "/daisyui",
depth: 1, // Only search in direct children, not nested subdirectories
});
// Get a specific document
const document = await mcp.useTool("librarian", "getDocument", {
filepath: "/daisyui/components/button.md",
});
// Get multiple specific documents
const documents = await mcp.useTool("librarian", "getDocuments", {
filepaths: ["/daisyui/components/button.md", "/daisyui/components/card.md"],
});
// List all tags
const allTags = await mcp.useTool("librarian", "listTags", {});
// List tags in a specific directory
const tailwindTags = await mcp.useTool("librarian", "listTags", {
directory: "/tailwind",
});
// List tags with filepaths
const tagsWithFiles = await mcp.useTool("librarian", "listTags", {
includeFilepaths: true,
});
// List tags with depth limit
const topLevelTags = await mcp.useTool("librarian", "listTags", {
directory: "/daisyui",
depth: 1, // Only include tags from direct children, not nested subdirectories
});
Librarian is designed to work seamlessly with LLMs through the Model Context Protocol. Here's how an LLM might use Librarian:
Librarian uses standard MCP error responses with appropriate error codes and messages:
INVALID_ARGUMENT: When provided parameters are invalidNOT_FOUND: When a requested document or directory doesn't existINTERNAL: For unexpected server errorsEach error response includes:
If you're getting NOT_FOUND errors:
--docs-root points to the correct directoryIf searches aren't returning expected results:
If tag filtering isn't working as expected:
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.
90% vibe coded. This code quality is not mine. I can write better code much more slowly :)
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Librarian MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mcp-server-librarian)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

A Model Context Protocol server for global law with read-only tools to find and read provisions by date, trace the law behind each word, search text and changes, and check cases or briefs against law in force.

Hosted MCP server for tabletop RPG worlds that organizes messy notes and documents into a private store and lets MCP apps search lore, read documents, find characters, and optionally generate character or world pictures.

An MCP server that gives AI assistants scoped file system operations inside a project directory, with read-only reference projects plus git and GitHub tools.