io.github.DalecB/obsidian-semantic-mcp
Officialby DalecB · JavaScript
Obsidian Semantic Search
Read-only semantic search MCP server for Obsidian vaults using local Ollama embeddings.
Semantic search for Obsidian vaults using local Ollama embeddings for knowledge retrieval.
Topics
README not available yet.
Install
Configuration
OBSIDIAN_VAULT_ROOTrequiredAbsolute path to the local Obsidian vault.
OBSIDIAN_SEMANTIC_MCP_HOMEDirectory for the external SQLite index, logs, and cache.
OBSIDIAN_EMBED_MODELOllama embedding model name. Defaults to bge-m3.
OLLAMA_BASE_URLOllama API base URL. Defaults to http://localhost:11434.
OBSIDIAN_SEMANTIC_STARTUP_INDEXSet to true to run incremental indexing when the server starts.
OBSIDIAN_SEMANTIC_ALLOW_SENSITIVESet to true to allow include_sensitive tool calls.
OBSIDIAN_SEMANTIC_EXCLUDEComma- or newline-separated folders to always exclude from indexing, search, and read.
OBSIDIAN_SEMANTIC_SENSITIVE_PATHSComma- or newline-separated folders treated as sensitive (blocked unless unlocked). Defaults to 08_PersonalInfo/.
claude_desktop_config.json
{
"mcpServers": {
"obsidian-semantic-mcp": {
"command": "npx",
"args": [
"-y",
"@dalecb/obsidian-semantic-mcp@0.2.1"
],
"env": {
"OBSIDIAN_VAULT_ROOT": "<YOUR_OBSIDIAN_VAULT_ROOT>",
"OBSIDIAN_SEMANTIC_MCP_HOME": "<YOUR_OBSIDIAN_SEMANTIC_MCP_HOME>",
"OBSIDIAN_EMBED_MODEL": "<YOUR_OBSIDIAN_EMBED_MODEL>",
"OLLAMA_BASE_URL": "<YOUR_OLLAMA_BASE_URL>",
"OBSIDIAN_SEMANTIC_STARTUP_INDEX": "<YOUR_OBSIDIAN_SEMANTIC_STARTUP_INDEX>",
"OBSIDIAN_SEMANTIC_ALLOW_SENSITIVE": "<YOUR_OBSIDIAN_SEMANTIC_ALLOW_SENSITIVE>",
"OBSIDIAN_SEMANTIC_EXCLUDE": "<YOUR_OBSIDIAN_SEMANTIC_EXCLUDE>",
"OBSIDIAN_SEMANTIC_SENSITIVE_PATHS": "<YOUR_OBSIDIAN_SEMANTIC_SENSITIVE_PATHS>"
}
}
}
}