obsidian-mcp-server MCP server
Read, write, search, and surgically edit Obsidian vault notes, tags, and frontmatter via MCP. STDIO or Streamable HTTP.
What obsidian-mcp-server does
Summarised from the project README; check the repository for the latest details.
Features
- Typed client for the Obsidian Local REST API plugin; section writes speak markdown-patch 2.0 to plugin v5.0 and later and 1.x to v4.x, chosen from the reported plugin version
- Folder-scoped read/write permissions, a read-only switch, and an opt-in command-palette pair (see Path policy); server-level `instructions` on `initialize` report the active policy
- Regex inputs are capped (`nameRegex` at 256 chars, `useRegex` at 1024) and rejected with `regexunsafe` when they nest quantifiers
- Recovery-guided errors: every declared failure carries a `reason`, a JSON-RPC code, and a `recovery.hint` written for that case
- Size deltas: every mutating tool returns `previousSizeInBytes` / `currentSizeInBytes`, so a caller can spot an accidental clobber without a follow-up read
- Ambiguity surfaced as data: shared heading names return `candidates`, and tag operations report `applied` vs. `skipped`
Tools exposed (14)
obsidian_get_note– Read a note as raw content, full structured form, document map, or a single sectionobsidian_list_notes– List notes and folders under a vault path, recursively, with extension and name filtersobsidian_list_tags– List vault tags with usage counts, most-used firstobsidian_search_notes– Search by text, JSONLogic, or BM25-ranked Omnisearch when that plugin is reachableobsidian_write_note– Create a note, replace one section, or overwrite a whole file with `overwrite: true`obsidian_append_to_note– Append to a note (creating it if missing) or to one heading, block, or frontmatter fieldobsidian_patch_note– Append, prepend, or replace against one heading, block reference, or frontmatter fieldobsidian_replace_in_note– Literal or regex search-replace inside one note, body-only by defaultobsidian_manage_frontmatter– Get, set, or delete one frontmatter keyobsidian_manage_tags– Add, remove, or list a note's tags in frontmatter, inline, or bothobsidian_delete_note– Permanently delete a note, optionally after the user confirms (`OBSIDIANDELETEELICITATION`)obsidian_open_in_ui– Open a file in the Obsidian app, optionally in a new paneobsidian_list_commands– List command-palette commands (opt-in via `OBSIDIANENABLECOMMANDS`)obsidian_execute_command– Run a command-palette command by ID (opt-in via `OBSIDIANENABLECOMMANDS`)
Requirements
- Bun v1.4.0 or higher (or Node.js v24+).
- The Obsidian Local REST API plugin, v4.0.0 or later, enabled in your vault. Generate an API key under Settings → Community Plugins → Local REST API and set it as `OBSIDIANAPIKEY`.
- Periodic-note targets work natively on plugin v5.0.1 and earlier. From v5.0.2 they need the periodic-notes API extension; without it they fail with `periodicunsupported`.
- With `OBSIDIANDELETEELICITATION=true`, an MCP client that supports elicitation and renders its form, to use `obsidiandeletenote`. Every other tool, and the default delete, works without it.
- Environment variables: OBSIDIAN_API_KEY
Repository: cyanheads/obsidian-mcp-server
Website: https://www.npmjs.com/package/obsidian-mcp-server
Stars: ★695
Language: TypeScript
Last updated: 2026-10-06
ai-agentsai-toolsbuncyanheadsknowledge-basemcpmcp-servermodel-context-protocolnote-takingobsidianobsidian-mdobsidian-vaultpkmstdiostreamable-httptypescript
Website: https://www.npmjs.com/package/obsidian-mcp-server
Stars: ★695
Language: TypeScript
Last updated: 2026-10-06
ai-agentsai-toolsbuncyanheadsknowledge-basemcpmcp-servermodel-context-protocolnote-takingobsidianobsidian-mdobsidian-vaultpkmstdiostreamable-httptypescript
How to install obsidian-mcp-server MCP in Claude Desktop, Cursor and VS Code
Install
Taken from the project README (README mcpServers JSON). Check the README for required API keys before use.
Claude Code
Terminal (claude CLI)
claude mcp add --env MCP_TRANSPORT_TYPE=stdio --env MCP_LOG_LEVEL=info --env OBSIDIAN_API_KEY=your-local-rest-api-key --transport stdio obsidian-mcp-server -- bunx obsidian-mcp-server@latestClaude Desktop
claude_desktop_config.json
{
"mcpServers": {
"obsidian-mcp-server": {
"type": "stdio",
"command": "bunx",
"args": [
"obsidian-mcp-server@latest"
],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info",
"OBSIDIAN_API_KEY": "your-local-rest-api-key"
}
}
}
}Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"obsidian-mcp-server": {
"type": "stdio",
"command": "bunx",
"args": [
"obsidian-mcp-server@latest"
],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info",
"OBSIDIAN_API_KEY": "your-local-rest-api-key"
}
}
}
}VS Code
.vscode/mcp.json
{
"servers": {
"obsidian-mcp-server": {
"type": "stdio",
"command": "bunx",
"args": [
"obsidian-mcp-server@latest"
],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info",
"OBSIDIAN_API_KEY": "your-local-rest-api-key"
}
}
}
}Add to config generator – combine it with other servers, or get the Windsurf format.
Featured in: Best MCP servers for Obsidian
Maintain this project? Get it featured for free during launch →
Related Memory & Knowledge MCP servers
ruflo by ruvnet · ★74702
🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems.
Memory & Knowledge
🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems.
Memory & Knowledge
context-mode by mksglu · ★29252
Context window optimization for AI coding agents. Sandboxes tool output (98% reduction), persists session memory, and enforces routing acr
Memory & Knowledge
Context window optimization for AI coding agents. Sandboxes tool output (98% reduction), persists session memory, and enforces routing acr
Memory & Knowledge
Trail-Code by trailhq · ★10034
Turbocharge Claude Code, Cursor, Codex, Gemini & every coding agent: faster, cheaper, with contextual understanding specific to your codebas
Memory & Knowledge
Turbocharge Claude Code, Cursor, Codex, Gemini & every coding agent: faster, cheaper, with contextual understanding specific to your codebas
Memory & Knowledge
osaurus by osaurus-ai · ★8048
Own your AI. The native macOS harness for AI agents -- any model, persistent memory, autonomous execution, cryptographic identity. Built in
Memory & Knowledge
Own your AI. The native macOS harness for AI agents -- any model, persistent memory, autonomous execution, cryptographic identity. Built in
Memory & Knowledge
semble by MinishLab · ★6209
Fast and Accurate Code Search for Agents. Uses 99% fewer tokens than grep+read
Memory & Knowledge
Fast and Accurate Code Search for Agents. Uses 99% fewer tokens than grep+read
Memory & Knowledge
cortex by cortex-docs · ★3248
Cortex - Generates interactive API documentation, typed SDKs, and MCP servers from OpenAPI, AsyncAPI, GraphQL, gRPC, OpenRPC, and Markdown.
Memory & Knowledge
Cortex - Generates interactive API documentation, typed SDKs, and MCP servers from OpenAPI, AsyncAPI, GraphQL, gRPC, OpenRPC, and Markdown.
Memory & Knowledge
Weekly MCP digest – new and trending MCP servers in your inbox.