obsidian-mcp-server
Provides tools for reading, writing, searching, and managing a local Obsidian vault, including daily notes, tags, frontmatter, backlinks, templates, and git-based sync.
Click on "Deploy 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., "@obsidian-mcp-server search my vault for references to 'project alpha'"
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.
obsidian-mcp-server
An MCP server that gives Claude direct access to your Obsidian vault — read, write, search, daily notes, tags, backlinks, frontmatter, and automatic git sync so your vault stays up to date across every device.
Tools
Tool | Description |
| Read a note by path |
| Create or overwrite a note (auto git push) |
| Append to a note (auto git push) |
| Delete a note (auto git push) |
| Move or rename a note (auto git push) |
| List all notes or a subdirectory |
| Full-text search with context |
| Fuzzy search notes by title |
| Tag index — all tags and the notes that use them |
| Find notes by frontmatter field (e.g. |
| Get or create today's daily note |
| Create a note from a template |
| Read or update YAML frontmatter |
| Outgoing wikilinks + incoming backlinks |
| Pull latest from git |
| Manually commit and push all changes |
Related MCP server: obsidian-mcp
Setup
Prerequisites
Node.js 18+
A GitHub account
Your Obsidian vault on your local machine
0. Set up your vault as a git repo
If your vault isn't already on GitHub, do this once:
cd "/path/to/your/Obsidian Vault"
git init
git branch -m main
git add -A
git commit -m "initial commit"Then create a repo on GitHub (private recommended) and link it:
gh repo create my-obsidian-vault --private --source=. --remote=origin --push
# or without the GitHub CLI:
git remote add origin https://github.com/yourusername/my-obsidian-vault.git
git push -u origin mainOn any other device, just clone it:
git clone https://github.com/yourusername/my-obsidian-vault.git "/path/to/vault"1. Clone and install
git clone https://github.com/aumsuthar/obsidian-mcp-server.git
cd obsidian-mcp-server
npm install
npm run build2. Configure environment
cp .env.example .envEdit .env and set OBSIDIAN_VAULT_PATH to the absolute path of your vault on this device:
OBSIDIAN_VAULT_PATH="/Users/you/Documents/My Vault"That's the only required variable. See .env.example for optional settings (daily notes format, auto-sync intervals, etc.).
3. Register with Claude
Add to ~/.mcp.json:
{
"mcpServers": {
"obsidian": {
"command": "node",
"args": [
"--env-file=/path/to/obsidian-mcp-server/.env",
"/path/to/obsidian-mcp-server/dist/index.js"
]
}
}
}Restart Claude Code or Claude Desktop to pick it up.
Cross-device sync
Your vault path is set per-device in .env — so on each machine you just clone the vault repo, clone this repo, set OBSIDIAN_VAULT_PATH in .env, and you're done. The vault content stays in sync via git.
Workflow:
On device A: Claude writes a note → auto-commits and pushes to GitHub
On device B: call
obsidian_pull(or setOBSIDIAN_AUTO_PULL_MINUTES) before reading
Auto-sync
Set these in .env to sync automatically in the background:
OBSIDIAN_AUTO_PUSH_MINUTES=5 # commit and push every 5 minutes if there are changes
OBSIDIAN_AUTO_PULL_MINUTES=5 # pull every 5 minutesDaily notes
obsidian_today creates a daily note in the Daily/ folder using the YYYY-MM-DD format by default.
To customize:
OBSIDIAN_DAILY_DIR="Journal"
OBSIDIAN_DAILY_FORMAT="YYYY/MM/YYYY-MM-DD"If a Templates/Daily.md exists in your vault, it will be used as the template. Supported variables: {{date}}, {{title}}.
Templates
Put .md files in your vault's Templates/ folder (configurable via OBSIDIAN_TEMPLATES_DIR). Call obsidian_template with the template name and any variables to substitute.
Example template Templates/Meeting.md:
---
date: {{date}}
type: meeting
---
# {{title}}
## Attendees
## Notes
## Action itemsDevelopment
npm run dev # run with tsx (no build needed, loads .env)
npm run build # compile to dist/Available Tools
16 toolsobsidian_appendA
Append content to an existing note. Creates the note if it doesn't exist. Auto-commits and pushes to git.
Inputs: path (required), content (required).
obsidian_deleteA
Delete a note from the vault. Auto-commits and pushes to git.
Inputs: path (required).
obsidian_findA
Fuzzy search for a note by title. Returns the best matching note paths. More natural than knowing exact paths.
Inputs: query (required), limit.
obsidian_frontmatterA
Read or update the YAML frontmatter of a note (tags, status, date, etc.).
Inputs: path (required), updates.
obsidian_linksA
Get all [[wikilinks]] in a note (outgoing) and all notes that link to it (incoming backlinks).
Inputs: path (required).
obsidian_listA
List all notes in the vault or a specific subdirectory.
Inputs: dir.
obsidian_moveA
Move or rename a note within the vault. Auto-commits and pushes to git.
Inputs: to (required), from (required).
obsidian_pullA
Pull the latest changes from git. Run this when switching devices or after editing notes elsewhere.
Inputs: no named parameters.
obsidian_pushA
Manually commit and push all vault changes to git.
Inputs: message.
obsidian_queryC
Find notes by frontmatter field values. E.g. find all notes where status = 'in-progress'.
Inputs: field (required), value (required).
obsidian_readA
Read a note from the Obsidian vault by path (e.g. 'School/Notes' or 'School/Notes.md').
Inputs: path (required).
obsidian_searchA
Search all notes for a text string. Short notes are returned in full; longer ones show surrounding context.
Inputs: query (required), context_lines.
obsidian_tagsA
List all tags in the vault and the notes that use them. Scans frontmatter 'tags:' fields and inline #hashtags.
Inputs: tag.
obsidian_templateC
Create a new note from a template in the Templates folder.
Inputs: path (required), template (required), vars.
obsidian_todayA
Get or create today's daily note. Creates it from a template if one exists in the Templates folder.
Inputs: date.
obsidian_writeA
Create or overwrite a note in the vault. Auto-commits and pushes to git.
Inputs: path (required), content (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 16 tools
Most tools target clearly distinct operations such as read, write, delete, move, append, and link analysis. Some confusion is possible among the retrieval tools (list, search, find, query) and note-creation tools (write, template, today), but the descriptions clarify their different purposes.
All tools follow the same obsidian_verb naming pattern with snake_case verbs. This makes the toolset predictable and easy to navigate.
16 tools is slightly above the ideal range, but each tool maps to a meaningful Obsidian workflow: editing, searching, linking, templates, frontmatter, and git sync. A couple of tools like pull and push are peripheral, but the count is still reasonable.
The toolset provides thorough coverage for Obsidian note management: read, write, append, delete, move, list, search, frontmatter editing, backlinks, tags, templates, daily notes, and git synchronization. There are no major dead ends for common note-taking workflows.
Maintenance
Related MCP Connectors
Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…
Search and reason over your Obsidian-style Markdown vault, right from ChatGPT.
Notes and memory assistant: one Markdown vault that Claude, ChatGPT and any MCP client can share.
Safe folder access for ChatGPT and Claude: read, write and search files, risky tools opt-in.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceEnables Claude to read, write, search, and manage Obsidian vault notes with Git-backed sync support for multi-device access and extensible AI workflows.4,244 npm-
- AlicenseAqualityCmaintenanceEnables Claude Code read/write access to an Obsidian vault, including creating, editing, searching, and browsing notes.81MIT
- AlicenseNot gradedqualityDmaintenanceEnables Claude Desktop to directly access and manage Obsidian vault files, supporting reading, writing, patching, searching, and file operations without requiring Obsidian to be open.ISC
- AlicenseNot gradedqualityCmaintenanceConnects Claude to a local Obsidian vault, enabling listing, reading, searching, and optionally editing notes via natural language, with all operations running locally.MIT