Skip to content
Skillpedia
● Free and open sourceπŸ’» LocalπŸ”‘ Needs an API keyWork and productivity

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

NameWhat it isRequired
OBSIDIAN_API_KEYBearer token for the Obsidian Local REST API plugin (Settings β†’ Community Plugins β†’ Local REST API).Yes
OBSIDIAN_BASE_URLBase 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_SSLWhether to verify the TLS certificate on the Obsidian endpoint. Default false because the plugin uses a self-signed cert.No
OBSIDIAN_REQUEST_TIMEOUT_MSPer-request timeout in milliseconds.No
OBSIDIAN_ENABLE_COMMANDSOpt-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_PATHSOptional 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_PATHSOptional 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_PATHSOptional 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_ONLYGlobal 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_ELICITATIONOpt-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_URLOverride 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_LEVELSets 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 note
  • obsidian_search_notes: search by text, JSONLogic or Omnisearch
  • obsidian_write_note: create or replace a note or one section
  • obsidian_append_to_note and obsidian_patch_note: add content to a heading or field
  • obsidian_replace_in_note: search and replace inside a note
  • obsidian_manage_frontmatter and obsidian_manage_tags: edit frontmatter and tags
  • obsidian_list_notes and obsidian_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

Obsidian with the Local REST API plugin and its API key (OBSIDIAN_API_KEY). Run through npx or Docker.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

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.