Give Claude semantic memory of your Obsidian vault — local semantic search over Smart Connections embeddings via MCP. Multi-vault, block-level, 100% private.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add smart-connections --env SMART_VAULT_PATH='<SMART_VAULT_PATH>' -- npx -y smart-connections-mcp~/.codex/config.toml
[mcp_servers.smart-connections]
command = "npx"
args = ["-y", "smart-connections-mcp"]
env = { SMART_VAULT_PATH = "<SMART_VAULT_PATH>" }
# codex mcp add smart-connections --env SMART_VAULT_PATH='<SMART_VAULT_PATH>' -- npx -y smart-connections-mcp~/.cursor/mcp.json
{
"mcpServers": {
"smart-connections": {
"command": "npx",
"args": [
"-y",
"smart-connections-mcp"
],
"env": {
"SMART_VAULT_PATH": "<SMART_VAULT_PATH>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"smart-connections": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"smart-connections-mcp"
],
"env": {
"SMART_VAULT_PATH": "<SMART_VAULT_PATH>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"smart-connections": {
"command": "npx",
"args": [
"-y",
"smart-connections-mcp"
],
"env": {
"SMART_VAULT_PATH": "<SMART_VAULT_PATH>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"smart-connections": {
"command": "npx",
"args": [
"-y",
"smart-connections-mcp"
],
"env": {
"SMART_VAULT_PATH": "<SMART_VAULT_PATH>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"smart-connections": {
"command": "npx",
"args": [
"-y",
"smart-connections-mcp"
],
"env": {
"SMART_VAULT_PATH": "<SMART_VAULT_PATH>"
}
}
}
}Environment variables
SMART_VAULT_PATH
Replace the placeholders with your own credentials and keep them out of version control.