obsidian-mcp
Provides tools for managing notes within an Obsidian vault, organized by project, including creating, reading, appending, listing, and searching notes.
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 Write a note in this project called "Meeting notes" with today's action items."
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
An MCP server that gives Claude a per-project notes folder inside one local Obsidian vault.
Each project gets its own subfolder under <vault>/Projects/<project-slug>/. There is still a
single vault, so cross-project links and the graph view keep working — you never have to switch
vaults in Obsidian.
Tools
Tool | What it does |
| Report which project folder notes will go to, and how that was decided. |
| Create a note. Refuses to clobber an existing one unless |
| Read a note's full contents. |
| Append to the end of a note, creating it if absent. |
| List notes in the project, or across the whole vault with |
| Case-insensitive text search returning |
Every tool takes an optional project argument that overrides inference.
Related MCP server: mcp-obsidian-vault
How the project is chosen
An explicit
projectargument, if given.Otherwise, walk up from the server's working directory to the nearest
.gitand use that directory's name — so a call made from~/Developer/Projects/foo/src/libstill resolves tofoo.Otherwise, use the working directory's own name.
Names are slugified: Job Search becomes job-search.
If inference lands on a container directory (Developer, Projects, src, $HOME, …) the
server refuses to guess and asks for an explicit project. That is the intended behavior, not a
bug — guessing there would scatter notes into a folder named after nothing in particular.
In Claude Desktop, always pass project explicitly. Desktop spawns MCP servers with an
arbitrary working directory, so there is nothing meaningful to infer from. Claude Code inherits
its own working directory, so inference works there.
Configuration
Variable | Default |
|
|
|
|
The vault itself must already exist — the server will not create one, since a bare directory is not a vault. Project subfolders are created on first write.
Development
npm install
npm run build
npm testnpm test runs unit tests for path handling and project resolution, plus an end-to-end suite
that speaks real JSON-RPC to the built server over stdio against a temporary vault.
Registration
Claude Code (user scope, so it applies to every project):
claude mcp add --scope user obsidian -- node /path/to/obsidian-mcp/dist/index.jsClaude Desktop — in ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"obsidian": {
"command": "node",
"args": ["/path/to/obsidian-mcp/dist/index.js"]
}
}
}Rebuild after changing src/; both clients run dist/.
macOS folder protection
A vault under ~/Documents (also ~/Desktop, ~/Downloads) sits in a TCC-protected
location. A sandboxed host can end up able to write into folders it created while still
being denied a listing of the vault root — which breaks scope: "vault" for
list_notes and search_notes while everything project-scoped works fine.
The server raises Permission denied reading … rather than reporting an empty vault, so
this is visible instead of silent. Two ways out:
Grant Full Disk Access to whatever runs the server (System Settings → Privacy & Security → Full Disk Access).
Or move the vault somewhere unprotected and set
OBSIDIAN_VAULT_PATH, e.g.~/Vaults/main.
Safety
Note names are resolved and checked against the project folder, so ../../etc/passwd and
absolute paths are rejected rather than written. Writes never leave <vault>/Projects/<slug>/.
Available Tools
6 toolsappend_noteAppend to noteA
Append markdown to the end of a note, creating it if absent. Use this for running logs instead of rewriting the whole note.
Inputs: note (required), content (required), project.
list_notesList notesB
List note paths in the project's folder, or across the whole vault.
Inputs: scope, project.
read_noteRead noteA
Read a note's full contents from the project's vault folder.
Inputs: note (required), project.
resolve_projectResolve projectA
Report which project folder notes will go to, and how that was decided. Use this to check the inference before writing.
Inputs: project.
search_notesSearch notesA
Case-insensitive text search over note contents, returning matching lines with their note path and line number.
Inputs: query (required), limit, scope, project.
write_noteWrite noteA
Create a note in the project's vault folder. Refuses to clobber an existing note unless overwrite is true. Creates the project folder on first write.
Inputs: note (required), content (required), project, overwrite.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool serves a clearly distinct purpose: resolving project routing, writing, reading, appending, listing, and searching notes. Even write_note and append_note are well differentiated by their overwrite and append semantics.
All tool names follow a consistent verb_noun snake_case pattern: resolve_project, write_note, read_note, append_note, list_notes, search_notes. This makes the API predictable and easy to navigate.
Six tools is a well-scoped set for an Obsidian note management server. Each tool covers a distinct operation without redundancy or bloat.
The core note lifecycle is well covered: create/write, read, append, list, and search. Missing delete, move, or rename operations are noticeable gaps, but agents can still accomplish most note workflows.
Maintenance
Related MCP Connectors
Project memory, documentation and controlled secret access for AI coding agents.
Markdown notes and whiteboards your AI agent can read and write.
Markdown notes in folders, with files, that your AI assistant can read, write and organise.
Markdown notes in folders, with files, that your AI assistant can read, write and organise.
Related MCP Servers
- AlicenseAqualityAmaintenanceStandalone MCP server for Obsidian vaults - hybrid search (FTS5 + vector + cross-encoder reranking), images and PDFs in agent-readable form, Kanban-aware tasks (Tasks-plugin + Dataview formats), structured memory with topic recall, fine-grained read/write tools for optimal token efficiency, and link graph support. Run locally, self-host, or one-click deploy for remote access. OAuth 2.1.163338MIT
- AlicenseAqualityDmaintenanceProvides AI agents with direct filesystem access to an Obsidian vault for note management, task orchestration, context persistence, and git synchronization.2750 npm3MIT
- AlicenseAqualityBmaintenanceEnables AI assistants to read and write to a personal knowledge vault of markdown notes, projects, and tasks, with tooling for search, capture, daily logs, and project management across different AI tools.24268 npm1MIT
- AlicenseAqualityDmaintenanceEnables AI agents to store and retrieve project context, bugs, decisions, and session logs by reading and appending markdown files in a local Obsidian vault, without requiring any cloud services.6MIT