npm smart-connections-mcpstdioMITupdated 17d ago
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.
O que dá para fazer com smart connections mcp?
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.
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:
{
"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
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_neighborswas removed.search_notesis now genuinely semantic and its response includesvault,scope,block,snippet, andmodefields.- Everything else is backward compatible; single-vault
SMART_VAULT_PATHconfigs work unchanged.
Development
npm install
npm 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.
Instalação
Adicione smart connections mcp ao seu cliente. Escolha o que você usa.
claude mcp add smart-connections-mcp -- npx -y smart-connections-mcpcodex mcp add smart-connections-mcp -- npx -y smart-connections-mcpamp mcp add smart-connections-mcp -- npx -y smart-connections-mcp{
"mcpServers": {
"smart-connections-mcp": {
"command": "npx",
"args": [
"-y",
"smart-connections-mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"smart-connections-mcp": {
"command": "npx",
"args": [
"-y",
"smart-connections-mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"smart-connections-mcp","command":"npx","args":["-y","smart-connections-mcp"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"smart-connections-mcp": {
"command": "npx",
"args": [
"-y",
"smart-connections-mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"smart-connections-mcp": {
"command": "npx",
"args": [
"-y",
"smart-connections-mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"smart-connections-mcp": {
"command": "npx",
"args": [
"-y",
"smart-connections-mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"smart-connections-mcp": {
"type": "local",
"command": "npx",
"args": [
"-y",
"smart-connections-mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"smart-connections-mcp": {
"command": {
"path": "npx",
"args": [
"-y",
"smart-connections-mcp"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y smart-connections-mcpRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
Pontuação
39 / 100
Incompleta
- Documentação22/25
- Manutenção25/25
- Confiança13/20
- Capacidade0/15
- Instalação12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 10 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
Histórico de versões
| Versões | Publicada |
|---|---|
| 2.0.1Mais recente | 22 de ago. de 2026 |
| 2.0.0 | 14 de jul. de 2026 |
| 1.0.0 | 9 de jul. de 2026 |