NL

ngmeyer/librarian-mcp

数据科学与机器学习

本页由 AI 翻译,技术细节请以原文为准。 查看原文

35 stars 3 forks 质量 72 趋势 20MIT

Karpathy LLM Wiki 模式,已生产化。MCP 服务器为 Claude 提供你的 Obsidian 保险库图书管理员——图形遍历、自动维基链接、三元组搜索。

概览

给克劳德一个图书管理员,帮你拿下优惠金库。 Librarian是模式,作为MCP服务器生产——双向图遍历、自动维基链接、三字组搜索、社区检测和D3图视图,所有这些都来自Claude内部。可对任何Obsidian保险库或普通Markdown文件文件夹有效。 你的保险库数据从未离开过你的机器。Librarian在磁盘上读写文件,并通过stdio与Claude通信。没有网络调用,没有遥测,没有云存储。 --setup会把MCP服务器配置写入Claude Desktop和Claude代码(带备份),并安装/librarian技能,这样你就能拿到12个斜杠命令。 从GitHub发布macOS(arm64/x86_64)、Linux(arm64/x86_64)和Windows版本下载。将二进制文件放在你的PATH上。 Librarian 是——它直接运行你的 Markdown 文件。Obsidian 不需要运行(而且它们可以同时运行而不会冲突)。Claude 通过 Stdio 上的 Model Context 协议连接。

概述(AI 翻译)

给克劳德一个图书管理员,帮你拿下优惠金库。

Librarian是Karpathy LLM Wiki模式,作为MCP服务器生产——双向图遍历、自动维基链接、三元组搜索、社区检测和D3图视图,所有这些都来自Claude内部。可对任何Obsidian保险库或普通的markdown文件文件夹有效。

完全本地运行。 你的保险库数据从不离开你的机器。Librarian在磁盘上读写文件,并通过stdio与Claude通信。没有网络调用,没有遥测,没有云存储。

快速启动

--setup 将 MCP 服务器配置写入 Claude Desktop 和 Claude 代码(并备份),并安装 /librarian 技能,这样开箱即用 12 个 slash 命令。

安装

自制软件(macOS)

预建二进制

从GitHub发布macOS(arm64/x86_64)、Linux(arm64/x86_64)和Windows版本下载。将二进制文件放在你的PATH上。

从源代码构建(需要Rust)

工作原理

Librarian 是一个独立二进制——它直接运行你的 markdown 文件。Obsidian 不需要运行(而且它们可以同时运行而不会冲突)。Claude 通过 Stdio 上的 Model Context 协议连接。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Librarian

Give Claude a librarian for your markdown vault.

Librarian is the Karpathy LLM Wiki pattern, productionized as an MCP server — bidirectional graph traversal, auto-wikilinks, trigram search, community detection, and a D3 graph view, all from inside Claude. Works against any Obsidian vault or plain folder of markdown files.

Runs entirely locally. Your vault data never leaves your machine. Librarian reads and writes files on disk and communicates with Claude over stdio. No network calls, no telemetry, no cloud storage.

Quick Start

# 1. Install
brew install ngmeyer/tap/librarian-mcp

# 2. Point at your vault and auto-configure Claude
librarian-mcp --setup ~/my-vault

# 3. Restart Claude, then try:
#    /librarian analyze     — see your vault's knowledge graph
#    /librarian search      — find anything across all notes
#    /librarian status      — vault health overview

--setup writes the MCP server config into Claude Desktop and Claude Code (with backups), and installs the /librarian skill so you get 12 slash commands out of the box.

Install

Homebrew (macOS)

brew install ngmeyer/tap/librarian-mcp

Pre-built binaries

Download from GitHub Releases for macOS (arm64/x86_64), Linux (arm64/x86_64), and Windows. Place the binary on your PATH.

Build from source (requires Rust)

cargo install --git https://github.com/ngmeyer/librarian-mcp

How It Works

Librarian is a standalone binary — it works directly on your markdown files. Obsidian does not need to be running (and they can run simultaneously without conflict). Claude connects via the Model Context Protocol over stdio.

How is this different from…

Read files directly Obsidian Copilot mcp-obsidian Librarian
Trigram-indexed search No Plugin Plugin Yes
Auto-wikilinks on write No No No Yes
Knowledge graph traversal No No Partial Yes (BFS, shortest path)
Community detection No No No Yes (Louvain)
Interactive graph viz No No No Yes (D3.js)
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "librarian": { "command": "librarian-mcp", "args": ["/path/to/your/vault"] } } }