obsidian-local-mcp
obsidian-local-mcp
A local MCP server that wraps the Obsidian CLI, giving AI assistants like Claude direct access to your Obsidian vault. Allows editing in the middle of docs.
Requirements
Obsidian desktop app installed (v1.8+ with CLI support)
Node.js 18+
macOS, Windows, or Linux
Setup
git clone https://github.com/MatthewSuazo/obsidian-local-mcp.git
cd obsidian-local-mcp
npm installClaude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"obsidian-cli": {
"command": "node",
"args": ["/path/to/obsidian-local-mcp/server.js"],
"env": {
"OBSIDIAN_VAULT": "Your Vault Name"
}
}
}
}Set OBSIDIAN_VAULT to the name of the vault you want to target. Set OBSIDIAN_CLI_PATH to override the Obsidian binary location if it's not in the default path for your OS.
Tools
Tool | Description |
| Read note contents by name or path |
| Append content to a note |
| Prepend content to a note |
| Create a new note (with optional template) |
| Move or rename a file |
| Delete a file (trash or permanent) |
| Search vault text with line context |
| Set a frontmatter property |
| Read a frontmatter property |
| Read today's daily note |
| Append to today's daily note |
| Find and replace text in a note (exact, regex, replace-all) |
| Context-aware search returning surrounding content |
| List files in the vault or a specific folder |
| List folders in the vault |
| Open a file in the Obsidian UI |
| Execute JavaScript inside the Obsidian runtime |
| Execute any registered Obsidian command by ID |
| Insert content after a matched string in a note |
License
MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/MatthewSuazo/obsidian-local-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server