Obsidian MCP Server
Published · Updated
At a glance
- Category
- Productivity & docs
- GitHub repository
- MarkusPfundstein/mcp-obsidian
- Watch out for
- Obsidian must be running with the Local REST API plugin enabled.
mcp-obsidian by Markus Pfundstein is a community MCP server for Obsidian, the Markdown note-taking app. An earlier version of this page had the author's username wrong; the project lives at MarkusPfundstein/mcp-obsidian and is published on PyPI as mcp-obsidian.
It does not read your vault files directly. Instead it talks to Obsidian through the Local REST API community plugin, which runs inside Obsidian and exposes your vault over a local HTTPS API protected by an API key. That design has two consequences worth knowing: Obsidian has to be open for the server to work, and the plugin's API key is what controls access.
The tools cover the usual note work. The assistant can list files in the vault or a folder, read a note, search across the vault, append content to a new or existing note, insert content relative to a heading, block reference or frontmatter field with patch_content, and delete files or folders. patch_content is the most useful for an assistant, because it can add a task under the right heading in a daily note without rewriting the whole file. The same Local REST API approach means changes appear in Obsidian immediately, and sync tools such as Obsidian Sync pick them up as normal.
How it connects
Your AI app
An assistant or agent that supports MCP
Obsidian MCP Server
Runs as
- Python (uv / pip)
- Docker
Gives the agent
- Browsing
- Reading and search
- Targeted edits
- Appending
- Deleting
Obsidian
Signs in with
- API key
What it can do
- Browsing
- list_files_in_vault and list_files_in_dir show the vault's structure.
- Reading and search
- get_file_contents reads a note, and search finds notes matching a text query across the vault.
- Targeted edits
- patch_content inserts content relative to a heading, block reference or frontmatter field.
- Appending
- append_content adds content to a new or existing note.
- Deleting
- delete_file removes a file or folder from the vault.
Setting it up
In Obsidian, install and enable the Local REST API community plugin and copy its API key from the plugin settings. Then add a server that runs uvx mcp-obsidian with OBSIDIAN_API_KEY in its environment, and OBSIDIAN_HOST or OBSIDIAN_PORT if Obsidian is not on the defaults, 127.0.0.1 and port 27124. A Docker option is also documented. Keep Obsidian open while you use it. If you only want the assistant to read, there is no read-only switch, so be careful with delete_file: back up or version your vault, for example with Git.
claude mcp add obsidian -- uvx mcp-obsidianRuns the mcp-obsidian package from PyPI. Add any API keys, environment variables or extra arguments the setup notes above list. Combine several servers in the MCP config generator
Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)
Where it helps
- Summarising notes on a topic across the vault
- Adding tasks or ideas under the right heading in the current daily note
- Finding notes that mention a project or person
- Drafting a new note from a conversation and saving it to the vault
Limitations and things to watch
- Obsidian must be running with the Local REST API plugin enabled.
- delete_file can remove notes and folders; there is no read-only mode.
- Search is text-based, not semantic.
- A community project relying on a community plugin, not an official Obsidian product.
Sources
Written from the project's own documentation, checked November 2026.
- github.com /MarkusPfundstein/mcp-obsidian
- github.com /coddingtonbear/obsidian-local-rest-api
- pypi.org /project/mcp-obsidian
How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.