ObsidianSAFE
simple mcp server for interacting with local obsidian notes
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
[](https://github.com/Piotr1215/mcp-obsidian/actions/workflows/test.yml) [](https://codecov.io/gh/Piotr1215/mcp-obsidian) [](./MCPSPECCOMPLIANCE.md)
MCP server for Obsidian that provides secure, direct file system access to vault files.
Why This Server?
Most existing Obsidian MCP servers rely on the Obsidian REST API plugin, which requires:
- Obsidian to be installed
- Obsidian to be running
- The REST API plugin to be configured
This server instead works directly with Obsidian vault files on disk, making it compatible with setups using obsidian.nvim - a Neovim plugin that provides Obsidian-like features without requiring the Obsidian app.
Logseq and Foam
Any folder of markdown notes works, so the server also reads Foam workspaces and file-based Logseq graphs. Point it at the workspace or graph folder.
For Logseq graphs the server also reads:
tags::and other page properties at the top of a page, reported as tags and frontmattertitle::as the page title, falling back to the file name, witha___b.mdread asa/b- multi-word
#[[tag name]]tags
It skips the copies Logseq keeps under logseq/bak/ and logseq/version-files/, as Logseq does.
Features
- Direct file system access to Obsidian vaults - no Obsidian app required
- Security-first design with path traversal prevention and input validation
- High performance with execution time tracking and
83230cc1babfOBSERVED · 2026-10-09Connect
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-filesystem -- npx -y [email protected]
{
"mcpServers": {
"obsidian-mcp-filesystem": {
"command": "npx",
"args": [
"-y",
"[email protected]"
]
}
}
}Exposed tools (10)
6 read · 3 write · 1 destructive. Blast radius: 1 tool can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.
| Tool | Risk | Description |
|---|---|---|
append-note | write | Append content to an existing note or create a new note. Unlike write-note which overwrites, this preserves existing content and adds new content at the end or under a specific heading. |
delete-note | destructive | Delete a note |
discover-mocs | write | RECOMMENDED: Start here to explore the vault! Discover MOCs (Maps of Content) - organizational hub notes tagged with #moc that link to related content. MOCs provide a high-level map of the vault\ |
get-note-metadata | read | Get metadata for a specific note or all notes in the vault |
list-notes | read | List all notes in the vault or a specific directory |
read-note | read | Read the content of a specific note |
search-by-tags | read | Search for notes by tags (supports frontmatter, Logseq tags:: properties, inline #tags and #[[multi word]] tags) |
search-by-title | read | Search for notes by title: the first H1, else a title property (YAML or Logseq title::), else the file name |
search-vault | read | Search for content in Obsidian vault notes. CRITICAL: Multiple space-separated terms default to AND (all required). Use OR for better results: |
write-note | write | Create or update a note |
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 | WARN |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (1 observation(s))
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (8)
delete-note
text-response-payload.test.js
const result = validatePathWithinBase(basePath, '/etc/passwd');
'../../etc/passwd',
'folder/../../etc/passwd',
'./../../../etc/passwd'
@modelcontextprotocol/sdk, glob, @stryker-mutator/core, @stryker-mutator/vitest-runner, @types/node, @vitest/coverage-v8, vitest
Gates applied: no_behavioural_pass, no_license.
83230cc1babffull audit observations/trust-audit/mcp-server/piotr1215__obsidian-23.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-10-09 | 83230cc1babf | SAFE | B | 89 | first audit |
Questions
What is the Obsidian MCP server?
simple mcp server for interacting with local obsidian notes
What tools does Obsidian expose?
10 in total: 6 read-only, 3 that write, and 1 that can delete or overwrite (delete-note). 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. Separately from the audit: 1 of its tools can destroy data, so scope the token you give it to what you actually need.
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-filesystem at 0.1.0.
How current is this page?
The grade is for one exact copy of the source (83230cc1babf), read on 2026-10-09. The repository is watched and re-audited when it changes.