io.github.gogogadgetbytes/smart-connections

Registre officiel Recherche et web

MCP server for Obsidian Smart Connections. Semantic search using your vault's embeddings.

Que pouvez-vous faire avec io.github.gogogadgetbytes/smart-connections ?

  • 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

Installation

Ajoutez ceci à la configuration MCP de votre client (Claude Desktop : claude_desktop_config.json ; Cursor : .cursor/mcp.json ; VS Code et les autres utilisent la même forme « mcpServers »).

NPM package @gogogadgetbytes/smart-connections-mcp
Claude Code
claude mcp add smart-connections -e 'VAULT_PATH=<VAULT_PATH>' -- npx -y @gogogadgetbytes/smart-connections-mcp@0.2.0
Configuration JSON (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "smart-connections": {
            "command": "npx",
            "args": [
                "-y",
                "@gogogadgetbytes/smart-connections-mcp@0.2.0"
            ],
            "env": {
                "VAULT_PATH": "<VAULT_PATH>"
            }
        }
    }
}

Variables d'environnement

  • VAULT_PATH obligatoire Absolute path to your Obsidian vault (e.g., /Users/you/Documents/MyVault)

Documentation

Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.

Sommaire
  1. Smart Connections MCP Server
  2. Why This Exists
  3. Features
  4. Security Model
  5. Installation
  6. Usage
  7. Tools
  8. Configuration
  9. Limitations
  10. Development
  11. Contributing
  12. Security
  13. License
  14. Credits

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

PropertyGuarantee
Path confinementAll file access validated against vault root
No traversal../ and symlink attacks blocked
Read-onlyNo write operations exposed
Bounded responsesCapped results (50), content length (10KB)
Fail closedErrors deny access, never bypass
Audit loggingSecurity 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

ToolDescription
search_by_textSearch using freeform text (computes embedding locally)
search_similarFind notes semantically similar to a given note
search_by_embeddingSearch using a raw embedding vector
get_noteGet content of a specific note (path validated)
get_model_infoGet embedding model configuration
list_indexedList all indexed notes

Configuration

VariableRequiredDescription
VAULT_PATHYesAbsolute 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

Questions fréquentes

Qu'est-ce que io.github.gogogadgetbytes/smart-connections ?

MCP server for Obsidian Smart Connections. Semantic search using your vault's embeddings.

Comment installer io.github.gogogadgetbytes/smart-connections ?

Il s'exécute sur votre machine. Dans Claude Code : claude mcp add smart-connections -e 'VAULT_PATH=<VAULT_PATH>' -- npx -y @gogogadgetbytes/smart-connections-mcp@0.2.0. Pour les autres clients, collez la configuration JSON de cette page dans leurs réglages MCP.

Faut-il une clé API pour io.github.gogogadgetbytes/smart-connections ?

Oui. Il attend VAULT_PATH, à renseigner dans sa configuration.

io.github.gogogadgetbytes/smart-connections est-il open source ?

Oui. Son code est sur GitHub sous licence MIT.

Qui maintient io.github.gogogadgetbytes/smart-connections ?

Il est publié par gogogadgetbytes. AI.tn le référence sans le maintenir ni le recommander.

Issu du registre MCP officiel. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.