istefox1k downloadsConnect MCP-compatible clients (Claude Desktop, Claude Code, Cline) to your vault with semantic search, templates, file management and gated command execution.
Features | Installation | Quick setup for clients | Migration from 0.3.x | Prompts | Command execution | Troubleshooting | Security | Development | Support
MCP Connector lets AI applications like Claude Desktop, Claude Code, Cursor, Cline, Continue, Windsurf, and VS Code securely access and work with your Obsidian vault through the Model Context Protocol. [^2]
Starting with 0.4.0, the plugin hosts the MCP server in-process inside Obsidian and exposes Streamable HTTP on 127.0.0.1:27200. There is no native binary shipped from this repository — eliminating the supply-chain risk that comes with downloading and executing a platform-specific executable from GitHub Releases.
npx mcp-remote bridge — a two-line config the plugin generates for you.Xenova/all-MiniLM-L6-v2 (~25 MB, downloaded once and cached). No cloud, no Smart Connections requirement.search_vault tool (Dataview DQL / JsonLogic queries) needs it, and that tool returns an actionable error if it isn't installed. The other 29 tools work without it. [^4]When connected to an MCP-compatible client, this plugin enables:
get_vault_file, create_vault_file, patch_vault_file, rename_vault_file, rename_heading, list_vault_files, create_vault_directory, delete_vault_directory, …) with native binary content for images and audio. Missing parent directories on a create/append path are auto-created. rename_vault_file preserves link integrity across the vault via app.fileManager.renameFile; rename_heading renames a heading in place and rewrites every wikilink / markdown link / subheading-path reference pointing at it across the vault.search_vault_smart over an on-device MiniLM index, with optional fallback to Smart Connections if it is installed. Provider tri-state setting (auto / native / smart-connections) under the plugin settings.search_vault_simple (text + context windows) and search_vault (DQL / JsonLogic via Local REST API).Prompts/ folder, with parameters defined inline via Templater syntax. See Using prompts below.editor:toggle-bold, graph:open) from a per-vault allowlist. Disabled by default; every invocation is audited. See Command execution below.fetch tool retrieves arbitrary URLs and returns Markdown via Turndown, with pagination for long pages.list_tags returns every tag in the vault with its usage count, sourced from app.metadataCache.getTags(). Inline #tags and frontmatter tags both included; no plugin dependency.get_files_by_tag returns every file tagged with a given tag, with per-file occurrence count for relevance ranking. Optional includeNested to match #project against #project/active, #project/archived, etc. (mirrors Obsidian's tag pane).get_recent_files returns the most recently modified markdown files in the vault (ordered by mtime desc, with ctime and size per entry), honouring Obsidian's Files & Links → Excluded files configuration. Optional limit (1–100, default 20, fail-loud on out-of-range). Useful for agent-recency context without screen-scraping a file picker.get_vault_file_partial returns one of four slices of a file without loading the whole body: a single frontmatter field, the markdown section under a heading (nested paths via targetDelimiter, default "::"), the markdown range of a block reference, or a structured document-map outline (heading list + block-id list + frontmatter-field list, zero file I/O). Useful for context-window economics on large notes — spot-check a frontmatter field or grab a single section without paying for the full read.get_outgoing_links returns the body, embed, and frontmatter links emanating from a file (with resolved targetPath and resolved flag); get_backlinks returns every file that links to a given target, with per-source count. Both read-only, both backed by app.metadataCache.resolvedLinks / getFirstLinkpathDest.30 MCP tools in total. Full list in the plugin's settings → Tools available section.
npx mcp-remote bridge. The plugin auto-detects your Node install (including Homebrew on macOS) and offers a one-click install if missing.execute_template tool.search_vault tool (DQL / JsonLogic queries). All other tools work without it. [^4]MCP Connector is available in the Obsidian community plugin store and via BRAT — use either.
Prefer the latest build, or the store entry hasn't propagated to your client yet? Install via BRAT:
istefox/obsidian-mcp-connector.That's it. No binary to install, no separate download. The MCP server starts as soon as you enable the plugin.
The plugin settings expose three Copy config buttons — one per supported client family. Each button copies a ready-to-paste JSON snippet to the clipboard.
Claude Desktop only speaks stdio MCP, so it reaches the in-process server through the official mcp-remote bridge (Anthropic-maintained, no third-party code in the auth path).
{
"mcpServers": {
"obsidian-mcp-connector": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"http://127.0.0.1:27200/mcp",
"--header",
"Authorization: Bearer YOUR_TOKEN"
]
}
}
}
claude_desktop_config.json (Claude Desktop → Settings → Developer → Edit Config).Or tick Auto-write Claude Desktop config in the plugin settings — the plugin keeps the file in sync on token rotation, with a .backup written before each rewrite.
Claude Code speaks HTTP transport natively. Click Copy config for Claude Code and paste into ~/.claude.json (project scope) or ~/.claude/settings.json (global scope):
{
"mcpServers": {
"obsidian-mcp-connector": {
"type": "http",
"url": "http://127.0.0.1:27200/mcp",
"headers": {
"Authorization": "Bearer YOUR_TOKEN"
}
}
}
}
Or use claude mcp add from the CLI with the same fields.
Click Copy config for streamable-http clients. The snippet uses the generic streamable-http payload shape these clients accept; consult each client's own docs for the exact config-file location and any wrapping keys.
Once configured, your client should expose 30 MCP tools from this server, plus any prompts you have tagged with #mcp-tools-prompt in a Prompts/ folder at your vault root.
To verify the connection works end-to-end, ask the agent to call get_server_info. A successful response confirms the client can reach the in-process server and the bearer token is correct. For deeper inspection (request/response logs, tool schema inspection without an LLM in the loop), use @modelcontextprotocol/inspector:
npx -y @modelcontextprotocol/inspector
# point it at http://127.0.0.1:27200/mcp with your bearer token
If you are upgrading from 0.3.x (the binary-shipping line), the first plugin load on 0.4.0 detects your existing state and opens a migration modal with up to three opt-in steps:
claude_desktop_config.json with the mcp-remote bridge config. A .backup file is written before the rewrite. The legacy plugin config key (if present from 0.3.x) is removed at the same time.mcp-server binary at the previous install location (~/Library/Application Support/obsidian-mcp-tools/bin/, ~/.local/share/obsidian-mcp-tools/bin/, or %APPDATA%\obsidian-mcp-tools\bin\).installLocation and platformOverride keys in the plugin's data.json are no longer used in 0.4.0.Each step is independent — a failure in one does not skip the others. The modal can be dismissed without action, and migration.skippedAt is persisted so it does not re-open on every plugin load.
If you skip the migration, the plugin still works — but you'll have an orphan binary on disk and a stale Claude Desktop config entry pointing at it.
After the migration modal completes step 2 (or after you remove the binary by hand), confirm that nothing lingers at the previous install location:
# macOS
ls ~/Library/Application\ Support/obsidian-mcp-tools/bin/mcp-server
# Linux
ls ~/.local/share/obsidian-mcp-tools/bin/mcp-server
# Windows (PowerShell)
Test-Path "$env:APPDATA\obsidian-mcp-tools\bin\mcp-server.exe"
A clean migration returns No such file or directory (macOS / Linux) or False (Windows). If the binary is still present, the modal's step 2 was either skipped, dismissed, or failed silently — remove the file manually and restart your MCP client (Claude Desktop, Cowork, Cursor, …) so it reconnects through the in-process HTTP transport instead of the legacy stdio path.
If you dismissed the modal accidentally, you can re-open the migration check from Settings → MCP Tools → Migration from 0.3.x → Re-run migration check.
The plugin lets you author MCP prompts as plain markdown files in your vault. Your prompt library lives alongside your notes, in a folder called Prompts/ at the root of the vault. Every MCP-compatible client (Claude Desktop, Claude Code, Cursor, Cline, Continue, …) will surface these prompts in its own UI — typically as slash commands or attachments.
Prompts (capital P) at the root of your vault.Create a new folder called Prompts at the root of your vault (if it doesn't exist already).
Create a new markdown note inside it, e.g. Prompts/weekly-review.md.
Add frontmatter with the mcp-tools-prompt tag and a short description:
---
tags:
- mcp-tools-prompt
description: Summarize my recent daily notes on a given topic
---
Summarize my notes from the past **<% tp.mcpTools.prompt("days", "How many days back to look, e.g. 7") %>** days
about **<% tp.mcpTools.prompt("topic", "The subject — e.g. 'writing habits'") %>**.
Give me the three most recurring themes and one action item I should act on this week.
Save the file.
In your MCP client, refresh or reconnect to the server. The new prompt will appear — named after the filename (weekly-review.md) — with two parameters: days and topic.
Invoke it from your client's UI (e.g. the attachment or slash-command menu in Claude Desktop), fill in the parameters, and the rendered text becomes the first message of a new conversation.
Parameters are declared inside the template body using a specific Templater pattern:
<% tp.mcpTools.prompt("parameter_name", "Description shown to the user") %>
The same call at execution time returns the user-supplied value. You can repeat the same parameter name throughout the template — it only shows up once in the client's input form, and the value is injected everywhere.
Instead of frontmatter, you can drop an inline #mcp-tools-prompt hashtag anywhere in the body. Both forms are accepted by the server. Use whichever fits your note-taking style.
This section covers the 90% case. For the complete contract (folder naming, frontmatter schema, parameter parsing rules, execution flow, known limitations), see docs/features/prompt-system.md.
The agent can run Obsidian commands on your behalf — the same entries you see in the command palette — but only if you explicitly authorize them. This feature is disabled by default and has no effect until you turn it on.
Two MCP tools are always advertised to the client:
list_obsidian_commands — read-only discovery, always safe. Returns every command registered in the vault (core + plugins), optionally filtered by a substring. Use this first to find the id of a command you want to allow.execute_obsidian_command — gated. Every call is checked against your allowlist.On top of the allowlist + confirmation flow, execute_obsidian_command is rate-limited to 100 calls per minute (hard limit, server-side tumbling window) to protect the vault from runaway loops. The confirmation modal also surfaces a secondary soft warning at 30 calls/minute, visible to you as a red-bordered notice so you can abort a suspicious burst manually.
If the command id or its human name contains a word commonly associated with data loss (delete, remove, uninstall, trash, clean/cleanup, purge, drop, reset, clear, wipe), the confirmation modal shows a red warning and disables the "Allow always" button. You can still run the command via "Allow once" — but the heuristic nudges you to think twice before adding it to your persistent allowlist. This is intentionally a nudge, not a gate: plugin authors use words creatively, so the filter catches the obvious cases and lets everything else through.
Under the Advanced disclosure you can override the soft rate-limit warning threshold (default: 30 calls/minute). When the agent exceeds this rate, the confirmation modal surfaces a red banner so you can spot a runaway loop. The threshold is informational only — the in-process MCP server's hard limit of 100/minute is enforced server-side and is not configurable from the UI.
Every allow/deny decision is appended to a ring buffer of the last 50 invocations, visible under Recent invocations in the same settings section. The audit log includes the command id, the decision, the timestamp, and (for denied calls) the reason. The buffer is pruned automatically so data.json stays bounded.
You can export the current buffer as CSV via the Export CSV button at the top of the Recent invocations list. The download uses the fixed schema timestamp,commandId,decision,reason and is RFC 4180 quoted, so it opens cleanly in Excel, Numbers, LibreOffice, or any standard CSV reader.
editor:* pattern.list_obsidian_commands or the user must paste ids; the allowlist is never populated automatically.data.json. A different vault starts from zero.For the full threat model and the rationale behind these decisions, see docs/design/issue-29-command-execution.md.
If you encounter issues:
Failed to connect, ENOENT, or command not found.node and npx are reachable on the path Obsidian inherits when launched from Finder/Spotlight (a common gap on macOS for users who installed Node via Homebrew).MCP mcp-tools-istefox: Server disconnected; its logs show ECONNREFUSED 127.0.0.1:<port>.claude_desktop_config.json may point at an old walked port while 0.4.9 now correctly binds the default. 0.4.9 fixes the walk; the stale config is a one-time leftover from the old build, not a recurring issue.claude_desktop_config.json at launch; closing the window or an in-app restart is not enough. With auto-write on (the default) the plugin keeps the config in sync afterward.claude_desktop_config.json (http://127.0.0.1:<port>/mcp) matches the port the plugin logs on start (Settings → Open Logs), ensure only one Obsidian vault has the plugin enabled (two instances contend for the port), then fully restart Claude Desktop again.tool/call returns HTTP 401search_vault_smart call (when provider="native", or "auto" without Smart Connections) downloads ~25 MB from HuggingFace. The model is cached in the browser Cache API; subsequent reloads are instant.Unable to determine content-length from response headers may appear in DevTools console during the first download — onnxruntime-web recovers via an expandable buffer; search results are unaffected.installLocation / platformOverride keys in data.json, an orphan mcp-server binary at the previous install location, or a Claude Desktop config entry pointing at the binary.Open the plugin settings → Open Logs under Resources, or look at Obsidian's developer console (Cmd+Opt+I / Ctrl+Shift+I).
Starting with 0.4.0, this plugin does not ship a platform-specific binary. The MCP server runs in-process inside Obsidian's Electron renderer. Eliminating the binary closes the supply-chain attack surface that comes with auto-downloading and executing a signed-but-pre-built executable from GitHub Releases.
The MCP server listens on 127.0.0.1:27200. The bind address is hardcoded to loopback; no external network exposure. Bearer-token authentication is required on every request; the token is generated per install and can be rotated from the plugin settings.
data.json (per-vault).app.vault and app.workspace APIs (Obsidian's permission model applies).Please report security vulnerabilities via our security policy. Do not report security vulnerabilities in public issues.
This project uses a Bun monorepo with a feature-based architecture. For the full architecture contract see .clinerules and docs/project-architecture.md.
packages/
├── obsidian-plugin/ # The plugin: in-process MCP server, registered tools, settings UI, migration modal, transport
├── shared/ # Shared ArkType schemas and types
└── test-site/ # SvelteKit harness (dev-only, not shipped)
bun install # Install workspace dependencies
bun run check # Type-check every package
bun run dev # Watch all packages
bun run build # Production build
The plugin's main.js is written at the package root (packages/obsidian-plugin/main.js); Obsidian expects that path. Do not move it.
mise.toml)Before contributing, please read our Contributing Guidelines including our community standards and behavioral expectations.
main.bun test
We welcome genuine contributions but maintain strict community standards. Be respectful and constructive in all interactions.
Please read our Contributing Guidelines before posting. We maintain high community standards and have zero tolerance for toxic behavior.
See GitHub Releases and CHANGELOG.md for the detailed changelog.
.mcpb bundle for Claude Desktop. Privacy-first, local-only. Listed on Glama. MIT.MIT License — Licensed MIT; portions originally derived from an MIT-licensed project — see LICENSE.
[^1]: For information about Claude data privacy and security, see Claude AI's data usage policy.
[^2]: For more information about the Model Context Protocol, see MCP Introduction.
[^3]: For a list of available MCP Clients, see MCP Example Clients.
[^4]: Local REST API was a hard requirement on the 0.3.x line. Starting with 0.4.0 it is optional and only enables the search_vault tool (DQL / JsonLogic queries). The other 29 tools work without it; search_vault returns an actionable error if it isn't installed. As of 0.4.5, search_vault reads the LRA host and port from the plugin's live settings instead of a hardcoded 127.0.0.1:27124, so reconfiguring LRA's listen port no longer requires a plugin restart.