Librarian MCP Server
A local MCP server that gives AI agents structured access to a personal Obsidian knowledge vault, with semantic search, organization through Maps of Content, and git-backed history.
README
Librarian MCP Server
A local MCP server that gives AI agents structured access to a personal Obsidian knowledge vault. Notes remain portable Markdown, while Librarian enforces organization, provenance, deduplication, and git-backed history.
What it does
- Stores OKF-compatible Markdown notes in a flat Obsidian vault.
- Organizes concepts through Maps of Content (MOCs).
- Combines local semantic search with lexical matching and exact filters.
- Rejects duplicate concepts, invalid notes, and edits to immutable source notes.
- Commits every mutation to the vault's git history.
- Reports broken links, orphaned notes, malformed frontmatter, and WikiLinks.
All search and storage are local. The first semantic search downloads the BAAI/bge-small-en-v1.5 model (about 130 MB); later searches run offline.
Install
Requires Python 3.11+.
pip install .
Or with uv:
uv sync
Run
librarian --vault /path/to/vault
You can also set the vault path with LIBRARIAN_VAULT:
LIBRARIAN_VAULT=/path/to/vault librarian
On first run, Librarian creates the vault, initializes git, and adds a root MOC. Configure your MCP client to launch the server over stdio, for example:
{
"mcpServers": {
"librarian": {
"command": "librarian",
"args": ["--vault", "/path/to/vault"]
}
}
}
Tools
| Tool | Purpose |
|---|---|
get_vault_seed |
Return a bounded overview of MOCs and recent notes |
query_knowledge |
Search notes semantically and lexically |
read_concept |
Read a complete note |
create_concept |
Create a validated note and wire it into an MOC |
enrich_concept |
Append content to a named section |
lint_graph |
Report graph and formatting problems |
See spec.md for the full contracts and design decisions.
Development
uv sync --extra dev
uv run --extra dev pytest
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.