Muninn
MCP server for querying a page-citable research knowledge base built from PDFs, with exact filename and page citations.
README
Muninn — Page-Citable Research Knowledge Base + MCP Server
Named after Odin's raven of memory. From research PDFs → chunked at page level →
embedded (BAAI/bge-small-en-v1.5) → Qdrant vector DB → served over MCP so any
future Claude session (desktop, web, phone) can query the corpus with exact
filename, p. N citations — no re-reading, no chat-context cost.
Note:
pdfs/,notes/, andqdrant_db/are not included in this repo.pdfs/holds the source papers,notes/holds Claude's generated reading notes, andqdrant_db/is the resulting vector DB — all excluded for privacy, since they contain personal research material and its derived content rather than shareable code.
Layout
pdfs/ the source PDFs
notes/ Claude's reading notes (notes*.jsonl) — re-ingestable
ingest.py PDFs + notes → qdrant_db/ (run once, and after adding PDFs)
muninn_mcp.py MCP server (stdio locally, Streamable HTTP when hosted)
push_to_cloud.py local qdrant_db/ → Qdrant Cloud (one command)
Dockerfile Hugging Face Space deployment
qdrant_db/ the vector DB (created by ingest.py)
Data model (collection muninn): type=raw — verbatim chunks, ~1000 chars,
never crossing page boundaries → every chunk has exactly one (source_file, page); type=page — full page text (backs get_page, and later
page-rendering/highlighting: exact search_for → sentence pieces → fuzzy
word alignment → semantic nearest-chunk fallback); type=claude_note —
interpretation layer. Raw = ground truth, notes = orientation.
Step 1 — Ingest (your machine, ~2-3 min)
cd <this folder>
uv run ingest.py # downloads bge-small (~130MB) once, builds qdrant_db/
Step 2 — Use locally right away (optional)
Claude Desktop → claude_desktop_config.json:
{"mcpServers": {"muninn": {"command": "uv",
"args": ["run", "--directory", "/ABSOLUTE/PATH/TO/THIS/FOLDER", "muninn_mcp.py"]}}}
Claude Code: claude mcp add muninn -- uv run --directory /ABSOLUTE/PATH muninn_mcp.py
Note: Qdrant local mode is single-process — stop the MCP server before
re-running ingest.py.
Step 3 — Host it (laptop-off access, $0/mo)
3a. Qdrant Cloud (free tier, 4GB): create a cluster at cloud.qdrant.io, copy URL + API key, then:
QDRANT_URL=https://xxxx.cloud.qdrant.io QDRANT_API_KEY=... uv run push_to_cloud.py
3b. HF Space: create a Space (SDK = Docker), push Dockerfile +
muninn_mcp.py to it. In Space Settings → Variables and secrets set:
| name | kind | value |
|---|---|---|
MUNINN_PATH_TOKEN |
secret | python -c "import secrets; print(secrets.token_urlsafe(24))" |
QDRANT_URL |
variable | your cluster URL |
QDRANT_API_KEY |
secret | your cluster key |
3c. Connect Claude: Settings → Connectors → Add custom connector →
https://<user>-<space>.hf.space/mcp-<TOKEN>
MCP tools
search(query, top_k, doc_id, note_type) → ranked chunks with citation;
list_documents() → corpus inventory; get_page(doc_id, page) → full page
text. Retrieval tip: if a query misses, try HyDE (in the corpus, doc
322d71209a2f): write a hypothetical paragraph answering the question and
search with that.
Adding papers later
Drop PDFs into pdfs/, re-run uv run ingest.py (idempotent per file), then
push_to_cloud.py if hosted. Ask Claude to read the new paper and append a
note to notes/ for the interpretation layer.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。