MCP.so
ログイン

Librarian MCP Server

@SegaraRai

基本情報

カテゴリ

その他

ライセンス

MIT license

トランスポート

stdio

作者

SegaraRai

Librarian MCP Server について

Librarian is a Model Context Protocol (MCP) server that provides an API for listing, searching, and retrieving markdown files stored in a structured manner.

Librarian MCP Server の設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "mcp-server-librarian": {
      "command": "node",
      "args": [
        "dist/bin.js",
        "--docs-root",
        "/path/to/your/docs"
      ]
    }
  }
}

Librarian MCP Server のツール

ツール一覧はまだありません

この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is Librarian MCP Server?

Librarian MCP Server is a read-only Model Context Protocol (MCP) server that provides an API for listing, searching, and retrieving markdown files stored in a structured directory hierarchy. It is designed to act as a knowledge base for Large Language Models (LLMs), delivering document content on demand through the MCP framework.

How to use Librarian MCP Server?

Install Node.js v14+, clone the repository, run pnpm install then pnpm build. Configure the document root via the CLI argument --docs-root or the environment variable LIBRARIAN_DOCS_ROOT. Start the server with node dist/bin.js. Integrate with an MCP client to call tools such as getDocument, listDocuments, searchDocuments, and listTags.

Key features of Librarian MCP Server

  • Structured document organization by section (e.g., daisyui/components/button.md)
  • Tag-based filtering using frontmatter tags
  • Hierarchical tag inheritance from parent index.md files
  • Flexible search: case‑insensitive string or regex with configurable flags
  • Efficient retrieval of one or multiple documents by path
  • Tag discovery with usage counts and optional file paths
  • Seamless MCP integration for LLM interaction

Use cases of Librarian MCP Server

  • An LLM retrieving documentation for a specific component or section
  • Searching document content with strings or regex patterns across a knowledge base
  • Listing available topics and tags to understand the knowledge taxonomy
  • Building context for LLM responses by fetching relevant document contents

よくある質問

1

What dependencies are required?

Node.js v14 or higher and npm or pnpm.

2

Does Librarian support writing or modifying documents?

No. Librarian is a read‑only service and does not provide any writing operations.

3

How does tag inheritance work?

A document inherits all tags from `index.md` files in its parent directories. Tags are merged from the root (most general) to the document (most specific).

4

What search modes are available?

Two modes: `"string"` (case‑insensitive by default) and `"regex"` (with customizable case sensitivity and flags).

5

What error codes can the server return?

`INVALID_ARGUMENT` (invalid parameters), `NOT_FOUND` (missing document or directory), and `INTERNAL` (unexpected server error).

コメント

「その他」の他のコンテンツ