live-mcp-for-obsidian
Provides live automation and control of an Obsidian instance, including reading/writing notes, managing plugins, executing JavaScript, taking screenshots, and interacting with the UI.
Click on "Install 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., "@live-mcp-for-obsidianRead my daily note and summarize any tasks"
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.
live-mcp-for-obsidian
A live connection between AI assistants and your running Obsidian instance.
Disclaimer: This project is not created by, affiliated with, or endorsed by Obsidian or Dynalist Inc. "Obsidian" is a trademark of Dynalist Inc. This project uses Obsidian's native CLI interface for interoperability.
Most Obsidian MCP servers treat your vault as a folder of files — read, write, search. This one connects to the live application. It can read your notes, but it can also click buttons, manage plugins, take screenshots, execute JavaScript, inspect the DOM, emulate mobile, and control the full Obsidian UI. 43 tools, zero plugins required.
Demo
https://github.com/user-attachments/assets/297fb0d5-f089-45b5-8038-5de2cbc0f4b7
How is this different?
There are 20+ Obsidian MCP servers in the community. Nearly all of them do the same thing: expose vault files over HTTP or stdio so an AI can read and write markdown.
This server operates at a fundamentally different level:
File-based MCP servers | live-mcp-for-obsidian | |
Read/write notes | Yes | Yes |
Search vault | Yes | Yes |
Interact with plugins | No | Yes — enable, disable, reload, inspect |
Click UI elements | No | Yes — any button, menu, or control |
Take screenshots | No | Yes — full window or targeted element |
Execute JavaScript | No | Yes — full |
Inspect DOM/CSS | No | Yes — like Chrome DevTools |
Mobile emulation | No | Yes — test mobile layouts |
Console/error capture | No | Yes — live debugging |
Requires Obsidian plugins | Usually | No — uses native CLI |
It's the difference between a file server and full app automation.
Remote access
With SSH access to the machine running Obsidian, you get full remote control — every tool works over an SSH session. No HTTP server, no OAuth, no Cloudflare Tunnel, no Tailscale. Just SSH in, run Claude Code, and you have a live connection to your Obsidian instance from anywhere.
Requirements
Obsidian 1.12.4+ (with CLI support)
Node.js 18+
macOS (Linux/Windows: adjust the Obsidian binary path)
Install
Claude Code
claude mcp add obsidian-live -- npx live-mcp-for-obsidianWith a specific vault:
claude mcp add obsidian-live -- npx live-mcp-for-obsidian --vault "My Vault"This registers the server in your user-level config (~/.claude.json), making it available in every Claude Code session on your machine. To limit it to a single project, add --scope project which writes to .mcp.json in the current directory instead.
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"obsidian-live": {
"command": "npx",
"args": ["live-mcp-for-obsidian"]
}
}
}With a specific vault:
{
"mcpServers": {
"obsidian-live": {
"command": "npx",
"args": ["live-mcp-for-obsidian", "--vault", "My Vault"]
}
}
}From source
git clone https://github.com/gapmiss/live-mcp-for-obsidian.git
cd live-mcp-for-obsidian
npm install
npm run build
claude mcp add obsidian-live -- node ./build/cli.jsCLI Options
Flag | Default | Description |
|
| Path to Obsidian binary |
| Active vault | Target a specific vault by name |
What can it do?
Vault management
"What files are in my Projects folder?" "Create a new note called 'Meeting Notes' with a template" "Move all files from Inbox/ to Archive/" "Show me orphaned notes with no backlinks" "What are my incomplete tasks across the vault?"
Daily notes
"Read my daily note" "Append '- Called dentist to reschedule' to today's daily note" "What tasks are on today's daily note?"
Session briefing
"Give me a briefing"
One call to obsidian_briefing returns the active file, open tabs, daily note status, recent files, vault stats, and any persistent instructions from a CLAUDE.md file in your vault root. Instant situational awareness — no setup, no storage, ~300 tokens.
Live UI automation
"Click the p2p-share status bar item and select 'Pair with device'" "Toggle the theme mode button" "Open the command palette and run 'Graph view: Open local graph'"
The assistant can interact with any UI element via obsidian_eval — clicking buttons, opening menus, filling inputs, navigating the interface. Anything you can do with a mouse, the assistant can do programmatically.
Plugin development
"Reload my plugin so I can test the changes" "What commands does my plugin register?" "Take a screenshot of
.my-plugin-settingsso I can see how my settings tab looks" "Show me the console errors after I triggered that bug" "What CSS is applied to.my-plugin-container?" "Toggle mobile emulation so I can test the mobile layout"
Full Chrome DevTools capabilities — DOM inspection, CSS debugging, console/error capture, screenshots, and arbitrary JS evaluation — plus Obsidian-specific tools like plugin reload and command listing.
Screenshots
"Take a screenshot" "Screenshot just the
.workspace-leaf.mod-activeelement" "Take a jpeg screenshot at 80% quality" "Screenshot the sidebar:.workspace-split.mod-left-split"
obsidian_screenshot uses Chrome DevTools Protocol for capture, supporting full-window or element-targeted screenshots via CSS selector. Choose between png, jpeg, or webp output, and control compression quality for jpeg/webp. Element targeting finds the first visible match — useful in Obsidian where multiple hidden duplicates of a selector may exist.
Theme development
"What CSS variables does the current theme define for text colors?" "Inspect the computed styles on the sidebar" "Screenshot the
.workspace-leaf-content, then switch to dark mode and take another" "Show me the CSS source locations for.workspace-leaf"
Knowledge base queries
"List all tags sorted by frequency" "What properties does this note have?" "Show me the outline of my 'Architecture' note" "What notes link to 'Project Alpha'?" "Find all unresolved links in my vault"
Automation
"Execute the 'daily-notes:open' command" "Disable the 'calendar' plugin" "Set the 'status' property to 'done' on this note" "Enable the minimal theme"
The obsidian_command tool can trigger any registered command, and obsidian_eval can run arbitrary JavaScript for anything not covered by a dedicated tool.
Tools Reference
Status & Vaults
Tool | Description |
| Get Obsidian version, vault name, path, file/folder counts, and size |
| List all known vaults |
Workspace
Tool | Description |
| List all open tabs with their view type |
| Show the workspace tree layout |
| Open a file in Obsidian |
Files & Vault
Tool | Description |
| List files, optionally filtered by folder or extension |
| Read the contents of a file |
| Create a new file in the vault |
| Append content to a file |
| Prepend content to a file |
| Delete a file (moves to trash by default) |
| Move or rename a file |
| Search files, tags, properties, or links in the vault |
Notes & Metadata
Tool | Description |
| List properties in the vault or for a specific file |
| Set a property on a file |
| List tags in the vault or for a specific file |
| List outgoing links from a file |
| List backlinks to a file |
| Show headings for a file |
| List tasks in the vault or a specific file |
| Open or read the daily note |
| Append content to the daily note |
Plugins & Commands
Tool | Description |
| List installed plugins with enabled/disabled state |
| Get detailed info about a specific plugin |
| Enable a plugin |
| Disable a plugin |
| Reload a plugin (useful during development) |
| List available commands, optionally filtered by prefix |
| Execute an Obsidian command by ID |
Themes & Appearance
Tool | Description |
| Show active theme info or get details about a specific theme |
| List installed themes |
| List installed CSS snippets |
Developer Tools
Tool | Description |
| Execute JavaScript in Obsidian and return the result |
| Query DOM elements by CSS selector |
| Show captured console messages |
| Show captured errors |
| Take a screenshot of the full window or a specific element via CSS selector. Supports png/jpeg/webp output and quality control. |
| Inspect CSS with source locations for a selector |
| Run a Chrome DevTools Protocol command directly |
| Attach or detach the CDP debugger |
| Toggle mobile emulation on or off |
| Toggle Electron DevTools open/closed |
Memory
Tool | Description |
| Snapshot of current state: active file, tabs, daily note, recent files, vault stats, CLAUDE.md |
How It Works
This server is a thin MCP wrapper around Obsidian's native CLI. Each tool maps to one or more CLI commands:
obsidian_read { file: "My Note" }
→ obsidian read file="My Note"
obsidian_plugin_reload { id: "my-plugin" }
→ obsidian plugin:reload id=my-plugin
obsidian_dom { selector: ".workspace-leaf", text: true }
→ obsidian dev:dom selector=".workspace-leaf" text
obsidian_screenshot { selector: ".workspace-leaf", format: "jpeg", quality: 80 }
→ CDP Page.captureScreenshot with element clip regionNo network servers, no ports, no plugins to install. The CLI communicates with the running Obsidian instance directly.
Token usage
Every MCP tool call consumes tokens — the tool description, the input parameters, and the response all count. This server is designed to be lightweight: most responses are raw CLI output with no wrapper text, and write operations return single-word confirmations like "Created" or "Deleted" (1-4 tokens).
What a typical session looks like
Action | Tool calls | Typical tokens |
Session briefing | 1 ( | 100-400 |
Read a note | 1 ( | 50-2,000+ (depends on note length) |
Append to daily note | 1 ( | ~30 (input + "Appended to daily note") |
Take a screenshot | 1 ( | ~30 (returns only a file path) |
Enable a plugin | 1 ( | ~20 (returns "Enabled") |
List vault files | 1 ( | 50-5,000+ (depends on vault size) |
Most interactions are small. A "read my daily note and append a task" flow is ~3 tool calls and a few hundred tokens total. The expensive operations are the ones that return large, unbounded content.
Tools with large outputs
These tools can return substantial output depending on your vault size and content:
Tool | What drives size | How to reduce it |
| Number of files in vault | Use |
| Length of the note | No built-in limit — large notes return in full |
| Number of tasks vault-wide | Use |
| Number of installed plugins | Use |
| DOM complexity | Avoid |
| Whatever your code returns | Design your code to return only what you need |
| CLAUDE.md file size | Keep your vault's CLAUDE.md concise |
Built-in efficiency features
Several tools include parameters specifically for reducing output:
total: trueonobsidian_files,obsidian_links,obsidian_backlinks— returns only a count instead of the full listformatonobsidian_tags,obsidian_tasks,obsidian_properties,obsidian_plugins,obsidian_backlinks— choosetsvorcsvfor compact tabular output,jsonfor structured datafilteronobsidian_plugins(by type),obsidian_commands(by ID prefix) — narrow results before they're returneddone/todoonobsidian_tasks— get only completed or incomplete tasksactive/dailyonobsidian_tasks,obsidian_tags,obsidian_properties— scope to current file or daily note instead of full vaulttext: trueonobsidian_dom— return text content instead of raw HTMLlimitonobsidian_console— cap the number of console messages returned
Tips for keeping token usage low
Start with
obsidian_briefing— one call gives you active file, open tabs, daily note status, recent files, and vault stats. Much cheaper than calling each tool separately.Use filters on list tools —
obsidian_fileswithext=mdandfolder=Projectsis dramatically cheaper than listing the entire vault.Prefer
total: truewhen you only need a count — "how many markdown files?" costs ~20 tokens instead of listing thousands of paths.Scope tasks and tags to a file — vault-wide
obsidian_taskson a large vault can be expensive;obsidian_taskswithactive: trueis not.Use
text: truewithobsidian_dom— raw HTML is verbose; text content is usually what you need.Keep your vault's CLAUDE.md short —
obsidian_briefingincludes it in full. A few focused lines is better than a wall of text.
FAQ
Is this safe? This server runs locally and communicates only via stdio — there's no network exposure. Destructive tools like obsidian_delete require confirmation from your MCP client before executing. See SECURITY.md for the full trust model.
Why does it need obsidian_eval? Obsidian has 800+ API methods. 42 tools cover the common operations. Eval is the escape hatch for everything else — and it's what makes use cases like "click that button" or "check the graph view" possible.
What if I don't want the powerful tools? Your MCP client controls which tool calls are approved. Claude Code and Claude Desktop both show you the tool call and its arguments before executing. You can deny any call you're not comfortable with.
Security
This server executes commands against a running Obsidian instance. Tools like obsidian_eval and obsidian_cdp are powerful by design — they provide full JavaScript execution and DevTools access for app automation.
See SECURITY.md for the full trust model, input handling details, and security considerations.
Disclaimer
This project is not created by, affiliated with, or endorsed by Obsidian or Dynalist Inc. "Obsidian" is a trademark of Dynalist Inc. This project uses Obsidian's native CLI interface for interoperability purposes only.
License
MIT
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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/gapmiss/live-mcp-for-obsidian'
If you have feedback or need assistance with the MCP directory API, please join our Discord server