some-vault-some-mcp
Provides tools for reading, writing, searching, and managing notes, canvases, daily notes, and link graphs in an Obsidian vault.
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., "@some-vault-some-mcpsearch for notes about machine learning"
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.
some-vault-some-mcp
MCP server that gives AI models read/write access to Obsidian vaults with semantic search, link graph analysis, canvas manipulation, and incremental indexing.
Built on FastMCP + LanceDB. Embeds notes locally with fastembed (nomic-embed-text-v1.5-Q, 768 dims) by default — no server required. Optionally supports Ollama or OpenAI embeddings. Watches the vault filesystem and re-indexes on change.
Warning: This is a hot vibe coded mess, user beware
What it does
Hybrid search - vector similarity (70%) + full-text keyword (30%), with overlap boost
Semantic search - pure embedding-based retrieval
Exact search - literal substring matching, optional case sensitivity and regex
Note CRUD - create, read, append, prepend, move, delete (soft delete to .trash by default)
Frontmatter parsing - YAML extraction, tag collection (frontmatter + inline #hashtags), property filtering
Wikilink graph - backlinks, outlinks, orphan detection, broken link detection, BFS neighbor traversal (depth 1-5)
Canvas CRUD - create, read, add/update/remove nodes and edges, grid auto-layout, dangling edge cleanup
Daily notes - Moment.js-style date formatting, template support, reads Obsidian's daily-notes config
Incremental indexing - filesystem watcher with 2s debounce, mtime-based change detection
Atomic writes - temp file + POSIX rename, per-path asyncio locks
Tool overrides - rename or disable any tool via YAML config (per-agent customization)
Requirements
Python 3.11+
uv (for
uvx)
Quick start
Add this to your MCP client config (Cursor, Windsurf, Claude Code, etc.):
{
"mcpServers": {
"obsidian-vault": {
"command": "uvx",
"args": ["some-vault-some-mcp", "serve", "--transport", "stdio"],
"env": {
"VAULT_PATH": "/path/to/your/obsidian/vault"
}
}
}
}That's it. uvx installs the package from PyPI on first run and keeps it cached.
For alternative embedding providers, add --from with extras:
{
"command": "uvx",
"args": ["--from", "some-vault-some-mcp[ollama]", "some-vault-some-mcp", "serve", "--transport", "stdio"],
"env": {
"VAULT_PATH": "/path/to/your/obsidian/vault"
}
}Replace [ollama] with [openai] or [gpu] as needed.
SSE mode
If running the server separately (Docker, remote, etc.), use the SSE URL instead:
{
"mcpServers": {
"obsidian-vault": {
"url": "http://localhost:3789/sse"
}
}
}Running directly
VAULT_PATH=/path/to/vault uvx some-vault-some-mcp serveFirst run does a full index of the vault - takes a few minutes depending on size. Subsequent starts run incremental index only.
CLI flags
some-vault-some-mcp serve [--transport sse|stdio] [--host 0.0.0.0] [--port 3789]CLI flags override env vars.
Environment variables
Variable | Default | Notes |
| (required) | Absolute path to Obsidian vault |
|
| Where the vector index lives |
|
|
|
|
| SSE bind address |
|
| SSE port |
|
|
|
|
| Any fastembed-supported model. On Apple Silicon, auto-detects and uses the non-quantized variant ( |
| (auto-detected) | Override dimension auto-detection |
|
| Ollama API endpoint (requires |
| Required if provider is | |
| Enables Bearer token auth on SSE transport | |
|
|
|
| Path to YAML override file |
Docker
docker build -t some-vault-some-mcp .
docker run -p 3789:3789 \
-v /path/to/vault:/opt/vault:ro \
-v /data:/opt/data \
some-vault-some-mcpRuns as non-root user (vault:vault, UID 1000). Index data persists in /opt/data. Vault mounted read-only. Container is self-contained — fastembed runs in-process, no Ollama sidecar needed.
To use Ollama instead: docker run ... -e EMBEDDING_PROVIDER=ollama -e OLLAMA_URL=http://ollama:11434 some-vault-some-mcp
Tools (27)
Search
search
Find notes by text, meaning, or exact string.
Param | Type | Default | Notes |
| string | (required) | Search query text |
| string |
|
|
| int |
| Max results to return |
| string[] |
| Pre-filter by tags |
| string |
| Pre-filter by folder path prefix |
| bool |
| Exact mode only - match case |
Read
get_note
Read a single note with parsed frontmatter and tags.
Param | Type | Default | Notes |
| string | (required) | Vault-relative path to the note. Extension-agnostic — |
list_notes
Enumerate vault notes with optional metadata filters. Index-backed fields (tags, projects, status, area) query LanceDB when available. Frontmatter property filtering scans files directly.
Param | Type | Default | Notes |
| string |
| Filter by folder path prefix |
| string[] |
| Filter by tags (index-backed) |
| string[] |
| Filter by projects (index-backed) |
| string |
| Filter by status field (index-backed) |
| string |
| Filter by area field (index-backed) |
| string |
| Arbitrary frontmatter key to filter on |
| string |
| Value to match for |
| bool |
| Include note content in results |
| int |
| Max results to return |
Write
create_note
Create a new note. Fails if it already exists.
Param | Type | Default | Notes |
| string | (required) | Vault-relative path for the new note |
| string | (required) | Note body text |
| string |
| JSON string of frontmatter fields, e.g. |
append_to_note
Append text to the end of an existing note.
Param | Type | Default | Notes |
| string | (required) | Vault-relative path |
| string | (required) | Text to append |
prepend_to_note
Insert text after frontmatter, before the note body.
Param | Type | Default | Notes |
| string | (required) | Vault-relative path |
| string | (required) | Text to prepend |
update_frontmatter
Merge key-value pairs into YAML frontmatter. Unlisted keys preserved.
Param | Type | Default | Notes |
| string | (required) | Vault-relative path |
| string | (required) | JSON string of key-value pairs, e.g. |
move_note
Move or rename a note. Rewrites wikilinks vault-wide by default.
Param | Type | Default | Notes |
| string | (required) | Current vault-relative path |
| string | (required) | Destination vault-relative path |
| bool |
| Rewrite wikilinks in all referencing notes |
delete_note
Delete a note. Moves to .trash by default; use permanent for hard delete.
Param | Type | Default | Notes |
| string | (required) | Vault-relative path |
| bool |
|
|
Daily notes
get_daily_note
Read today's or a specific date's daily note. Uses Obsidian's daily-notes config for folder and date format. Returns a text message (not an error) if no note exists for the requested date.
Param | Type | Default | Notes |
| string |
| Date string (e.g. |
create_daily_note
Create a daily note for today or a given date. Fails if one exists. Supports {{date}} placeholder in templates.
Param | Type | Default | Notes |
| string |
| Date string. Omit for today |
| string |
| Note body text |
| string |
| Vault-relative path to a template note |
Tags
get_tags
List all unique tags in the vault with per-note usage counts.
Param | Type | Default | Notes |
| string |
|
|
Link graph
get_backlinks
Find notes that link to a given note.
Param | Type | Default | Notes |
| string | (required) | Vault-relative path of the target note |
get_outlinks
List all outgoing wikilinks from a note. Shows valid, broken, and embed links separately.
Param | Type | Default | Notes |
| string | (required) | Vault-relative path |
find_orphans
Find disconnected notes - no inbound links, no outbound links, or both.
Param | Type | Default | Notes |
| bool |
| Also report notes with no outgoing links |
| int |
| Cap per category |
find_broken_links
Find wikilinks pointing at notes that don't exist.
Param | Type | Default | Notes |
| string |
| Limit scan to a folder |
| int |
| Max broken links to return |
get_graph_neighbors
Walk the link graph outward from a note via BFS.
Param | Type | Default | Notes |
| string | (required) | Starting note path |
| int |
| BFS depth, 1-5 |
| string |
|
|
Canvas
list_canvases
List all .canvas files in the vault.
Param | Type | Default | Notes |
| string |
| Filter by folder path prefix |
read_canvas
Read canvas structure (nodes + edges).
Param | Type | Default | Notes |
| string | (required) | Vault-relative path to .canvas file |
create_canvas
Create a new .canvas file with optional initial nodes/edges. Fails if it already exists.
Param | Type | Default | Notes |
| string | (required) | Vault-relative path for the new canvas |
| string |
| JSON array of node objects, e.g. |
| string |
| JSON array of edge objects |
add_canvas_node
Add a node (text/file/link/group) to a canvas. Position auto-computed via grid layout if omitted.
Param | Type | Default | Notes |
| string | (required) | Path to the canvas |
| string | (required) |
|
| string |
| Text content (for text nodes) |
| string |
| Vault-relative file path (for file nodes). For markdown notes the |
| string |
| URL (for link nodes) |
| string |
| Display label |
| int |
| X position. Auto-placed if omitted |
| int |
| Y position. Auto-placed if omitted |
| int |
| Node width in pixels |
| int |
| Node height in pixels |
| string |
| Obsidian preset |
update_canvas_node
Update any property of an existing canvas node by ID. Only provided fields are changed.
Param | Type | Default | Notes |
| string | (required) | Path to the canvas |
| string | (required) | ID of the node to update |
| int |
| New X position |
| int |
| New Y position |
| int |
| New width |
| int |
| New height |
| string |
| Preset |
| string |
| New text content |
| string |
| New file reference |
| string |
| New URL |
| string |
| New label |
remove_canvas_nodes
Remove nodes by ID. Auto-removes dangling edges.
Param | Type | Default | Notes |
| string | (required) | Path to the canvas |
| string | (required) | JSON array of node ID strings, e.g. |
add_canvas_edge
Add an edge between two canvas nodes with full property support.
Param | Type | Default | Notes |
| string | (required) | Path to the canvas |
| string | (required) | Source node ID |
| string | (required) | Target node ID |
| string |
| Anchor side on source: |
| string |
| Anchor side on target |
| string |
| End style on source side (e.g. |
| string |
| End style on target side |
| string |
| Preset |
| string |
| Edge label text |
update_canvas_edge
Update properties of an existing canvas edge by ID. Only provided fields are changed.
Param | Type | Default | Notes |
| string | (required) | Path to the canvas |
| string | (required) | ID of the edge to update |
| string |
| New source anchor side |
| string |
| New target anchor side |
| string |
| New source end style |
| string |
| New target end style |
| string |
| Preset |
| string |
| New label |
remove_canvas_edges
Remove edges from a canvas by ID.
Param | Type | Default | Notes |
| string | (required) | Path to the canvas |
| string | (required) | JSON array of edge ID strings |
Index management
vault_index_status
Check search index health and statistics. No arguments.
vault_reindex
Trigger incremental reindex for one note or the entire vault.
Param | Type | Default | Notes |
| string |
| Vault-relative path to reindex a single note. Omit for full vault |
MCP resources
obsidian://note/{path}- read a note by pathobsidian://tags- all tagsobsidian://daily- today's daily note
Tool name overrides
When you need to change the tool names and descriotions, a YAML file can be used. Create a YAML file, and set some_vault_some_mcp_OVERRIDES to its path:
tools:
search:
name: "vault_search"
description: "Custom description for this agent"
get_note:
name: "read_note"
disabled:
- get_tags
- find_orphansOverrides apply at registration time. Useful for per-agent tool namespacing or disabling tools an agent shouldn't use if your agent doesn't support tool disabling.
How search works
Hybrid (default) - runs both semantic and FTS (LanceDB full-text search, BM25-style) at 2x requested top_k, normalizes scores, combines with semantic * 0.7 + FTS * 0.3. Results appearing in both get a 1.2x boost. Returns top_k from merged set.
Semantic - embeds the query, runs vector similarity search against LanceDB.
Exact - scans raw vault files for literal substring matches. Not index-backed. Optional case sensitivity.
All search modes accept tag and folder pre-filters. Tags use SQL LIKE against comma-separated tag strings in the index. Folders use path prefix matching.
Chunking
Splits markdown by heading hierarchy first, then by paragraph for oversized sections. Tracks heading breadcrumbs through the split - a chunk under # A / ## B / ### C gets heading field "A > B > C". Metadata header prepended to embedding text: [Title: X | Section: A > B | Tags: foo, bar].
Wikilink resolution
Matches Obsidian's behavior in 4 steps:
Exact relative-path match (case-insensitive)
Path-suffix match (if link contains
/)Basename match with proximity tie-break (deepest shared path prefix with source)
Alias match (frontmatter aliases)
First matching step wins.
Security boundaries
All paths validated against vault root - rejects
../, null bytes, symlink escapes.obsidian,.git,.trashexcluded from indexing and tool accessOptional Bearer token auth on SSE transport
Docker container runs as non-root
Bounded frontmatter parsing prevents YAML bombs
Developing
Setup
git clone https://github.com/russellsch/some_obsidian_some_mcp.git
cd some_obsidian_some_mcp
uv sync # default (fastembed CPU)
uv sync --extra gpu # GPU-accelerated embeddings
uv sync --extra ollama # Ollama provider
uv sync --extra openai # OpenAI providerRunning from source
VAULT_PATH=/path/to/vault uv run some-vault-some-mcp serveTo use a local checkout in your MCP client config instead of the PyPI package:
{
"mcpServers": {
"obsidian-vault": {
"command": "uv",
"args": ["run", "--project", "/path/to/some_obsidian_some_mcp", "some-vault-some-mcp", "serve", "--transport", "stdio"],
"env": {
"VAULT_PATH": "/path/to/your/obsidian/vault"
}
}
}
}Tests
uv run pytest tests/unit # unit tests (fast, no external deps)
uv run pytest tests/integration # integration tests (real LanceDB, may download ~130MB model)
uv run pytest # everythingTest fixtures live in tests/fixtures/vault/.
Releasing
See RELEASING.md.
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
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/russellsch/some_vault_some_mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server