Secure, read-only MCP server for Obsidian Smart Connections. Path-validated semantic search for Claude Code.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add smart-connections --env VAULT_PATH='<VAULT_PATH>' -- npx -y @gogogadgetbytes/smart-connections-mcp~/.codex/config.toml
[mcp_servers.smart-connections]
command = "npx"
args = ["-y", "@gogogadgetbytes/smart-connections-mcp"]
env = { VAULT_PATH = "<VAULT_PATH>" }
# codex mcp add smart-connections --env VAULT_PATH='<VAULT_PATH>' -- npx -y @gogogadgetbytes/smart-connections-mcp~/.cursor/mcp.json
{
"mcpServers": {
"smart-connections": {
"command": "npx",
"args": [
"-y",
"@gogogadgetbytes/smart-connections-mcp"
],
"env": {
"VAULT_PATH": "<VAULT_PATH>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"smart-connections": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@gogogadgetbytes/smart-connections-mcp"
],
"env": {
"VAULT_PATH": "<VAULT_PATH>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"smart-connections": {
"command": "npx",
"args": [
"-y",
"@gogogadgetbytes/smart-connections-mcp"
],
"env": {
"VAULT_PATH": "<VAULT_PATH>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"smart-connections": {
"command": "npx",
"args": [
"-y",
"@gogogadgetbytes/smart-connections-mcp"
],
"env": {
"VAULT_PATH": "<VAULT_PATH>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"smart-connections": {
"command": "npx",
"args": [
"-y",
"@gogogadgetbytes/smart-connections-mcp"
],
"env": {
"VAULT_PATH": "<VAULT_PATH>"
}
}
}
}Environment variables
VAULT_PATH
Replace the placeholders with your own credentials and keep them out of version control.