# Obsidian MCP Server [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/tylern91/obsidian-mcp-server  
**GitHub Stars:** 0  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/obsidian-mcp-server-2

## Description
Filesystem-based MCP server for Obsidian vaults — read, search, and edit notes, no app required.

## Tools
Capabilities this server exposes over MCP:

- **read_note** — Read a note's content and metadata
- **write_note** — Create or update a note
- **list_directory** — List files and subdirectories
- **get_frontmatter** — Read YAML frontmatter from a note
- **update_frontmatter** — Set or remove frontmatter keys (format-preserving)
- **manage_tags** — Add or remove a tag on a note
- **list_all_tags** — Aggregate all tags across the vault with counts, ordered by count descending then name; pageable
- **get_backlinks** — Find all notes that link to a target note
- **patch_note** — Apply a heading-anchored patch to a note
- **rename_heading** — Rename a heading, keeping its level; rewrites anchors that point at it vault-wide by default
- **delete_note** — Move a note to `.obsidian-mcp/trash` (requires confirm); pass `permanent: true` to hard-delete instead
- **move_note** — Move or rename a note within the vault (requires confirm); rewrites unambiguous inbound links by default; if a link rewrite fails after the move, the call still succeeds and reports `linksComplete: false` and `linkRewriteError
- **search_notes** — BM25 full-text search with ranked results and match snippets
- **search_regex** — Search using RE2 regex or glob pattern
- **read_multiple_notes** — Read the content of multiple notes in a single request
- **get_notes_info** — Get metadata for multiple notes without reading full content
- **get_vault_stats** — Get aggregate statistics about the entire vault
- **get_periodic_note** — Get a periodic note (daily, weekly, monthly, quarterly, or yearly)
- **get_recent_periodic_notes** — Get the N most recent periodic notes
- **get_recent_changes** — List notes most recently modified in the vault
- **audit_notes** — Audit the vault for hygiene issues: orphans, dangling links, untagged notes, duplicate titles
- **get_note_outline** — Return a note's heading tree (level, text, line number) without its body
- **read_note_lines** — Read a bounded range of lines from a note
- **rename_tag** — Rename a tag vault-wide, across frontmatter and inline occurrences
- **replace_in_note** — Scoped search-and-replace within a single note, literal or regex

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/tylern91/obsidian-mcp-server), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
curl -fsSL https://raw.githubusercontent.com/tylern91/obsidian-mcp-server/main/install.sh | sh
```

2. Install:

```sh
curl -fsSL https://raw.githubusercontent.com/tylern91/obsidian-mcp-server/main/install.sh | sh -s -- v0.2.0
```

3. Install:

```sh
curl -fLO https://github.com/tylern91/obsidian-mcp-server/releases/latest/download/obsidian-mcp-<version>-darwin-arm64.tar.gz
```

4. Check the setup:

```sh
curl -fLO https://github.com/tylern91/obsidian-mcp-server/releases/latest/download/obsidian-mcp-<version>-darwin-arm64.tar.gz.sha256
```

5. Check the setup:

```sh
shasum -a 256 -c obsidian-mcp-<version>-darwin-arm64.tar.gz.sha256
```

6. Install:

```sh
tar -xf obsidian-mcp-<version>-darwin-arm64.tar.gz
```

## Documentation

## What Obsidian MCP Server does

Obsidian MCP Server connects MCP clients directly to an Obsidian vault on the filesystem. It reads and modifies notes without depending on a running Obsidian instance, making it suitable for agents that need to inspect, organize, or update Markdown-based knowledge stores.

The server covers both individual notes and vault-wide operations. Agents can retrieve note content, metadata, YAML frontmatter, outlines, bounded line ranges, backlinks, and recent changes. They can also inspect aggregate vault statistics, periodic notes, tags, and common hygiene problems such as orphaned notes, dangling links, untagged notes, and duplicate titles.

## How it works

The server exposes its functions as MCP tools. Stdio transport works with MCP clients, while an optional streamable HTTP transport provides TLS 1.3 and bearer-token authentication by default. HTTP access is restricted to loopback unless it is explicitly widened. Search results from note search, regex or glob search, directory listing, and recent-change queries can include `obsidian://open` deep links built from the configured vault name.

Filesystem access is constrained by multiple checks: lexical path validation, ignore and extension filters, case-insensitive existence lookup, and protection against symlink escapes. Responses can include approximate token counts based on `cl100k_base`.

Write operations support optimistic concurrency through returned etags on relevant read and metadata tools. Destructive actions require confirmation matching the target path. Deleted notes are moved to `.obsidian-mcp/trash` by default, while permanent deletion requires an explicit option.

## Tools and capabilities

- Read one or many notes, list directories, inspect metadata, and retrieve bounded line ranges.
- Create or update notes using overwrite, append, or prepend modes.
- Parse and update YAML frontmatter while preserving its formatting.
- Add or remove inline or frontmatter tags, list tag counts, and rename tags across the vault.
- Find backlinks across wikilinks and Markdown links.
- Search note content with BM25 ranking and snippets, or use RE2 regular expressions and glob patterns.
- Apply heading-anchored patches, rename headings, and optionally rewrite links to renamed anchors.
- Move or rename notes, optionally rewrite unambiguous inbound links, and perform dry runs.
- Retrieve periodic notes, recent periodic notes, recent changes, vault statistics, and note outlines.
- Replace literal or regular-expression matches within one note and audit vault hygiene.

Heading operations ignore headings inside fenced code blocks. Ambiguous heading matches require a line number to identify the intended heading. Link-rewrite operations report incomplete results when a rewrite fails after the underlying move or rename succeeds.

## Limitations and notes

The server works with the vault directory directly rather than through Obsidian’s application process. Link rewriting is limited by ambiguity: links whose bare target could refer to multiple notes may remain unchanged. The server reports this condition for applicable rename and move operations.

Regex searching uses RE2 syntax, and line reads are capped at 2,000 lines per request. Permanent deletion is available only when explicitly requested; ordinary deletion uses the server’s trash directory. HTTP transport has a narrower default exposure than stdio: it uses bearer authentication and stays loopback-only unless configured otherwise.

_Full upstream README: https://allmcps.com/mcp/obsidian-mcp-server-2/readme_

