Atlas / MCP servers / stevenstavrakis / Obsidian

ObsidianSAFE

mcp/stevenstavrakis/obsidian

A simple MCP server for Obsidian

Verdict
SAFE
Grade
B
Trust score
89 /100
Exposed tools
2 2r · 0w · 0d
Transport
stdio
License
MIT
Stars
736
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

A local Model Context Protocol server that lets MCP-compatible assistants safely read and modify explicitly configured Obsidian vaults.

Version 2 supports both MCP 2026-07-28 and 2025-era clients by default, and requires Node.js 22 or newer. It works directly with Markdown files, so Obsidian does not need to be open. Legacy protocol and v1 positional-path compatibility are deprecated and print exact migration instructions to stderr.

[!IMPORTANT] MCP clients can invoke destructive tools. Back up important vaults, review client permission prompts, and use revision preconditions for concurrently edited notes.

Quick start

Node.js 22 or newer is required:

node --version # v22 or newer

Run with npx without installing the package globally. Pinning the major version receives compatible 2.x updates without automatically crossing a future major version:

npx -y obsidian-mcp@2 serve --vault notes=/absolute/path/to/vault

Configure an MCP client to launch the same command over stdio:

{
"mcpServers": {
"obsidian": {
"command": "npx",
"args": ["-y", "obsidian-mcp@2", "serve", "--vault", "notes=/absolute/path/to/vault"]
}
}
}

Alternatively, install the package globally and use "command": "obsidian-mcp" with the same arguments beginning at "serve":

npm install -g obsidian-mcp@2

Each vault must already contain an .obsidian directory and must be configured using an absolute path.

Both protocol eras are served from the same tool definitions. After confirming that your MCP client negotiates 2026-07-28, you may opt into modern-only mode by adding "--legacy", "reject" to args.

Vault ids use lowercase letters, digits, _, and -, must begin with a letter, and are the values assistants pass to tools. Up to ten vaults may be configured. Repeat --vault to expose more than one vault:

obsidian-mcp serve \
--vault work=/Use
Read from source at commit da6fa6630eedOBSERVED · 2026-09-28
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.

claude-code
claude mcp add obsidian-mcp -- npx -y [email protected]
claude-desktop
{
  "mcpServers": {
    "obsidian-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ]
    }
  }
}
03

Exposed tools (2)

2 read · 0 write · 0 destructive.

ToolRiskDescription
test_malformed_outputreadReturn a deliberately invalid result.
test_schema_contractreadExercise input and output validation.
04

Trust audit

SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codePASS
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (10 observation(s))
Network
none-observed
Shell
none-observed
Dependencies
not all pinned
Secrets in source
none-found

Findings (8)

LOWInventory / provenance · inv.hidden_file · CWE-1104
.prettierignore
.prettierignore
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
.prettierrc.json
.prettierrc.json
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/resources/vault/index.ts:3
import type { Runtime } from "../../runtime.js";
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/tools/add-tags/index.ts:3
import type { Runtime } from "../../runtime.js";
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/tools/add-tags/index.ts:4
import type { ToolDefinition } from "../../types.js";
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/tools/add-tags/index.ts:5
import { MUTATE } from "../../utils/tool-factory.js";
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/tools/create-directory/index.ts:6
import type { Runtime } from "../../runtime.js";
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
package.json
@modelcontextprotocol/server, yaml, zod, @eslint/js, @modelcontextprotocol/client, @types/node, eslint, prettier
Why it matters. 11 dependency range(s) float
Fix. pin exact versions or ship a lockfile

Gates applied: no_behavioural_pass.

Audited 2026-09-28 · audit v0.4.1 · source sha da6fa6630eedfull audit observations/trust-audit/mcp-server/stevenstavrakis__obsidian.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-09-28da6fa6630eedSAFEB89first audit
06

Questions

What is the Obsidian MCP server?

A simple MCP server for Obsidian

What tools does Obsidian expose?

2 in total: 2 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.

Is Obsidian safe to connect to an agent?

The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.

What credentials does Obsidian need?

No credential environment variables were found in its source, so it appears to need none.

How does Obsidian run?

It speaks stdio, so it runs as a local process your client starts. It is published on npm as obsidian-mcp at 2.0.0.

How current is this page?

The grade is for one exact copy of the source (da6fa6630eed), read on 2026-09-28. The repository is watched and re-audited when it changes.

Advertisement