mcp-obsidian
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., "@mcp-obsidian search my vault for notes mentioning 'Q3 planning' and list them"
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.
MCP Server for Obsidian
An MCP server for interacting with a local Obsidian vault via natural language, exposing read and write operations on the vault's notes (.md) to MCP clients (Claude Desktop, Claude Code, VS Code Copilot, Cursor, and compatible hosts).
Direct filesystem access to the vault — does not depend on the Obsidian app being open or on any installed plugin (e.g. Local REST API).
Security guardrails
Every tool goes through resolveNotePath() before touching the filesystem. That function rejects:
absolute paths, drive letters (
C:\...) and UNC paths (\\...);traversal (
..) in any path segment, even disguised inside subfolders;hidden segments (
.obsidian,.git,.trash, etc.) — protects Obsidian's internal config and version control;any extension other than
.md.
In addition:
create_notedoes not overwrite by default — requires explicitoverwrite: true;delete_noterequires explicitconfirm: true, even with a validpath;listing, search, and backlinks ignore hidden folders and
node_modules.
These validations limit the model's blast radius to .md files inside the configured vault, even in the face of a malicious prompt or a model hallucination trying to escape scope.
Related MCP server: obsidian-mcp
Available Tools
Tool | Description |
| Lists |
| Reads a note: frontmatter, body, and wikilinks found |
| Searches text across all notes, returning file/line/snippet |
| Lists notes that reference the given note via |
| Creates a new note (fails if it already exists, unless |
| Appends text to the end of an existing note |
| Deletes a note (requires |
Requirements
Node.js 18+
A local Obsidian vault (any folder of
.mdfiles — the Obsidian app does not need to be open)
Configuration
Variable | Required | Default | Description |
| Yes | — | Absolute path to the local Obsidian vault |
| No |
| Transport mode: |
| No |
| HTTP server port (only used when |
| No |
| HTTP server bind address (only used when |
Usage
Run directly from GitHub
npx github:ferronicardoso/mcp-obsidianClaude Code (CLI)
PowerShell:
claude mcp add obsidian --scope user `
--env OBSIDIAN_VAULT_PATH="/my/obsidian/vault/path/" `
-- npx -y github:ferronicardoso/mcp-obsidian--scope controls where the server registration is stored:
Scope | Stored in | Visible to |
| project-local, untracked | only you, only in this project |
|
| anyone who clones the repository (commit it to share) |
| global Claude Code config | you, across all projects |
Claude Desktop configuration
%APPDATA%\Claude\claude_desktop_config.json:
{
"mcpServers": {
"obsidian": {
"command": "npx",
"args": ["github:ferronicardoso/mcp-obsidian"],
"env": {
"OBSIDIAN_VAULT_PATH": "/my/obsidian/vault/path/"
}
}
}
}VS Code MCP configuration
.vscode/mcp.json:
{
"servers": {
"obsidian": {
"command": "npx",
"args": ["github:ferronicardoso/mcp-obsidian"],
"env": {
"OBSIDIAN_VAULT_PATH": "/my/obsidian/vault/path/"
}
}
}
}Run with Docker (HTTP transport)
The vault needs to be mounted as a volume inside the container; OBSIDIAN_VAULT_PATH must point to the path inside the container.
docker run -d --name mcp-obsidian `
-p 3004:3004 `
-v "/my/obsidian/vault/path/:/vault:rw" `
-e OBSIDIAN_VAULT_PATH=/vault `
ghcr.io/ferronicardoso/mcp-obsidian:latestThe MCP endpoint is then available at http://localhost:3004/mcp.
Local Development
git clone https://github.com/ferronicardoso/mcp-obsidian
cd mcp-obsidian
npm install
npm run buildRun the compiled server:
$env:OBSIDIAN_VAULT_PATH = "/my/obsidian/vault/path/"
npm startRun the tests:
npm testBuild and Commit Workflow
This repository keeps dist/ tracked to support npx github:user/repo.
A Husky pre-commit hook:
builds TypeScript (
npm run build)stages the generated artifacts (
git add dist)
Manual fallback:
npm run build
git add distSecurity Notes
OBSIDIAN_VAULT_PATHmust point to a real user vault — the server refuses to start if the path does not exist or is not a directory.All write tools (
create_note,append_to_note,delete_note) operate exclusively inside the vault, validated byresolveNotePath().There is no audit trail (who/when changed what) and no automatic versioning of changes. Before pointing it at a production vault, consider versioning the vault with Git or keeping backups.
License
MIT © Raphael Augusto Ferroni Cardoso
Available Tools
7 toolsappend_to_noteA
Appends text to the end of an existing note. Fails if the note does not exist.
Inputs: path (required), content (required).
create_noteA
Creates a new note in the vault. Fails if the note already exists, unless overwrite=true. Creates intermediate subfolders if needed.
Inputs: path (required), content (required), overwrite.
delete_noteA
Deletes a note from the vault. Requires explicit confirm=true as a guardrail against accidental deletion.
Inputs: path (required), confirm (required).
get_backlinksA
Lists the notes in the vault that reference the given note via [[wikilink]].
Inputs: path (required).
list_notesA
Lists the vault's notes (.md), optionally restricted to a subfolder. Ignores hidden folders (.obsidian, .git, .trash).
Inputs: folder.
read_noteA
Reads the content of a vault note, returning frontmatter, body, and wikilinks found.
Inputs: path (required).
search_notesA
Searches text across all notes in the vault, returning file, line, and snippet for each match.
Inputs: query (required), maxResults, caseSensitive.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool targets a clearly distinct operation: listing, reading, searching, backlink lookup, creating, appending, and deleting. The read operations are differentiated by what they return, and the write operations are cleanly separated by semantics.
All tool names follow a consistent verb_noun snake_case pattern (list_notes, read_note, search_notes, create_note, etc.). The naming style is uniform and predictable.
Seven tools is well-scoped for an Obsidian vault server. Each tool covers a necessary note operation without redundancy or bloat.
Core note lifecycle operations are covered: list, read, search, create, append, delete, and backlink discovery. Minor gaps like rename/move or direct edit-by-section exist, but they are workable via create with overwrite and append.
Maintenance
Related MCP Connectors
Hosted MCP server for Obsidian Sync vaults: read, search, edit notes. Not affiliated with Obsidian.
Search and reason over your Obsidian-style Markdown vault, right from ChatGPT.
Search, read, and safely update Markdown notes in your connected Phasoric knowledge vaults.
Notes and memory assistant: one Markdown vault that Claude, ChatGPT and any MCP client can share.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceEnables reading, writing, searching, and managing Obsidian vault notes through MCP tools and prompts, allowing AI agents to interact with local knowledge bases.-
- AlicenseAqualityDmaintenanceEnables MCP-compatible AI hosts to read, search, link, and write notes in a local Obsidian vault with sandboxed file access.11MIT
- FlicenseAqualityDmaintenanceProvides local MCP access to registered Obsidian vaults, enabling Markdown note operations like reading, writing, searching, and managing notes via tools for Codex and ChatGPT Desktop.22-
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to list, read, search, create, update, rename, and delete markdown notes in a local Obsidian vault via an HTTP MCP endpoint.1MIT