smart-connections MCP Server
MCP server for Obsidian Smart Connections. Semantic search using your vault's embeddings.
smart-connections scores 55 (Fair), licensed MIT and written in TypeScript. It installs as a local process. It declares 6 tools. Filed under Search, AI and memory, Productivity. GitHub shows 3 stars. Package registries report about 37 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Fair trust
55 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade A
88/100 for listing completeness. Lost points: 2 of 6 tools barely described, short summary.
How quality is graded
Where the 55 comes from
22 + 5 + 4 + 10 + 4 + 10 = 55. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 5 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 4 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "gogogadgetbytes-smart-connections-mcp": { "command": "npx", "args": [ "-y", "@gogogadgetbytes/smart-connections-mcp@0.2.0" ], "env": { "VAULT_PATH": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
VAULT_PATH | Required | Absolute path to your Obsidian vault (e.g., /Users/you/Documents/MyVault) |
Tools6Tool docs quality grade C
All capabilitiesget_model_infotoolGet embedding model configuration
get_notetoolGet content of a specific note (path validated)
list_indexedtoolList all indexed notes
Search using a raw embedding vector
search_by_texttoolSearch using freeform text (computes embedding locally)
search_similartoolFind notes semantically similar to a given note
About
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
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 | ../ and symlink attacks blocked |
| 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 build
Configure 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.js
Or 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 tool
Search Similar Notes
"Find notes similar to Topics/Claude_Code.md"
→ Uses search_similar tool
Get Note Content
"Show me the content of Topics/Obsidian.md"
→ Uses get_note tool
List Indexed Notes
"What notes are indexed in my vault?"
→ Uses list_indexed tool
Tools
| Tool | Description |
|---|---|
search_by_text | Search using freeform text (computes embedding locally) |
search_similar | Find notes semantically similar to a given note |
search_by_embedding | Search using a raw embedding vector |
get_note | Get content of a specific note (path validated) |
get_model_info | Get embedding model configuration |
list_indexed | List all indexed notes |
Configuration
| Variable | Required | Description |
|---|---|---|
VAULT_PATH | 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.js
Contributing
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
Frequently asked questions
What is smart-connections MCP Server?
MCP server for Obsidian Smart Connections. Semantic search using your vault's embeddings.
How do I install smart-connections MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. smart-connections MCP Server runs locally from the npm package @gogogadgetbytes/smart-connections-mcp with the command npx -y @gogogadgetbytes/smart-connections-mcp@0.2.0.
Is smart-connections MCP Server free and open source?
Yes. smart-connections MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does smart-connections MCP Server support remote (HTTP) connections?
No remote endpoint is listed for smart-connections MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does smart-connections MCP Server provide?
smart-connections MCP Server provides 6 tools, including get_model_info, get_note, list_indexed, and search_by_embedding. See the full tool list for descriptions and parameters.
How is smart-connections MCP Server's trust score calculated?
smart-connections MCP Server scores 55 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.