Librarian
Persistent memory with semantic search, hit-based ranking, universal import, and a knowledge marketplace
Librarian
A knowledge management MCP server for AI coding assistants. Capture insights, search with semantic understanding, and access a library of developer knowledge.
Installation
Claude Code (Recommended)
Plugin (full experience)
Includes MCP tools, slash commands, and hooks.
/plugin marketplace add telvokdev/librarian
/plugin install librarian@librarian
MCP only
claude mcp add librarian -- npx @telvok/librarian-mcp
Cursor
Add to .cursor/mcp.json:
{
"mcpServers": {
"librarian": {
"command": "npx",
"args": ["@telvok/librarian-mcp"]
}
}
}
Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"librarian": {
"command": "npx",
"args": ["@telvok/librarian-mcp"]
}
}
}
Any MCP Client
Add to your MCP config:
{
"mcpServers": {
"librarian": {
"command": "npx",
"args": ["@telvok/librarian-mcp"]
}
}
}
Or install globally:
npm install -g @telvok/librarian-mcp
Quick Start
// Search before making decisions
brief({ query: "stripe webhook handling" })
// Capture what you learned
record({
insight: "Stripe retries webhooks but doesn't dedupe - always check idempotency key",
context: "payments, webhooks"
})
// Mark helpful entries to boost their ranking
mark_hit({ path: "local/stripe-webhooks-need-idempotency.md" })
// Browse the library
library_search({ query: "react patterns" })
API Reference (Beta)
Local Knowledge
| Tool | Purpose |
|---|---|
brief(query?, limit?) | Semantic search across your library |
record(insight, ...) | Capture knowledge worth keeping |
adopt(path, title?) | Copy imported entry to local library |
mark_hit(path) | Mark an entry as helpful (increases ranking) |
import_memories(format, path) | Import from other AI tools |
rebuild_index(force?) | Rebuild semantic search embeddings |
delete(path?, query?, confirm?) | Delete entries from local library |
Library
Browse and publish books at telvok.com. Free and paid content supported.
| Tool | Purpose |
|---|---|
library_search(query, filters?) | Search Telvok library |
library_download(slug) | Download a free book locally |
library_publish(name, attestation, ...) | Publish entries as a book |
my_books(filter?) | View published and downloaded books |
sync(slug?, force?) | Check for updates to owned books |
rate_book(slug, rating, ...) | Rate a book (1-5 stars) |
seller_analytics() | View download stats for your books |
Bounties
| Tool | Purpose |
|---|---|
bounty_create(title, ...) | Post a knowledge request |
bounty_list(query?, tags?, status?) | Browse available bounties |
bounty_claim(bounty_id) | Claim a bounty to fulfill |
bounty_submit(bounty_id, book_slug) | Submit fulfillment |
my_bounties(role?) | View your bounties |
Account
| Tool | Purpose |
|---|---|
auth(action) | Login, logout, status, complete |
help(topic?) | Get help on any tool |
feedback(message, type?) | Send feedback |
How Search Works
Librarian uses local AI embeddings for semantic search:
You saved: "Stripe webhooks need idempotency checks"
You search: "handling duplicate payment events"
→ It finds it.
all-MiniLM-L6-v2model (384-dim embeddings)- ~30MB download on first run, cached locally
- No API calls — fully offline
Results ranked by semantic similarity, recency (60%), and hit count (40%).
Import Formats
| Format | Sources |
|---|---|
jsonl | Anthropic MCP Memory, mcp-knowledge-graph |
markdown | Obsidian, Basic Memory MCP |
cursor | Cursor Memory Bank |
json | Simple memory servers |
sqlite | mcp-memory-service, SQLite-vec |
Authentication
auth({ action: "login" })— returns code + URL- Visit
telvok.com/device, enter the code auth({ action: "complete" })— saves API key locally
Keys stored in .librarian/.auth, expire after 90 days.
Library Structure
.librarian/
├── local/ # Your entries
├── imported/ # Downloaded books
├── packages/ # Purchased content
├── archived/ # Stale but searchable
├── index.json # Semantic embeddings
├── models/ # Cached embedding model
└── .auth # API key (git-ignored)
Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/my-feature) - Commit changes (
git commit -m 'Add my feature') - Push (
git push origin feature/my-feature) - Open a Pull Request
License
MIT - Telvok
相關伺服器
Scout Monitoring MCP
贊助Put performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
贊助Access financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
Remote MCP Server (Authless)
An example of a remote MCP server deployable on Cloudflare Workers without authentication.
Gemsuite
The ultimate open-source server for advanced Gemini API interaction with MCP, intelligently selects models.
Infisical
Manage secrets and environment variables with Infisical's official MCP server.
Playwright MCP Explorer
An intelligent tool that uses MCP to autonomously explore websites and generate Playwright tests from natural language descriptions.
ComfyUI
An MCP server for ComfyUI integration.
Helm MCP
MCP server to work with Helm charts
mcp-server-tibet
TIBET provenance tracking for AI decisions. Cryptographic audit trails with ERIN/ERAAN/EROMHEEN/ERACHTER intent logging for compliance and transparency.
MapleStory MCP Server
Access NEXON MapleStory open API data for character info, union details, guild data, rankings, and game mechanics.
DeepSeek MCP Server
A server for code generation and completion using the DeepSeek API.
Hippycampus
Turns any Swagger/OpenAPI REST endpoint with a yaml/json definition into an MCP Server with Langchain/Langflow integration automatically.