Obsidian MCP Assistant
Supports AI chat, embeddings, document/image/PDF extraction, audio extraction, and video extraction using Google Gemini models.
Provides tools for reading, searching, creating, editing, moving, deleting, and reindexing notes and attachments within an Obsidian vault, with hybrid search and citation-backed chat.
Enables AI chat, embeddings, and document/image/PDF extraction using OpenAI models, with optional audio extraction.
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., "@Obsidian MCP Assistantsearch my vault for 'quarterly review' and summarize findings"
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.
Obsidian MCP Assistant
Desktop-only Obsidian plugin and local companion service for hybrid vault search, cited AI chat, attachment extraction, and read/write MCP access.
Everything indexed and retrieved stays on the machine. Cloud provider requests happen only after a provider, model, and extraction consent are configured. The companion binds to loopback only.
What ships
Obsidian plugin — assistant pane, hybrid search modal, provider/model settings, extraction consent, MCP token management, rebuild and recovery controls.
Local companion — the sole owner of index/state SQLite databases, watcher, work queue, retrieval, HTTP control API, and Streamable HTTP MCP endpoint.
MCP — read, list, links, search, create, edit, move, delete, and reindex tools over either local stdio or authenticated loopback HTTP.
Retrieval — deterministic BM25/FTS keyword search, optional embeddings, reciprocal-rank hybrid fusion, filters, source provenance, and snapshot-backed chat citations.
Attachments — local Markdown/Canvas/text/source/office/PDF extraction plus opt-in provider handling for document, image, audio, and video content.
Related MCP server: Obsidian MCP Server
Requirements
Obsidian desktop 1.11.4 or newer. Mobile is unsupported.
Node.js 20 or newer for the companion.
A supported macOS/Linux/Windows native-runtime environment for
better-sqlite3,sqlite-vec,@napi-rs/keyring, andsharp.Optional provider credentials for OpenAI, Anthropic, and/or Google Gemini. Local keyword indexing does not require a provider.
Install from a release
Download the release assets:
obsidian-mcp-assistant-plugin-vX.Y.Z.zipobsidian-mcp-companion-X.Y.Z.tgz
Extract the plugin zip into your vault at:
<vault>/.obsidian/plugins/obsidian-mcp-assistant/Enable Obsidian MCP Assistant in Obsidian’s Community plugins settings.
Install the companion from the tarball in a local directory:
npm install /path/to/obsidian-mcp-companion-X.Y.Z.tgzRegister the vault. Save the one-time token printed by this command; it is shown only once.
npx obsidian-mcp init --vault /absolute/path/to/vault --id my-vaultPaste that token into the plugin settings, then start the daemon:
npx obsidian-mcp serve --vault-id my-vault
The daemon listens only on 127.0.0.1. Keep it running while using the plugin or MCP clients.
Development install
npm ci
npm run build
npm run dev:install -- /absolute/path/to/vault
node packages/companion/dist/cli.js init --vault /absolute/path/to/vault --id my-vault
node packages/companion/dist/cli.js serve --vault-id my-vaultRun npm run test:native-package before relying on a local native build. It validates the packaged companion and confirms native dependencies are excluded from the Obsidian bundle.
Providers and consent
Provider credentials are validated before persistence and stored by the operating system credential manager, not in plugin data or vault files.
Capability | Supported providers |
Chat | OpenAI, Anthropic, Google |
Embeddings | OpenAI, Google |
Document/image/PDF extraction | OpenAI, Anthropic, Google |
Audio extraction | OpenAI, Google |
Video extraction |
Enable each extraction modality explicitly in the plugin settings. A credential alone does not permit uploads. Extraction failures remain visible as retryable jobs; unsupported/encrypted binaries remain metadata-only rather than being silently omitted.
MCP setup
Streamable HTTP
Create a separately revocable bearer token in plugin settings or with:
npx obsidian-mcp create-mcp-token --vault-id my-vault --name codexConfigure an MCP client to use:
http://127.0.0.1:<port>/mcp
Authorization: Bearer <mcp-token>Never use the plugin-control token as an MCP bearer token.
Stdio
For local clients that support stdio, configure:
{
"command": "node",
"args": [
"/absolute/path/to/node_modules/@obsidian-mcp/companion/dist/cli.js",
"stdio",
"--vault-id",
"my-vault"
]
}The stdio bridge requires the same vault daemon to be healthy; it never opens the vault databases itself.
Security model
Loopback-only HTTP; non-loopback peers and unapproved origins are rejected.
Plugin-control, MCP bearer, and private stdio-bridge credentials are distinct.
MCP tokens are independently revocable. Revocation closes sessions bound to that token.
Vault mutations require the current SHA-256 and are journaled with recovery records.
Traversal, absolute paths, NUL bytes, symlinks, and configured excluded paths are rejected.
Structured logs redact bodies, note content, tokens, keys, prompts, and provider credentials.
Operations
# Check native runtime support
npx obsidian-mcp doctor
# Persist a provider key; input is read from hidden stdin
npx obsidian-mcp set-key --vault-id my-vault --provider openai
# Remove a provider key
npx obsidian-mcp delete-key --vault-id my-vault --provider openai
# Revoke a single MCP token
npx obsidian-mcp revoke-mcp-token --vault-id my-vault --id <token-id>Use the plugin settings for rebuilding the index, inspecting jobs, restoring journaled recovery items, rotating the plugin-control token, and session-only provider credentials.
Development commands
Command | Purpose |
| Type-check all workspace packages. |
| Type-check integration tests. |
| Run strict ESLint checks. |
| Verify Prettier formatting. |
| Build companion, contracts, and plugin assets. |
| Run the default Vitest suite. |
| Run companion end-to-end tests. |
| Fresh-install and native dependency verification. |
Release and versioning
Releases are GitHub assets, not npm publications. See VERSIONING.md for the synchronized-version and tag-driven release process, and CHANGELOG.md for release notes.
This server cannot be installed
Maintenance
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
- 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/SamuelPalubaCZ/obsidian-mcp-assistant'
If you have feedback or need assistance with the MCP directory API, please join our Discord server