Obsidian Mcp Secure

io.github.dewtech-technologiesPublished by GitHub account dewtech-technologiesv1.0.4Updated Oct 24, 2026

Secure MCP server for Obsidian with OWASP Top 10 controls and full audit logging.

VerifiedSTDIODesktop onlyFiles & StorageKnowledge & Memory

Overview

AI-generated overview

A local MCP bridge that lets an AI assistant read, search, create, edit and delete notes in an Obsidian vault through the Local REST API plugin, with audit logs

What you can do
Read and list notes and folders in the vault, and find notes by partial name or path with case-insensitive matching, plus full-text and tag search using Obsidian's own search engine, and tag enumeration with usage counts, create new markdown notes, overwrite existing notes, and delete notes when an explicit confirm flag is passed, add wikilinks to a related-notes section of a note, write an audit line for every tool call with action, sanitized parameters, success, error and timestamp
When to use it
Useful when your main AI client is a desktop MCP client such as Claude Desktop and you want your Obsidian vault available as one context alongside other sources, with a narrow, validated tool set and an audit trail instead of shell access. It suits note lookup, summarization and cross-referencing workflows rather than working inside Obsidian's own sidebar.
Requirements
Obsidian Desktop running with a vault open and the Local REST API community plugin enabled with its non-encrypted HTTP server turned on. Node.js 18+ to run the npm package via npx. The plugin's API key must be supplied in OBSIDIAN_API_KEY; OBSIDIAN_HOST (only 127.0.0.1 or localhost accepted), OBSIDIAN_PORT (default 27123) and LOG_DIR (default ./logs) are optional. Desktop only.
Before you install
OBSIDIAN_API_KEY is a secret granting access to the vault through the plugin; keep it out of shared configs and logs. The server can create, overwrite and delete notes, and deletion requires an explicit confirm flag, so review write actions before approving them. Overwritten content is recorded in the audit log, which is written to LOG_DIR and may contain note content. The plugin's HTTP server is unencrypted, so keep it bound to localhost.

Installation

In SourceWeft

  1. Open Obsidian Mcp Secure in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

obsidian-mcp-secure

[npm version] [npm downloads] [MCP Registry] [license] [npm audit] [CI] [coverage] [Smithery]

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 pipelineComponent
Where you talkClaude Desktop (or any MCP client)
Bridge / access controlobsidian-mcp-secure (this package)
Data gateway inside ObsidianLocal REST API plugin (by Adam Coddington)
Your knowledge.md files in your vault

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-secure and 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.

🛠️ Available Tools

ToolPurpose
read_noteRead a note by path
list_notesList files/folders in the vault or a subdirectory
create_noteCreate a new .md note
edit_noteOverwrite an existing note (previous content goes to the audit log)
delete_noteDelete a note — requires confirm: true (Zod rejects otherwise)
search_notesFull-text / tag search using Obsidian's own search engine
find_note_by_nameFind notes by partial name — case-insensitive, no exact path needed
list_tagsEnumerate all tags in the vault with usage count; sortable by name or frequency
create_backlinksAdd [[wikilinks]] to a ## Relacionadas section in a note — explicit and auditable

🔒 Security — OWASP Top 10

ControlImplementation
A01 — Broken Access ControlPath traversal blocked (../, ..\\, encoded variants); .md extension enforced
A02 — Cryptographic FailuresAPI key read from .env or process env; never hardcoded, never logged
A03 — InjectionAll inputs validated with Zod schemas; no eval, no exec, no shell
A04 — Insecure Design512 KB max note size; 50-result cap on search; destructive ops require explicit confirm: true
A05 — Security MisconfigurationOnly 127.0.0.1 / localhost accepted as host
A09 — Logging & MonitoringFull 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

  1. Obsidian Desktop with a vault open
  2. 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
  3. Node.js 18+
  4. 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:

json
{  "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 npx fails silently, switch "command": "npx" to "command": "npx.cmd". Some Claude Desktop builds don't resolve bare npx on 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:

json
{  "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 #ideia and summarize the three ideas that appear most often. Then create a new note called Ideias recorrentes.md with 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:

Dimensionobsidian-claude-code (in-Obsidian)obsidian-mcp-secure (this)
Where the AI livesSidebar inside ObsidianClaude Desktop (or any MCP client)
Setupgit clone + bun buildnpx obsidian-mcp-secure
ToolsRead/Write/Edit + Bash + Grep + Glob + WebFetch9 purpose-built, Zod-validated tools
Security postureFull shell access to dev machineTight allowlist, audited, OWASP Top 10
DistributionManual clone, requires Bunnpm + official MCP Registry
Composability with other sourcesInside its own sandboxAny MCP-compatible client can mix it with fetch, GitHub, filesystem, etc.
Best forDev who lives in ObsidianProfessional whose main surface is Claude Desktop

Both are valid — they occupy different niches.


🔧 Environment variables

VariableRequiredDefaultDescription
OBSIDIAN_API_KEY✅—API key from the Local REST API plugin
OBSIDIAN_HOSThttp://127.0.0.1Host (only 127.0.0.1 and localhost are accepted)
OBSIDIAN_PORT27123Port of the plugin's HTTP server
LOG_DIR./logsDirectory for the audit log files

🗺️ Roadmap

✅ Shipped in v1.2.1

  • Bug fix: find_note_by_name searches full path (folder + filename)
  • Bug fix: list_tags normalizes all API response formats (object, array of strings, array of objects with tagCount/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 vault
  • create_backlinks — connect related notes with [[wikilinks]] (explicit, auditable)
  • list_tags — enumerate all tags in the vault with usage count
  • Unit 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


Security issues? See SECURITY.md for disclosure instructions.

Source: README.md at commit da3c03a

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v1.0.4LatestSep 16, 2026

Score

40% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts

    Declare a license in the repository or the registry entry.