obsidian-mcp-secure
Provides tools to read, write, search, and manage notes in an Obsidian vault securely.
Click on "Deploy 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-secure Create a note called 'ideas' with content 'brainstorming session'."
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-secure
Secure Model Context Protocol server that turns your Obsidian vault into a reliable data source for any MCP-compatible AI client β built from scratch with OWASP Top 10 controls and full audit logging.
Listed on the official Anthropic MCP Registry as io.github.dewtech-technologies/obsidian-mcp-secure.
π§ Positioning β this is NOT a plugin for Obsidian
It's the opposite: it's a bridge that lets Claude Desktop (or any MCP client) read and write inside Obsidian safely. Your AI assistant stays where it lives; your vault becomes a structured, auditable datasource it can reach.
βββββββββββββββββββ MCP ββββββββββββββββββββββββ HTTP ββββββββββββββββββββββ FS βββββββββββββββ
β β stdio β β :27123 β β β β
β Claude Desktop β ββββββββΆ β obsidian-mcp-secure β ββββββββΆ β Local REST API β ββββββΆ β Vault .md β
β (AI client) β β (this package) β β (Obsidian plugin) β β β
βββββββββββββββββββ ββββββββββββββββββββββββ ββββββββββββββββββββββ βββββββββββββββRole in the pipeline | Component |
Where you talk | Claude Desktop (or any MCP client) |
Bridge / access control |
|
Data gateway inside Obsidian | Local REST API plugin (by Adam Coddington) |
Your knowledge |
|
One-liner: Claude is the brain, this MCP is the arm, Obsidian is the memory.
Why another Obsidian + AI integration?
There are plugins that put Claude inside Obsidian. This is the inverse, and it exists because:
Your assistant is Claude Desktop β that's where the general-purpose conversations happen. Your notes become one of many contexts Claude can reach, alongside web, GitHub, filesystems, etc.
Security is a first-class concern β deliberate attack surface, no shell access, path traversal blocked, inputs validated with Zod, every call audited.
Zero build, zero account β
npx obsidian-mcp-secureand done. Works on Windows, macOS, Linux the same way.Composability β combine this MCP with fetch, filesystem, git, GitHub, etc., and Claude can cross-reference your vault with external sources in a single conversation.
Related MCP server: obsidian-remote-mcp
π οΈ Available Tools
Tool | Purpose |
| Read a note by path |
| List files/folders in the vault or a subdirectory |
| Create a new |
| Overwrite an existing note (previous content goes to the audit log) |
| Delete a note β requires |
| Full-text / tag search using Obsidian's own search engine |
| Find notes by partial name β case-insensitive, no exact path needed |
| Enumerate all tags in the vault with usage count; sortable by name or frequency |
| Add |
π Security β OWASP Top 10
Control | Implementation |
A01 β Broken Access Control | Path traversal blocked ( |
A02 β Cryptographic Failures | API key read from |
A03 β Injection | All inputs validated with Zod schemas; no |
A04 β Insecure Design | 512 KB max note size; 50-result cap on search; destructive ops require explicit |
A05 β Security Misconfiguration | Only |
A09 β Logging & Monitoring | Full audit log via winston with size-based rotation (5 MB / 10 files) |
Every tool call emits an audit line with action, params (sanitized), success, error, and timestamp.
β‘ Installation
Prerequisites
Obsidian Desktop with a vault open
The Local REST API plugin (by Adam Coddington) β install from Community Plugins, enable it, and:
Turn on "Enable Non-encrypted (HTTP) Server" (simpler than HTTPS self-signed certs)
Copy the API Key shown in the plugin settings
Node.js 18+
Claude Desktop (or another MCP-compatible client)
Configure Claude Desktop
Open %APPDATA%\Claude\claude_desktop_config.json on Windows (or ~/Library/Application Support/Claude/claude_desktop_config.json on macOS) and add:
{
"mcpServers": {
"obsidian-secure": {
"command": "npx",
"args": ["-y", "obsidian-mcp-secure"],
"env": {
"OBSIDIAN_API_KEY": "your-api-key-from-the-plugin",
"OBSIDIAN_HOST": "http://127.0.0.1",
"OBSIDIAN_PORT": "27123",
"LOG_DIR": "C:/path/to/your/logs"
}
}
}
}Windows tip: if
npxfails silently, switch"command": "npx"to"command": "npx.cmd". Some Claude Desktop builds don't resolve barenpxon PATH.
Restart Claude Desktop (tray β Quit, then reopen) and the 9 tools will show up under obsidian-secure.
π€ Recommended companions
The real power of MCPs is composability. To reproduce the "read my note β fetch a URL β tell me if I'm applying it correctly" workflow, add the official fetch MCP alongside this one:
{
"mcpServers": {
"obsidian-secure": { "...": "as above" },
"fetch": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-fetch"]
}
}
}Now Claude has both your vault and the live web in a single conversation.
π¬ Example prompts
With obsidian-secure + fetch enabled:
"Read my note
Projeto API Atendimento.md, then fetch https://developers.facebook.com/docs/whatsapp and tell me if my implementation matches the latest best practices."
"Search my vault for the tag
#ideiaand summarize the three ideas that appear most often. Then create a new note calledIdeias recorrentes.mdwith the summary."
"Read
Atomic Habits - Resumo.md, fetch https://jamesclear.com/atomic-habits, and point out where my notes drifted from the original."
Claude will orchestrate the tool calls automatically β no manual chaining.
π§© Comparison with in-Obsidian plugins
If your workflow lives inside Obsidian's sidebar, plugins like obsidian-claude-code are the right fit. This MCP targets a different shape:
Dimension |
|
|
Where the AI lives | Sidebar inside Obsidian | Claude Desktop (or any MCP client) |
Setup |
|
|
Tools | Read/Write/Edit + Bash + Grep + Glob + WebFetch | 9 purpose-built, Zod-validated tools |
Security posture | Full shell access to dev machine | Tight allowlist, audited, OWASP Top 10 |
Distribution | Manual clone, requires Bun | npm + official MCP Registry |
Composability with other sources | Inside its own sandbox | Any MCP-compatible client can mix it with fetch, GitHub, filesystem, etc. |
Best for | Dev who lives in Obsidian | Professional whose main surface is Claude Desktop |
Both are valid β they occupy different niches.
π§ Environment variables
Variable | Required | Default | Description |
| β | β | API key from the Local REST API plugin |
|
| Host (only | |
|
| Port of the plugin's HTTP server | |
|
| Directory for the audit log files |
πΊοΈ Roadmap
β Shipped in v1.2.1
Bug fix:
find_note_by_namesearches full path (folder + filename)Bug fix:
list_tagsnormalizes all API response formats (object, array of strings, array of objects withtagCount/taggedFilesCount)
β Shipped in v1.2.0
DXT package for one-click install in Claude Desktop (
npm run build:dxt)
β Shipped in v1.1.0
find_note_by_nameβ partial, case-insensitive name match across the entire vaultcreate_backlinksβ connect related notes with[[wikilinks]](explicit, auditable)list_tagsβ enumerate all tags in the vault with usage countUnit test suite (70 tests β utils, handlers, HTTP client) with Vitest
CI pipeline on every PR: tests + coverage +
npm audit+ static security analysis
π Up next
Smithery listing
Read-only mode flag for shared / multi-user setups
Ideas and PRs welcome β see CONTRIBUTING.md.
π License
MIT β see LICENSE.
π Credits
Model Context Protocol by Anthropic
Local REST API plugin by Adam Coddington β the foundation that makes this possible
Built at Dewtech by Wanderson Leandro
Security issues? See SECURITY.md for disclosure instructions.
Available Tools
9 toolscreate_backlinksA
Adiciona wikilinks [[NomeDaNota]] na seΓ§Γ£o '## Relacionadas' da nota source. Cria a seΓ§Γ£o se nΓ£o existir.
Inputs: source_path (required), target_paths (required).
create_noteB
Cria uma nova nota no Obsidian
Inputs: path (required), content (required).
delete_noteA
Deleta uma nota do vault. ATENΓΓO: aΓ§Γ£o irreversΓvel.
Inputs: path (required), confirm (required).
edit_noteA
Edita o conteΓΊdo de uma nota existente (substitui o conteΓΊdo inteiro)
Inputs: path (required), content (required).
find_note_by_nameA
Encontra notas pelo nome (busca parcial, insensΓvel a maiΓΊsculas). Γtil quando o caminho exato nΓ£o Γ© conhecido.
Inputs: name (required), limit.
list_notesA
Lista arquivos e pastas do vault ou de um diretΓ³rio especΓfico
Inputs: directory.
list_tagsA
Lista todas as tags usadas no vault com contagem de ocorrΓͺncias
Inputs: sort.
read_noteB
LΓͺ o conteΓΊdo de uma nota do Obsidian pelo caminho
Inputs: path (required).
search_notesA
Busca notas por conteΓΊdo ou tag no vault
Inputs: query (required), limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 9 tools
Each tool has a distinct purpose: reading, listing, creating, editing, deleting, searching by content/tag, searching by name, listing tags, and creating backlinks. No overlap; search_notes and find_note_by_name are clearly differentiated by search method.
All tool names follow a consistent verb_noun pattern in snake_case (e.g., read_note, list_notes, search_notes). Even longer names like find_note_by_name maintain the pattern.
9 tools is well-scoped for an Obsidian vault manager, covering core operations (CRUD, search, tags, backlinks) without unnecessary bloat. Each tool earns its place.
The tool set provides full CRUD, content and name search, tag listing, and backlink creation. Minor gaps like moving/renaming notes or batch operations are missing, but the core workflow is well-covered.
Maintenance
Related MCP Connectors
Hosted MCP server for Obsidian Sync vaults: read, search, edit notes. Not affiliated with Obsidian.
Zero-log MCP server with 49 tools for AI guardrails, secret scanning, MCP linting & EU compliance.
491MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceA local MCP server that enables AI applications like Claude Desktop to securely access and work with Obsidian vaults, providing capabilities for reading notes, executing templates, and performing semantic searches.830MIT
- FlicenseNot gradedqualityBmaintenanceSelf-hosted MCP server that provides remote AI clients with read and write access to Obsidian vaults over HTTPS without needing the Obsidian desktop app running.3-
- FlicenseNot gradedqualityDmaintenanceAn MCP server that provides full read/write access to an Obsidian vault, enabling searching, task management, wiki-link graph analysis, and attachment organization from an MCP client like Claude Code.-
- AlicenseNot gradedqualityCmaintenanceA secure MCP server that connects ChatGPT/Codex to a local Obsidian Vault, enabling controlled knowledge retrieval, note maintenance, and daily ingest while enforcing path policies, concurrency checks, and audit.MIT