
SeekLink
io.github.simonsysun由 GitHub 账号 simonsysun 发布v0.7.0更新于 Oct 24, 2026
Local read-only semantic search for Markdown vaults through MCP.
概览
本地只读 MCP 服务器,让助手对 Markdown 笔记库做语义检索并读取带行号定位的结果。
- 可以做什么
- 以关键词与向量混合检索搜索 Markdown 笔记库,支持标签、文件夹和结果数量过滤,Apple Silicon 上可选重排。按路径和行号读取精确的文件片段,可指定行数或 grep 式上下文。查看索引数量、模型名称、配置兼容性和新鲜度。对 Python、SQLite、本地数据库、索引兼容性和守护进程状态做诊断。
- 适用场景
- 适合助手需要在个人 Markdown 或 Obsidian 风格笔记库(包括中英双语笔记)中查找并引用段落,又不希望把笔记发送到托管服务的场景。更适合概念性或跨语言检索,而非精确字面匹配。
- 运行要求
- 通过 uvx 或 pip 以 stdio 本地进程运行,需安装可选的 MCP 附加包。需要 Python 3.11-3.14,且 Python 的 sqlite3 链接到 SQLite 3.45 或更新版本并启用 FTS5。支持 macOS 和 Linux,Windows 非一等支持。须先用命令行建立索引,每个笔记库运行一个服务器并传入绝对路径。无需 API 密钥或账号。
安装
在 SourceWeft 中
- 打开 控制台中的 SeekLink,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
SeekLink
[PyPI] [Python 3.11+] [Tests] [License: MIT]
Status: paused. SeekLink is no longer actively maintained. For an actively-developed local Markdown search engine in the same space — local hybrid keyword + vector search, line-anchored results, CLI + MCP, multilingual — we recommend qmd.
SeekLink is a local semantic search CLI and optional read-only MCP stdio server
for Markdown vaults. It indexes a folder of .md files, searches with hybrid
keyword + vector retrieval, and returns line-anchored results that humans and
agents can read with simple shell commands.
It is built for personal knowledge bases, Obsidian-compatible vaults, bilingual
English/Chinese notes, and local agent workflows. MCP clients such as Claude
Code, Cursor, and VS Code can call the same read-only search/get/status/doctor
surface through seeklink[mcp]. It is also a useful search layer for Markdown
wiki patterns such as Andrej Karpathy's
llm-wiki:
an agent can search existing pages, read precise line windows, then update the
wiki without sending the vault to a hosted service.
Everything runs locally. No API key. No cloud search service. No Obsidian plugin required.
Install
For Apple Silicon reranking support, install the optional MLX extra:
For Model Context Protocol (MCP) clients such as Claude Code, Cursor, or VS Code, install the optional MCP extra:
SeekLink requires Python's sqlite3 module to be linked against SQLite
3.45 or newer with FTS5 enabled. seeklink status --vault PATH checks this and
prints a clear error if the runtime SQLite is too old.
Quick Start
Daily use is simpler if you set a default vault:
seeklink search and single-file seeklink index path/to/file.md use a
resident daemon when --vault is not passed. The daemon keeps the embedder and
optional reranker warm in memory; on macOS this appears as a local Python
process. It is local-only, uses a Unix socket, and does not open a network port
or call a cloud service. By default it exits after 15 minutes of inactivity.
Full-vault seeklink index runs in-process so progress stays on stderr and the
final Done: summary stays on stdout. seeklink status and seeklink get
always stay cold-start: status only reads SQLite metadata, and get reads the
file directly from disk. Use --no-daemon, SEEKLINK_NO_DAEMON=1, or an
explicit --vault PATH when a script needs a one-shot cold-start path.
MCP users follow the same first step: build the index with
seeklink index --vault PATH before registering the MCP server.
Output
Text search output is stable:
PATHis relative to the vault root.LINEis 1-indexed and points to the best matching chunk in the current file.- Exit code is
0for success, including no results;1for runtime vault/config/file errors detected by SeekLink; and2for command-line usage errors from argument parsing. - Scores are useful for sorting within one query. Do not compare scores across reranker-enabled and reranker-disabled runs.
Use JSON when an agent needs structured output:
Common Commands
Search
Options:
Get
Read a precise file window without using the database or daemon:
-l/--lines prints lines starting at LINE. -C/--context prints lines before
and after LINE, grep-style. Path escapes such as ../.. are rejected.
Status
Status reports index counts, model names, index-configuration compatibility, SQLite WAL status, and freshness warnings. It does not load the embedding or reranking models.
Doctor
Doctor checks Python, SQLite, the local database, index compatibility, daemon state, and optional MLX availability. It does not download or load models, but may initialize the local SeekLink database/schema if missing.
MCP
The optional Model Context Protocol (MCP) adapter lets agent clients discover and call SeekLink's read-only tools directly. The CLI keeps working independently; MCP is another surface for the same retrieval path, not a replacement.
Install it with seeklink[mcp]. Build the index with the CLI first:
seeklink index --vault PATH. The MCP adapter is read-only and exposes four
tools: search, get, status, and doctor. It does not expose index,
write notes, use HTTP/OAuth, or route through the Unix-socket daemon. Run one
MCP server per vault. search keeps its text summary compact with paths and
line anchors; result previews stay in structured content for agents that need
them. status and doctor may initialize or migrate the local SeekLink schema
when an existing .seeklink/seeklink.db needs it, but they do not index or
modify Markdown notes. If your MCP client does not inherit your shell PATH,
use the absolute path from which seeklink in the examples below.
Claude Code:
Cursor .cursor/mcp.json:
VS Code .vscode/mcp.json:
Index
Full-vault indexing skips unchanged files by content hash unless the stored index was built with a different embedder, vector dimension, or chunker configuration, in which case SeekLink rebuilds the derived index contents. Single-file indexing updates one Markdown file only when the existing index configuration is compatible.
Daemon
You normally do not need to start the daemon manually. search and single-file
index auto-spawn and auto-restart it when appropriate, then it exits after
SEEKLINK_DAEMON_IDLE_TIMEOUT seconds of inactivity. The default is 900 seconds
(15 minutes); set it to 0, off, false, or no to keep the daemon warm
until stopped.
Full-vault index still runs in-process for progress output. Passing --vault
to search or single-file index forces a one-shot cold-start path because the
daemon is bound to one vault at startup. --no-daemon and
SEEKLINK_NO_DAEMON=1 also force the same cold-start path. Use
seeklink daemon status to inspect the warm process and seeklink daemon stop
to release its memory immediately.
How Search Works
SeekLink fuses four channels with Reciprocal Rank Fusion:
The default embedder is jinaai/jina-embeddings-v2-base-zh through
fastembed. CJK full-text search uses a jieba FTS5 tokenizer when the local
Python/SQLite build can safely register it; otherwise SeekLink falls back to
SQLite's built-in trigram tokenizer instead of crashing.
The default vector dimension is 768. Advanced custom-embedder experiments can
set SEEKLINK_EMBEDDING_DIM, but it must match the embedder output and requires
a full seeklink index rebuild.
On Apple Silicon, SeekLink can rerank candidates with
mlx-community/Qwen3-Reranker-0.6B-mxfp8 when installed with seeklink[mlx].
Reranking is local and optional; if MLX is unavailable, SeekLink falls back to
first-stage hybrid RRF ranking. Use --no-rerank for one query or set
SEEKLINK_RERANKER_MODEL="" to disable it globally.
Frontmatter
Markdown frontmatter is optional. When present, SeekLink uses it for tags and aliases:
tagssupport filtered search:seeklink search "memory" --tags aialiasesare indexed for search and used when resolving wikilinks
Storage
SeekLink writes one SQLite database inside the vault:
The database contains source metadata, chunks, FTS5 tables, sqlite-vec vectors,
and a wikilink graph. Delete .seeklink/ and run seeklink index to rebuild.
Supported
Not For
- Hosted or synced multi-user search.
- Non-Markdown sources without conversion.
- A GUI or Obsidian plugin.
- Sub-millisecond search over millions of notes.
- Cloud embedding or reranking APIs.
Agent Notes
Agents can use SeekLink through ordinary subprocess calls:
MCP clients can use the optional read-only adapter:
To make an agent choose SeekLink for a Markdown vault, add this to the
project's AGENTS.md, CLAUDE.md, or editor rules:
For hot loops, the daemon exposes a length-prefixed JSON protocol over the Unix
socket at ~/.rhizome/seeklink.sock. Most agents should prefer the CLI JSON
surface unless they specifically need socket-level latency.
See llms.txt for the compact agent contract.
Evaluation
Search-quality tests live in tests/blind/; the method is documented in
docs/blind-test.md. Release claims should be backed by
the bundled fixture queries or by clearly labeled private-vault measurements.
Contributing
Keep runtime dependencies small, keep public docs user-facing, and add a
CHANGELOG.md entry for user-visible changes.
License
MIT
来源:README.md,提交 336de57
工具
0版本历史
1- v0.7.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分

