obsidian-mcp
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., "@obsidian-mcplist all notes tagged 'urgent'"
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 wraps the official Obsidian CLI (obsidian, see
https://obsidian.md/help/cli) and exposes your vault as a set of tools that any
MCP client (Claude Desktop, Claude Code, etc.) can use.
Each tool translates its parameters into a call to the obsidian binary and
returns the result to the model. Because every operation goes through Obsidian's
internal API, wikilinks and the index stay up to date automatically — the
underlying filesystem is never touched directly.
Requirements
Obsidian running on the same machine as this server.
Obsidian CLI enabled: Settings → General → enable CLI support and follow the instructions to register it (this installs the
obsidiancommand on your PATH).Node.js 18+.
Check everything is ready with:
obsidian files totalIf that fails, make sure Obsidian is open and the CLI is enabled before continuing.
Related MCP server: obsidian-local-mcp
Installation
npm install
npm run buildThis compiles src/ into dist/. For development with automatic rebuilds:
npm run devTry it standalone (without an MCP client)
node scripts/smoke-test.mjsIt lists the registered tools and makes one real test call (obsidian_read) to
confirm the server talks to the CLI correctly.
Configure it in Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json
(on Windows: %APPDATA%\Claude\claude_desktop_config.json) and add the block
below, replacing /absolute/path/to/obsidian-mcp with the path where you cloned
this repo (pwd from inside the folder gives it to you):
{
"mcpServers": {
"obsidian": {
"command": "node",
"args": ["/absolute/path/to/obsidian-mcp/dist/index.js"]
}
}
}If
nodeisn't on the PATH your MCP client uses (this can happen on macOS), setcommandto the absolute path of your Node binary (find it withwhich node) instead of"node".
Restart Claude Desktop and the obsidian_* tools should appear.
Configure it in Claude Code
Register the server with the CLI (user scope makes it available in every
project; drop -s user to scope it to the current repo):
claude mcp add obsidian -s user "$(which node)" /absolute/path/to/obsidian-mcp/dist/index.jsCheck what
which nodereturns before using it: on some setups it resolves to an ephemeral/cached Node (e.g. under~/.cache/…) that may disappear. Prefer a stable absolute path (your nvm/Homebrew Node) as thecommand.
Verify it connected with claude mcp list (look for obsidian … ✔ Connected).
Because the tool list is loaded at startup, restart Claude Code once after
registering so the obsidian_* tools appear.
Environment variables
Variable | What it does | Default |
| Path/name of the binary if |
|
| Which vault to use when you have several open | (none) |
| Timeout per CLI call |
|
| If | (empty) |
Included tools
Escape hatch: obsidian_exec runs any CLI subcommand directly (files,
folders, links, orphans, unresolved, tags:rename, plugin:enable,
publish:list, sync:status, history, eval, dev:*, etc.) — it covers
everything without a dedicated tool.
Notes: obsidian_read, obsidian_create, obsidian_append,
obsidian_prepend, obsidian_move, obsidian_delete, obsidian_list_files,
obsidian_list_folders.
Search: obsidian_search (supports filters such as [tag:project],
[status:active], [priority:>3] inside the query).
Daily notes: obsidian_daily_read, obsidian_daily_append,
obsidian_daily_prepend.
Properties (frontmatter): obsidian_properties_get,
obsidian_properties_set, obsidian_properties_remove.
Tags and links: obsidian_tags, obsidian_backlinks, obsidian_links,
obsidian_orphans, obsidian_unresolved_links.
Tasks: obsidian_tasks_list, obsidian_task_create,
obsidian_task_complete.
Security note
obsidian_exec (and, within it, commands like eval or dev:*) can run
arbitrary JavaScript inside your Obsidian instance or inspect its UI. If you'd
rather expose only the curated set of tools above, start the server with
OBSIDIAN_MCP_DISABLE_EXEC=1.
A note on filenames
Obsidian Sync applies cross-platform (Windows/iOS) naming rules. Never put
: * ? " < > | / \ in a note's **filename** — a single one can send Obsidian
Sync into a loop. These characters are fine in the note **title** (frontmatter /
# H1), just not in the .md filename. When creating or renaming notes through
this server, sanitize filenames accordingly.
Project layout
src/
cli.ts -> helper that invokes the `obsidian` binary and parses its output
index.ts -> MCP server definition and all the tools
scripts/
smoke-test.mjs -> quick manual test without needing an MCP clientDisclaimer
This is an independent, community-built project. It is not affiliated with,
endorsed by, sponsored by, or associated with Obsidian, Obsidian.md, or Dynalist
Inc. in any way. "Obsidian" is a trademark of its respective owner; it is used
here only to describe interoperability. This software wraps the official Obsidian
CLI and is provided "as is", without warranty of any kind (see the license). You
are responsible for any changes it makes to your vault — back up your data and
review the security note above before enabling obsidian_exec.
License
MIT © fodaveg
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
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/fodaveg/obsidian-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server