Smart Connections Mcp

io.github.msdanyg由 GitHub 账号 msdanyg 发布v2.0.1更新于 Oct 24, 2026

Local semantic search over Obsidian vaults via Smart Connections embeddings. Multi-vault, private.

发布方自己的服务:Connections

已验证STDIO仅桌面文件与存储知识与记忆

概览

AI 生成的概览

本地 MCP 服务器,复用 Smart Connections 嵌入,让助手对一个或多个 Obsidian 库进行语义搜索。

可以做什么
  • 按语义在一个或多个库中搜索整篇笔记与单个区块,返回按相似度排序的片段
  • 查找与某篇笔记相似的笔记,并沿相似度链接向外扩展以梳理相关想法
  • 读取笔记内容或提取指定区块
  • 列出已加载的库,并报告数量、模型与加载错误
适用场景
适合在 Obsidian 中配合 Smart Connections 插件记录笔记、希望助手按含义而非精确关键词回忆相关内容(包括跨多个库)且不希望笔记上传到云端的场景。
运行要求
通过 npx 本地运行,需要 Node.js 20+。需要一个已安装 Smart Connections 插件并已生成嵌入的 Obsidian 库。必须通过环境变量 SMART_VAULT_PATH(别名 SMART_VAULT_PATHS,同时设置时优先)以逗号分隔填写一个或多个库的绝对路径。需要 Claude Desktop、Claude Code 等 MCP 客户端。嵌入模型(约 25MB)首次使用时需联网下载一次。
安装前请注意
服务器会读取库内容并把笔记正文与片段返回给助手,笔记中的任何内容都会对模型可见。所述工具为只读,但会加载库中 .smart-env 目录下的嵌入数据。首次运行无网络或库尚无嵌入时,搜索会退化为关键词匹配,并在响应的 mode 与 warning 字段中说明。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Smart Connections Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Smart Connections MCP Server

Give Claude true semantic memory of your Obsidian vault. An MCP server that searches your notes by meaning — reusing the embeddings the Smart Connections Obsidian plugin already generated, and running the same embedding model locally to understand your queries. No cloud calls; your vault never leaves your machine.

[MCP] [Obsidian] [License: MIT] [GitHub stars]

What it does

  • search_notes — semantic search across one or many vaults. Matches whole notes and individual sections (blocks), returns similarity-ranked results with content snippets.
  • get_similar_notes — notes similar to a given note (stored embeddings).
  • get_connection_graph — walk similarity links outward to map related ideas.
  • get_note_content — read a note, or extract specific blocks.
  • list_vaults / get_stats — what's loaded, counts, models, load errors.

Requirements

  • Node.js 20+
  • An Obsidian vault with the Smart Connections plugin installed and embeddings generated (v2 tested against Smart Connections 3.x data)
  • An MCP client (Claude Desktop, Claude Code, …)

Setup (Claude Desktop)

Add to claude_desktop_config.json and restart Claude Desktop:

json
{  "mcpServers": {    "smart-connections": {      "command": "npx",      "args": ["-y", "smart-connections-mcp"],      "env": {        "SMART_VAULT_PATH": "/path/to/Vault One,/path/to/Vault Two"      }    }  }}

One vault or several — separate paths with commas.

SMART_VAULT_PATHS (plural) is also accepted as an alias for SMART_VAULT_PATH and takes precedence over it if both are set.

Claude Code

bash
claude mcp add smart-connections -e SMART_VAULT_PATH="/path/to/vault" -- npx -y smart-connections-mcp

How it works

Smart Connections stores an embedding vector for every note and block in .smart-env/. This server loads those vectors into memory and, when you search, embeds your query with the same model your vault used (downloaded once, ~25MB, runs locally via transformers.js). Results are ranked by cosine similarity. Edits you make in Obsidian are picked up automatically.

If the embedding model can't load (e.g. no network on very first run), or a vault has no embeddings yet, search degrades to literal keyword matching and says so explicitly ("mode": "keyword-fallback" plus a warning naming the cause). When only some vaults fall back, mode stays "semantic", those rows carry "match": "keyword", and they always rank after the true semantic rows.

Migrating from v1

  • get_embedding_neighbors was removed.
  • search_notes is now genuinely semantic and its response includes vault, scope, block, snippet, and mode fields.
  • Everything else is backward compatible; single-vault SMART_VAULT_PATH configs work unchanged.

Development

bash
npm installnpm test              # build + CI-tier tests (no network)npm run test:live     # + real-model tests (downloads ~25MB once)npm run smoke -- "/path/to/vault" "your query"

MIT — see LICENSE.

来源:README.md,提交 5b484f4

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v2.0.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Connections 集成