Obsidian MCP Server
Provides tools for listing vault contents, reading and writing Markdown notes with frontmatter, searching the vault, moving and deleting notes, and retrieving tags from an Obsidian vault through the Obsidian Local REST API.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Obsidian MCP Server
An MCP (Model Context Protocol) server that connects AI assistants like Claude to your Obsidian vault. Read, write, search, and organize your notes through natural conversation.
Built on the Obsidian Local REST API plugin.
Quick Start (5 minutes)
New to this? Follow these steps exactly and you'll be up and running. No coding experience needed.
Step 1: Install the Obsidian Plugin
Open Obsidian
Go to Settings (gear icon, bottom-left)
Click Community plugins in the left sidebar
Click Browse and search for "Local REST API"
Click Install, then Enable
Still in the plugin settings, find and copy your API key — you'll need it in Step 3
If you don't see Community plugins, you need to turn off Restricted mode first (there's a toggle at the top of the Community plugins page).
Step 2: Download and Install This Server
Open your terminal (on Mac: search for "Terminal" in Spotlight) and run:
git clone https://github.com/amjad1233/obsidian-mcp-server.git
cd obsidian-mcp-server
npm installDon't have Node.js? Download it from nodejs.org (pick the LTS version). Don't have git? Download from git-scm.com.
Step 3: Connect to Claude
Pick one of these depending on what you use:
Find your config file:
Mac:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Open it in any text editor and add the
obsidianblock insidemcpServers. If the file is empty or doesn't exist, paste this whole thing:
{
"mcpServers": {
"obsidian": {
"command": "node",
"args": ["/full/path/to/obsidian-mcp-server/mcp-server.js"],
"env": {
"OBSIDIAN_API_KEY": "paste-your-api-key-here"
}
}
}
}Replace
/full/path/to/with where you cloned the repo (e.g.,/Users/yourname/obsidian-mcp-server/mcp-server.js)Replace
paste-your-api-key-herewith the API key from Step 1Restart Claude Desktop
Create or edit
~/.mcp.json:
{
"mcpServers": {
"obsidian": {
"command": "node",
"args": ["/full/path/to/obsidian-mcp-server/mcp-server.js"],
"env": {
"OBSIDIAN_API_KEY": "paste-your-api-key-here"
}
}
}
}(Optional) Auto-allow all tools so you don't get prompted each time. Add to
~/.claude/settings.jsonunderpermissions.allow:
"mcp__obsidian__obsidian_list_vault",
"mcp__obsidian__obsidian_read_note",
"mcp__obsidian__obsidian_create_note",
"mcp__obsidian__obsidian_update_note",
"mcp__obsidian__obsidian_search_vault",
"mcp__obsidian__obsidian_move_note",
"mcp__obsidian__obsidian_delete_note",
"mcp__obsidian__obsidian_get_tags"Start a new Claude Code session
Step 4: Test It
Make sure Obsidian is open, then ask Claude:
"List all files in my Obsidian vault"
If you see your files, you're done!
Related MCP server: Obsidian MCP Server
Deployment Checklist
Use this every time you set up the server on a new machine:
Node.js 18+ installed (
node --version)Obsidian installed and open
Local REST API plugin installed and enabled in Obsidian
API key copied from plugin settings
Repo cloned and
npm installrunConfig file updated (Claude Desktop or Claude Code)
Path to
mcp-server.jsis correct and absoluteAPI key is pasted (not the placeholder)
Claude restarted (Desktop: quit and reopen / Code: new session)
Obsidian is running when you try to use the tools
Test: ask Claude to list your vault
Features
Tool | Description |
| List all files and folders in the vault (or a subfolder) |
| Read a note's full markdown content and frontmatter |
| Create a new note with auto-generated frontmatter |
| Overwrite or append to an existing note |
| Full-text search across the vault with context excerpts |
| Move a note from one path to another |
| Soft-delete (trash) or permanently delete a note |
| Get all tags used across the vault with counts |
Configuration
The server is configured entirely through environment variables — no secrets in code.
Variable | Required | Default | Description |
| Yes | — | API key from the Local REST API plugin |
| No |
| Host where Obsidian REST API is running |
| No |
| Port for the REST API |
Usage Examples
Once configured, you can ask Claude things like:
"List everything in my Inbox folder"
"Read my meeting notes from today"
"Create a new note in Projects/Website Redesign with these requirements..."
"Search my vault for anything about quarterly planning"
"Move that inbox note to my Projects folder"
"What tags am I using across my vault?"
"Append today's standup notes to my running log"
How It Works
Claude <-> MCP Protocol (stdio) <-> This Server <-> Obsidian Local REST API <-> Your VaultThe server communicates with Claude over stdio using the MCP protocol, and translates tool calls into HTTP requests against the Obsidian Local REST API running on localhost. All note paths are relative to your vault root.
Troubleshooting
Problem | Solution |
"Cannot connect to Obsidian REST API" | Make sure Obsidian is open and the Local REST API plugin is enabled |
"OBSIDIAN_API_KEY environment variable is not set" | Check your config file — the API key is missing or empty |
Tools not showing up in Claude | Restart Claude Desktop / start a new Claude Code session |
"Note already exists" | Use |
"Path traversal is not allowed" | Don't use |
Server won't start | Run |
Wrong Node.js version | Run |
Notes
Obsidian must be running with the Local REST API plugin active for the server to work
All file paths are relative to the vault root (e.g.,
Folder/Subfolder/Note.md)obsidian_create_noteauto-generates YAML frontmatter withcreatedtimestamp andtagsobsidian_delete_notemoves to trash by default — passpermanent: truefor hard deleteobsidian_get_tagsscans up to 5,000 markdown files; very large vaults may see partial results
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…
Search your Obsidian vault to quickly find notes by title or keyword, summarize related content, a…
Search and reason over your Obsidian-style Markdown vault, right from ChatGPT.
Connect an AI assistant to a Capacities space (objects, daily notes, search).
Related MCP Servers
- AlicenseAqualityDmaintenanceConnects to Obsidian vaults via the Local REST API plugin, enabling AI-assisted Zettelkasten workflows including creating atomic notes, searching content, managing links and tags, and performing precise content editing operations.13MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage Obsidian notes via local REST API, supporting file CRUD, search, commands, and periodic notes.7MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to search, read, and analyze Obsidian notes via the Local REST API.17ISC
- AlicenseAqualityDmaintenanceEnables AI assistants to read, write, and manage Obsidian notes, folders, and periodic notes via the Local REST API, including search and command execution.14MIT