Obsidian MCP Server
Lets your AI agent read, write, search and edit notes, tags and frontmatter in your Obsidian vault.
702 stars on GitHubby cyanheadsLicense Apache-2.0Updated 23 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add obsidian -e OBSIDIAN_API_KEY="<your value>" -- npx -y obsidian-mcp-server
What to fill in
| Name | What it is | Required |
|---|---|---|
OBSIDIAN_API_KEY | Bearer token for the Obsidian Local REST API plugin (Settings β Community Plugins β Local REST API). | Yes |
OBSIDIAN_BASE_URL | Base URL of the Obsidian Local REST API. Default: http://127.0.0.1:27123 (enable "Non-encrypted (HTTP) Server" in plugin settings). Use https://127.0.0.1:27124 for the always-on HTTPS port (self-signed cert; pair with OBSIDIAN_VERIFY_SSL=false). | No |
OBSIDIAN_VERIFY_SSL | Whether to verify the TLS certificate on the Obsidian endpoint. Default false because the plugin uses a self-signed cert. | No |
OBSIDIAN_REQUEST_TIMEOUT_MS | Per-request timeout in milliseconds. | No |
OBSIDIAN_ENABLE_COMMANDS | Opt-in flag for the command-palette pair (obsidian_list_commands + obsidian_execute_command). Off by default β Obsidian commands are opaque and can be destructive. | No |
OBSIDIAN_READ_PATHS | Optional comma-separated vault-relative folder allowlist for reads. Prefix-based with implicit recursion; case-insensitive; backslashes read as slashes, repeated and trailing slashes and '.' segments dropped, and names normalized to Unicode NFC; an entry naming the vault root ('.') is rejected at startup. Unset = full vault. Write paths are implicitly readable. Example: 'public/,projects/'. | No |
OBSIDIAN_WRITE_PATHS | Optional comma-separated vault-relative folder allowlist for writes. Same syntax as OBSIDIAN_READ_PATHS. Unset = full vault, or the read scope when reads are restricted; paths in OBSIDIAN_DENY_PATHS stay denied. Example: 'projects/,scratch/'. | No |
OBSIDIAN_DENY_PATHS | Optional comma-separated vault-relative paths withheld from reads and writes. Same syntax as OBSIDIAN_READ_PATHS. Wins over both allowlists; denied paths are left out of listings, search results, and tag counts. Unset = nothing denied. Example: 'private/,journal/therapy/'. | No |
OBSIDIAN_READ_ONLY | Global read-only kill switch. When true, every write is denied regardless of OBSIDIAN_WRITE_PATHS, and the command-palette pair is suppressed (commands can mutate). Useful for shared or public-facing deployments. | No |
OBSIDIAN_DELETE_ELICITATION | Opt-in delete confirmation. When true, obsidian_delete_note asks the user to confirm each delete through an elicitation round (the client must support elicitation), and HTTP startup requires a stateful session unless OBSIDIAN_READ_ONLY=true disables the tool. Off by default β the delete runs on the first call, bounded by OBSIDIAN_WRITE_PATHS and OBSIDIAN_READ_ONLY. | No |
OBSIDIAN_OMNISEARCH_URL | Override URL for the Omnisearch plugin HTTP server. Unset derives from OBSIDIAN_BASE_URL host with port 51361. Required only if the Omnisearch plugin is not on the default port. | No |
MCP_LOG_LEVEL | Sets the minimum log level for output (e.g., 'debug', 'info', 'warn'). | No |
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Add today's action items under the Tasks heading of my daily note.
List my most used tags.
What it is
This server connects your agent to your Obsidian vault through the Local REST API plugin. The agent can read and search notes, create or edit them, change one heading, block or frontmatter field in place, and manage tags. You can limit which folders it can read or write.
What it can do
obsidian_get_note: read a noteobsidian_search_notes: search by text, JSONLogic or Omnisearchobsidian_write_note: create or replace a note or one sectionobsidian_append_to_noteandobsidian_patch_note: add content to a heading or fieldobsidian_replace_in_note: search and replace inside a noteobsidian_manage_frontmatterandobsidian_manage_tags: edit frontmatter and tagsobsidian_list_notesandobsidian_list_tags: browse the vault
When to use
- βΊWhen you want an agent to add meeting notes under the right heading.
- βΊWhen you want to tag or search many notes at once.
- βΊWhen you want a daily or periodic note updated.
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
obsidianHelps your agent read, search, create and edit notes in your Obsidian vault, including adding links between notes.cli-anything-obsidianLets your agent read, create, update, search, and append to notes in your Obsidian vault through the Local REST API plugin.obsidianHelps your agent read, search, create, edit and organize notes in your Obsidian vault, including tasks, links and properties.Frequently asked questions
Is it free and open source?
It has a license file in the repository and no price listed.
What plugin does it need?
The Obsidian Local REST API plugin.
Can I limit what it can touch?
Yes. OBSIDIAN_READ_PATHS, OBSIDIAN_WRITE_PATHS, OBSIDIAN_DENY_PATHS and OBSIDIAN_READ_ONLY set boundaries.
Can it delete notes?
Yes, and by default without confirmation. Set OBSIDIAN_DELETE_ELICITATION=true to require your confirmation.
Can it run Obsidian commands?
Only if you turn on OBSIDIAN_ENABLE_COMMANDS.
Which transports does it support?
STDIO or Streamable HTTP.
If it does not work
- βΊCheck that Obsidian is open and the Local REST API plugin is enabled.
- βΊCheck that OBSIDIAN_API_KEY matches the key in the plugin settings.
- βΊRead the obsidian://status resource to check plugin reachability and auth.
5 new skills a week. 1 minute to read.