Smart Connections MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Smart Connections MCP Serversearch my vault for meditation techniques"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Smart Connections MCP Server
A security-first MCP server for Smart Connections. Read-only. Path-validated. Auditable.
Exposes Smart Connections embeddings to Claude Code and other MCP clients for semantic search of your Obsidian vault.
Why This Exists
We needed semantic search of our Obsidian vault from Claude Code. Existing options have problems:
No path validation - User input passed directly to file operations
Write access - Some expose mutation tools we don't need
Heavy dependencies - PyTorch/transformers for what's essentially vector math
This implementation:
Minimal dependencies - MCP SDK + Transformers.js (for text search)
Fail-closed security - path validation with realpath, symlink detection
Auditable - small TypeScript codebase you can actually read
Related MCP server: mcp-obsidian-local
Features
Text search - query with plain text, not just note paths
Semantic search using Smart Connections embeddings
Local inference - uses Transformers.js (same model as Smart Connections)
Read-only - no write operations, no shell execution
Secure - strict path validation, bounded responses
Offline - works without Obsidian running
Security Model
Property | Guarantee |
Path confinement | All file access validated against vault root |
No traversal |
|
Read-only | No write operations exposed |
Bounded responses | Capped results (50), content length (10KB) |
Fail closed | Errors deny access, never bypass |
Audit logging | Security events logged with context |
Installation
Prerequisites
Node.js 18+
Obsidian with Smart Connections plugin installed
Embeddings built (open vault in Obsidian, let Smart Connections index)
Setup
git clone https://github.com/gogogadgetbytes/smart-connections-mcp
cd smart-connections-mcp
npm install
npm run buildConfigure Claude Code
Add to your Claude Code config:
claude mcp add smart-connections \
-e VAULT_PATH="/path/to/your/obsidian/vault" \
-- node /path/to/smart-connections-mcp/dist/index.jsOr manually add to ~/.claude.json:
{
"mcpServers": {
"smart-connections": {
"command": "node",
"args": ["/path/to/smart-connections-mcp/dist/index.js"],
"env": {
"VAULT_PATH": "/path/to/your/obsidian/vault"
}
}
}
}Restart Claude Code to load the server.
Usage
Once configured, Claude Code can use these tools:
Search by Text
"Search my vault for notes about backup strategies"
→ Uses search_by_text toolSearch Similar Notes
"Find notes similar to Topics/Claude_Code.md"
→ Uses search_similar toolGet Note Content
"Show me the content of Topics/Obsidian.md"
→ Uses get_note toolList Indexed Notes
"What notes are indexed in my vault?"
→ Uses list_indexed toolTools
Tool | Description |
| Search using freeform text (computes embedding locally) |
| Find notes semantically similar to a given note |
| Search using a raw embedding vector |
| Get content of a specific note (path validated) |
| Get embedding model configuration |
| List all indexed notes |
Configuration
Variable | Required | Description |
| Yes | Absolute path to Obsidian vault |
Limitations
Single vault - Configure one vault per MCP server instance
Index from Smart Connections - Note embeddings come from the plugin; text queries are embedded locally
No write access - By design; use Obsidian for edits
First run downloads model - ~50MB model cached in
~/.cache/huggingface/
Development
# Build
npm run build
# Test with MCP Inspector
npx @modelcontextprotocol/inspector node dist/index.jsContributing
See CONTRIBUTING.md. Security-focused PRs welcome.
Security
To report security vulnerabilities, please email gogogadgetcode@proton.me. Do not open public issues for security concerns.
License
MIT - see LICENSE
Credits
Smart Connections by Brian Petro
Model Context Protocol by Anthropic
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/gogogadgetbytes/smart-connections-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server