obx
Provides comprehensive tools for managing Obsidian vaults, including note creation and editing, fuzzy searching, task management, YAML frontmatter manipulation, and support for specialized Obsidian features like Canvas files and Maps of Content.
obx
A fast, lightweight MCP server for Obsidian vaults. Built in Go for speed and simplicity.
Documentation | Quick Start | MCP Tool Reference
Why This Project?
Feature | obx | Other MCP Servers |
No plugins required | Works directly with vault files | Often require Obsidian REST API plugin |
Single binary | One file, zero dependencies | Node.js/Python runtime needed |
Cross-platform | macOS, Linux, Windows | Often have platform issues |
72 actions | 16 multiplexed tools, comprehensive vault operations | Typically 10-20 tools |
Fast startup | ~10ms | Seconds for interpreted languages |
Related MCP server: obsidian-local-mcp
Quick Start
1. Install with one command:
curl -sSL https://raw.githubusercontent.com/zach-snell/obx/main/install.sh | bashThis auto-detects your OS/architecture and installs to /usr/local/bin.
No sudo? Install to
~/.local/bininstead:curl -sSL https://raw.githubusercontent.com/zach-snell/obx/main/install.sh | bash -s -- --user
# macOS (Apple Silicon)
curl -sSL https://github.com/zach-snell/obx/releases/latest/download/obx-darwin-arm64 -o obx && chmod +x obx
# macOS (Intel)
curl -sSL https://github.com/zach-snell/obx/releases/latest/download/obx-darwin-amd64 -o obx && chmod +x obx
# Linux
curl -sSL https://github.com/zach-snell/obx/releases/latest/download/obx-linux-amd64 -o obx && chmod +x obx2. Configure your MCP client:
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"obsidian": {
"command": "/path/to/obx",
"args": ["mcp", "/path/to/your/vault"]
}
}
}The server will be auto-discovered, or add to your config:
{
"mcpServers": {
"obsidian": {
"command": "/path/to/obx",
"args": ["mcp", "/path/to/your/vault"]
}
}
}Run as an HTTP server for remote access or multi-client setups:
# Start HTTP server on port 8080
obx mcp /path/to/vault --http :8080
# or via env var
OBSIDIAN_ADDR=:8080 obx mcp /path/to/vaultThen configure your MCP client to connect to http://localhost:8080/mcp.
# Run directly (communicates via stdio, default)
obx mcp /path/to/vault3. Start using it! Ask your AI assistant to search your vault, create notes, manage tasks, etc.
⚠️ Paths are relative to the vault root. All
pathparameters use paths likeprojects/todo.md, not the full filesystem path. Using absolute paths will create nested directories inside your vault.
Installation Options
Pre-built Binaries (Recommended)
Download from Releases:
Platform | Binary |
macOS (Apple Silicon) |
|
macOS (Intel) |
|
Linux (x64) |
|
Linux (ARM) |
|
Windows |
|
Go Install
go install github.com/zach-snell/obx/cmd/obx@latest
mv $(go env GOPATH)/bin/server $(go env GOPATH)/bin/obxBuild from Source
git clone https://github.com/zach-snell/obx.git
cd obx
go build -o obx ./cmd/obxUpgrade
Just run the install script again - it always fetches the latest version:
curl -sSL https://raw.githubusercontent.com/zach-snell/obx/main/install.sh | bashAdvanced Server Configuration
obx mcp supports flags for strict access control and dynamic operations:
Selective Tool Disablement
If you don't want the AI assistant to access specific tools (e.g. bulk operations or deletion), you can blacklist entire tool groups using the --disabled-tools flag:
obx mcp /my/vault --disabled-tools manage-folders,bulk-operations,manage-frontmatterDynamic Vault Switching
By default, an obx mcp instance is locked to a single vault path. If you want to allow an LLM to switch the active vault dynamically via the MCP protocol without restarting the server, enable it like this:
obx mcp /my/vault --allow-vault-switchingTo restrict which vaults the agent is allowed to switch to, first define aliases using setup commands like obx vault add my-notes /path/to/notes, then pass the allowed aliases to the server:
obx mcp /my/vault --allow-vault-switching --allowed-vaults my-notes,work,personalMCP Tool Reference (16 Multiplexed)
obx multiplexes its 72 actions into 16 MCP tool groups to prevent context-window exhaustion and stay well under LLM tool limit restraints (e.g. Cursor allows 40, Copilot allows 128). You pass an "action" argument to each tool to route to the specific functionality.
MCP Tool Group | Description |
| List, read, write, rename, append, delete, or duplicate notes. |
| Perform surgical find-and-replace or precise markdown header editing. |
| Read entire blocks of multiple files or extract headers simultaneously. |
| Leverage fuzzy text search, regex, tags, headings, frontmatter queries, or date queries. |
| Move directories, change root tags, or mass-update frontmatter fields across many files. |
| List, create, or recursively delete directories. |
| Set, get, or remove YAML frontmatter keys; read and write Dataview inline fields. |
| Resolve backlinks, forward-links, or ask the AI to suggest new graph connections. |
| Parse lists of |
| Hunt for broken links, orphan notes, stubs, and get massive mathematical token/word stats. |
| Fetch or instantiate Daily, Weekly, Monthly, or Yearly notes automatically. |
| Find and dynamically inject markdown blocks from your templates directory. |
| Auto-generate alphabetical directory indices or group unlinked notes into Maps of Content. |
| Create logic nodes and draw line edges across Obsidian JSON |
| Split notes by heading, merge multiple notes, or extract sections to new notes. |
| (Opt-in only) Dynamically remount the active server workspace without restarting. |
For the exhaustive list ofaction arguments accepted by each tool group, please read the Official Documentation Site.
Token-Efficient + Safe Writes
High-frequency tools now support compact responses and destructive tools support preview-first workflows.
Response Modes
mode=compact(default): small JSON envelope with summary + bounded datamode=detailed: legacy markdown-rich output for human reading
Example compact envelope:
{
"status": "ok",
"mode": "compact",
"summary": "Found 42 notes",
"truncated": false,
"data": {
"total_count": 42,
"returned_count": 42
}
}Dry Run For Destructive/Bulk Tools
Use dry_run=true to preview operations without writing:
delete-note,delete-folderbulk-tag,bulk-move,bulk-set-frontmattermerge-notes,extract-note,extract-sectionbatch-edit-note
Optimistic Concurrency
Write/edit tools accept optional expected_mtime (RFC3339Nano).
If file modification time differs, the operation fails instead of overwriting newer changes.
Usage Examples
Daily Workflow
"Create today's daily note and show me my open tasks"
"What did I work on last week?"
"Find notes I haven't touched in 3 months"Research & Writing
"Search my vault for anything about 'machine learning'"
"Find all notes tagged #project and #active"
"What notes mention 'API design' but aren't linked?"Vault Maintenance
"Find orphan notes with no connections"
"Show me stub notes under 100 words"
"Generate a MOC for my projects folder"Bulk Operations
"Add #archive tag to all notes in the old-projects folder"
"Move all notes tagged #2023 to the archive folder"
"Set status: complete on these 5 project notes"Template Variables
Create templates in your templates/ folder:
---
title: {{title}}
date: {{date}}
status: {{status:draft}}
---
# {{title}}
Created: {{datetime}}Built-in Variables
Variable | Example |
|
|
|
|
|
|
|
|
|
|
|
|
| Note title |
|
|
| Unix timestamp |
Use {{var:default}} for default values.
Task Format
Compatible with Obsidian Tasks plugin:
- [ ] Open task
- [x] Completed task
- [ ] Has due date 📅 2024-01-15
- [ ] High priority ⏫
- [ ] Medium priority 🔼
- [ ] Low priority 🔽
- [ ] Tagged #project #urgentSecurity
Path traversal protection: All file operations are sandboxed to your vault
Read-only by default: Write operations require explicit tool calls
No network access: The server only accesses local files
Development
# Setup (requires Go 1.21+)
git clone https://github.com/zach-snell/obx.git
cd obx
# With mise (recommended)
mise install && mise run check
# Without mise
go build -o obx ./cmd/obx
go test -race -cover ./...
go test -bench 'Benchmark(ListNotes|SearchVault)' ./internal/vaultAvailable Commands
Command | Description |
| Build binary |
| Run tests |
| Run linters |
| All checks |
| Fuzz tests |
FAQ
Q: Do I need Obsidian running?
A: No. This server works directly with vault files on disk.
Q: Will this conflict with Obsidian?
A: No. Both can access the same files safely.
Q: What about sync (iCloud, Dropbox, etc)?
A: Works fine. The server reads/writes standard markdown files.
Q: Can I use multiple vaults?
A: Yes! You have two main options:
Run multiple server instances, each pointing to a different vault on a different port.
Register vaults globally via
obx vault add <alias> <path>and run the server withobx mcp --allow-vault-switching --allowed-vaults <aliases...>. This exposes amanage-vaultsMCP tool allowing the AI assistant to switch between them dynamically.
License
Apache 2.0 - see LICENSE
Available Tools
15 toolsanalyze-vaultB
Unified analytical tool to get vault stats, detect broken links, orphans, stubs, and outdated notes
Inputs: action (required), directory, include_no_outgoing, path, +3 more.
bulk-operationsB
Unified bulk operational tool for tagging, moving, and updating frontmatter across multiple notes
Inputs: action (required), paths, tag, tag_action, +5 more.
edit-noteB
Unified tool for targeted text edits, section replacements, and batch edits
Inputs: action (required), path, old_text, new_text, +7 more.
manage-canvasC
Unified tool for reading, creating, and interacting with Canvas notes
Inputs: action (required), directory, include_empty, path, +10 more.
manage-foldersB
Unified tool for listing, creating, and deleting folders
Inputs: action (required), directory, include_empty, path, +2 more.
manage-frontmatterB
Unified tool for manipulating note frontmatter properties, tags, aliases, and inline fields
Inputs: action (required), path, key, value, +3 more.
manage-linksB
Unified tool covering backlinks, forward-links, and AI link suggestions for notes
Inputs: action (required), path, limit.
manage-mocsC
Unified tool to discover and generate Maps of Content (MOCs) and folder indices
Inputs: action (required), directory, title, output, +4 more.
manage-notesC
Unified tool for listing, reading, writing, moving, deleting, renaming, and appending to notes
Inputs: action (required), path, content, expected_mtime, +15 more.
manage-periodic-notesB
Unified tool for getting, creating, and listing daily, weekly, monthly, and yearly periodic notes
Inputs: action (required), date, folder, format, +3 more.
manage-tasksB
Unified tool for finding, toggling, and completing checkbox tasks across the vault
Inputs: action (required), status, directory, limit, +6 more.
manage-templatesA
Unified tool for listing, retrieving, and applying markdown templates
Inputs: action (required), folder, name, template, +3 more.
read-batchB
Unified tool for reading batches of notes, specific headings, sections, or generated summaries
Inputs: action (required), paths, include_frontmatter, path, +2 more.
refactor-notesA
Unified tool for structural note refactoring: split notes by heading, merge multiple notes, and extract sections to new notes
Inputs: action (required), path, level, keep_original, +10 more.
search-vaultB
Unified search tool spanning text query, advanced block search, regex, dates, tags, inline-fields, and frontmatter queries
Inputs: action (required), query, directory, mode, +12 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
Each tool has a clearly distinct domain (e.g., analytics, bulk ops, editing, canvas, folders, frontmatter, links, MOCs, notes, periodic notes, tasks, templates, batch reading, refactoring, search). No two tools appear to have overlapping purposes; descriptions clarify unique responsibilities.
Most tools use a verb-noun pattern with hyphens, but the verbs are inconsistent: 'manage-', 'analyze-', 'bulk-', 'edit-', 'read-', 'refactor-', 'search-'. While readable, the lack of a uniform prefix or verb style introduces minor confusion.
With 15 tools covering the full lifecycle of vault management (reading, writing, organizing, searching, analyzing, templating), the count is well-scoped. Each tool serves a distinct purpose without being excessive or thin.
The tool surface is remarkably complete: full CRUD for notes, folders, periodic notes, templates, tasks; plus advanced features like bulk operations, refactoring, batch reading, canvas interaction, MOC generation, and search. No obvious gaps for a note-taking vault.
Maintenance
Related MCP Connectors
Hosted MCP server for Obsidian Sync vaults: read, search, edit notes. Not affiliated with Obsidian.
Markdown-based note-taking with a hosted MCP server. Your notes serve you and your AI.
Notes and memory assistant: one Markdown vault that Claude, ChatGPT and any MCP client can share.
Go MCP server for GitLab: 2 dynamic tools reach 1000+ REST/GraphQL actions. Free/CE, no paid tier.
Related MCP Servers
- AlicenseAqualityBmaintenanceThe most feature-complete MCP server for Obsidian vaults. 23 tools and 3 resources for search, read, write, tags, link analysis, graph traversal, and canvas support.41121 npm34MIT
- AlicenseNot gradedqualityDmaintenanceA local MCP server that wraps the Obsidian CLI to give AI assistants direct access to read, edit, and manage notes within an Obsidian vault. It enables advanced operations such as frontmatter property management, context-aware searching, and the execution of internal Obsidian commands.2MIT
- AlicenseBqualityDmaintenanceLocal-first MCP server for Obsidian vaults with 66 tools for reading, writing, searching, and managing notes, tasks, graphs, and more. Works without Obsidian running and requires no plugins.66MIT
- AlicenseNot gradedqualityBmaintenanceMCP server for Obsidian that exposes tools for reading/writing notes, managing frontmatter and tags, querying Tasks, semantic search, and interacting with Obsidian Bases, with shared local caching and support for various runtime modes.40Apache 2.0