mcp-obsidian
Provides tools for searching, reading, creating, updating, appending, deleting notes, listing directories, opening notes, and executing commands in an Obsidian vault via the Local REST API plugin.
Click on "Deploy 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., "@mcp-obsidian search my notes for MCP"
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.
mcp-obsidian
MCP server that connects Claude Desktop to Obsidian via the Local REST API plugin.
Overview
mcp-obsidian is a Node.js/TypeScript MCP server that exposes your Obsidian vault to Claude Desktop over stdio.
It talks to the Obsidian Local REST API plugin and provides tools for searching, reading, writing, and managing notes, plus running Obsidian commands.
Related MCP server: obsidian-mcp
Features (Available MCP Tools)
Based on src/index.ts, this server currently exposes:
search_notes- search notes using Obsidian query syntaxget_note- read full markdown content by vault-relative pathcreate_note- create a new note (overwriteoptional)update_note- replace full content of an existing noteappend_note- append or prepend content to a notedelete_note- delete a notelist_directory- list files/folders under a vault directoryopen_note- open a note in the Obsidian applist_commands- list available Obsidian command IDsexecute_command- execute an Obsidian command by IDget_active_note- get content of the active note in Obsidian
Requirements
Node.js 18+ (Node 20+ recommended)
Obsidian desktop app
Obsidian plugin: Local REST API installed and enabled
API key from the Local REST API plugin settings
Environment Variables
Required:
OBSIDIAN_BASE_URL(example:https://127.0.0.1:27124)OBSIDIAN_API_KEY(token/license key from plugin settings)
Optional (only if you use self-signed TLS cert from local plugin):
NODE_TLS_REJECT_UNAUTHORIZED=0
Security note: disable TLS verification only for local trusted use.
Installation & Build
npm install
npm run buildBuild output will be generated in dist/.
Claude Desktop Configuration
Use claude_desktop_config.example.json as reference.
Example:
{
"mcpServers": {
"obsidian": {
"command": "node",
"args": ["/absolute/path/to/mcp_obsidian/dist/index.js"],
"env": {
"OBSIDIAN_BASE_URL": "https://127.0.0.1:27124",
"OBSIDIAN_API_KEY": "YOUR_LOCAL_REST_API_KEY_HERE",
"NODE_TLS_REJECT_UNAUTHORIZED": "0"
}
}
}
}Adjust args to the absolute path on your machine.
Usage Examples
After Claude Desktop loads this MCP server, you can call tools like:
Search notes:
tool:
search_notesargs:
{"query":"tag:#project","context_length":120}
Read note:
tool:
get_noteargs:
{"path":"Projects/Plan.md"}
Create note:
tool:
create_noteargs:
{"path":"Journal/2026-08-17.md","content":"# Daily Log\\n- ...","overwrite":false}
Append note:
tool:
append_noteargs:
{"path":"Inbox.md","content":"\\n- New item","mode":"append"}
Run command:
tool:
execute_commandargs:
{"command_id":"app:go-home"}
Project Structure
.
├── src/
│ ├── index.ts # MCP server entrypoint, tool schema + handlers
│ └── obsidianApi.ts # Obsidian Local REST API client wrapper
├── claude_desktop_config.example.json
├── package.json
└── tsconfig.jsonObsidian Local REST API Plugin Note
This project depends on the Local REST API plugin endpoints (/vault, /search/simple, /commands, /active, /open).
If the plugin is not installed/enabled or API key/base URL is wrong, MCP tools will fail.
Available Tools
11 toolsappend_noteA
Append (or prepend) markdown content to an existing note without replacing it.
Inputs: path (required), content (required), mode.
create_noteA
Create a new note in the vault with markdown content. Refuses to overwrite an existing note unless overwrite=true.
Inputs: path (required), content (required), overwrite.
delete_noteA
Permanently delete a note from the vault.
Inputs: path (required).
execute_commandA
Execute an Obsidian command by its id (use list_commands first).
Inputs: command_id (required).
get_active_noteA
Get the markdown content of the currently active note in Obsidian.
Inputs: no named parameters.
get_noteA
Read the full markdown content of a note by its vault-relative path.
Inputs: path (required).
list_commandsA
List all available Obsidian commands that can be executed.
Inputs: no named parameters.
list_directoryA
List files and folders under a vault directory. Use directory='' or '/' for the vault root.
Inputs: directory.
open_noteA
Open a note in the Obsidian app window by its vault path.
Inputs: path (required).
search_notesB
Search notes in the Obsidian vault using Obsidian's search query syntax. Returns matching paths, scores, and snippets.
Inputs: query (required), context_length.
update_noteA
Replace the entire content of an existing note with new markdown content.
Inputs: path (required), content (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Each tool targets a distinct operation: search, read by path, read active note, create, replace, append, delete, list directory, open in UI, and command management. Even similar tools like get_note and get_active_note are clearly separated by how the note is selected.
All tool names consistently use lowercase snake_case with a verb_noun pattern (search_notes, get_note, create_note, list_commands, execute_command). There are no style deviations or ambiguous generic names.
11 tools is well-scoped for a note management server: it covers search, CRUD, directory listing, UI actions, and Obsidian command execution without bloat or redundancy.
The surface provides full lifecycle coverage for notes—create, read, update, append, delete—plus search, directory browsing, opening notes, and executing commands. No critical dead ends for typical Obsidian automation workflows.
Maintenance
Related MCP Connectors
Hosted MCP server for Obsidian Sync vaults: read, search, edit notes. Not affiliated with Obsidian.
Zotero MCP server for Claude and ChatGPT: search, citations, safe writes, PDF passages and pages.
Notes and memory assistant: one Markdown vault that Claude, ChatGPT and any MCP client can share.
Hosted Notion MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceA local MCP server that enables AI applications like Claude Desktop to securely access and work with Obsidian vaults, providing capabilities for reading notes, executing templates, and performing semantic searches.829MIT
- AlicenseNot gradedqualityDmaintenanceBidirectional MCP server that connects Claude with an Obsidian vault, enabling note management, full-text search, graph traversal, and daily notes operations.MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for interacting with Obsidian via the Local REST API, enabling file operations, search, and content editing in your vault.MIT
- AlicenseNot gradedqualityDmaintenanceMCP server to interact with Obsidian via the Local REST API community plugin, enabling file listing, search, content manipulation, and note management.MIT