ObsidianSAFE
A simple MCP server for Obsidian
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
da6fa6630eedOBSERVED · 2026-09-28Connect
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 mcp add obsidian-mcp -- npx -y [email protected]
{
"mcpServers": {
"obsidian-mcp": {
"command": "npx",
"args": [
"-y",
"[email protected]"
]
}
}
}Exposed tools (2)
2 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
test_malformed_output | read | Return a deliberately invalid result. |
test_schema_contract | read | Exercise input and output validation. |
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.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (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)
.prettierignore
.prettierrc.json
import type { Runtime } from "../../runtime.js";import type { Runtime } from "../../runtime.js";import type { ToolDefinition } from "../../types.js";import { MUTATE } from "../../utils/tool-factory.js";import type { Runtime } from "../../runtime.js";@modelcontextprotocol/server, yaml, zod, @eslint/js, @modelcontextprotocol/client, @types/node, eslint, prettier
Gates applied: no_behavioural_pass.
da6fa6630eedfull audit observations/trust-audit/mcp-server/stevenstavrakis__obsidian.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-09-28 | da6fa6630eed | SAFE | B | 89 | first audit |
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.