Skip to main content
Glama
README.md
[![Python 3.10+](https://img.shields.io/badge/python-3.10%2B-blue?logo=python&logoColor=white)](https://www.python.org/)
[![License: MIT](https://img.shields.io/badge/license-MIT-green)](LICENSE)
[![MCP](https://img.shields.io/badge/MCP-1.0%2B-blueviolet?logo=anthropic&logoColor=white)](https://modelcontextprotocol.io/)

# obsidian-mcp

**Let Claude read and write your Obsidian vault — locally, privately, no API key required.**

Connect Claude Desktop directly to your local Obsidian vault via the Model Context Protocol. Search notes, capture ideas, retrieve daily notes, follow backlinks — all through natural conversation. Your data never leaves your machine.

---

## Features

- šŸ” **Full-text search** across all notes
- šŸ“ **Read, create, update, and append** to any note
- šŸ—‚ļø **Browse by folder** or list the entire vault
- šŸ“… **Daily note** retrieval and creation
- šŸ·ļø **Tag-based search** with `#tag` support
- šŸ”— **Backlink discovery** — find every note that links to a given note
- šŸ• **Recent notes** — surface what you last worked on
- šŸ”’ **100% local** — no cloud sync, no accounts, no telemetry
- ⚔ **Auto-installer** — detects your vault and configures Claude Desktop automatically

---

## Installation

### Option A — Automatic (recommended)

```bash
git clone https://github.com/wjddusrb03/obsidian-mcp
cd obsidian-mcp
pip install -r requirements.txt
python setup_wizard.py
```

The setup wizard will:
1. Auto-detect your Obsidian vault from `obsidian.json`
2. Patch `claude_desktop_config.json` automatically
3. Fall back to manual prompts if anything can't be detected

Then restart Claude Desktop — you're done.

### Option B — Manual configuration

Add the following to your `claude_desktop_config.json`:

**macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
**Windows:** `%APPDATA%\Claude\claude_desktop_config.json`

```json
{
  "mcpServers": {
    "obsidian": {
      "command": "python",
      "args": ["/path/to/obsidian-mcp/server.py", "--vault", "/path/to/your/vault"]
    }
  }
}
```

Replace the paths, restart Claude Desktop, and the tools will appear automatically.

---

## Usage Examples

Once configured, just talk to Claude naturally:

> **You:** Search my notes for anything about "deep work" or focus strategies.
>
> **Claude:** Found 4 notes matching 'deep work': **Focus System**, **Weekly Review template**, **Book Notes - Deep Work**, **Morning Routine**...

---

> **You:** What did I write in today's daily note?
>
> **Claude:** Here's your daily note for 2026-03-21: *"Morning: shipped the auth refactor. Afternoon: 1:1 with..."*

---

> **You:** Create a note called "Meeting Notes - Q2 Planning" in my Work folder with today's action items.
>
> **Claude:** Created note at `Work/Meeting Notes - Q2 Planning.md` āœ“

---

> **You:** Find all notes tagged #review and tell me which ones haven't been updated in a while.
>
> **Claude:** Found 6 notes with tag #review. The oldest untouched ones are **Article Backlog** (last modified 47 days ago) and **Reading List**...

---

> **You:** What notes link to my "Zettelkasten Index"?
>
> **Claude:** Found 12 notes linking to `[[Zettelkasten Index]]`: **Permanent Notes MOC**, **Projects Hub**, **Daily Note 2026-03-15**...

---

## Tools Reference

| Tool | Description |
|------|-------------|
| `search_notes` | Full-text search — returns matching notes with excerpts |
| `get_note` | Read the complete content of a note by path |
| `create_note` | Create a new note (optional folder, markdown content) |
| `update_note` | Overwrite the entire content of an existing note |
| `append_to_note` | Append text to the end of a note without touching existing content |
| `list_notes` | List all notes in the vault or a specific folder |
| `get_daily_note` | Get or create a daily note for today or any `YYYY-MM-DD` date |
| `search_by_tag` | Find all notes containing a specific `#tag` |
| `get_backlinks` | Find every note that links to a given note via `[[wiki-links]]` |
| `get_recent_notes` | Get the N most recently modified notes |

---

## Why obsidian-mcp?

| | obsidian-mcp | Cloud-based note tools |
|---|---|---|
| **Privacy** | All data stays on your machine | Synced to third-party servers |
| **API key required** | No | Usually yes |
| **Works offline** | Yes | No |
| **Obsidian plugin needed** | No | Sometimes |
| **Cost** | Free | Often subscription |

---

## Requirements

- Python 3.10 or higher
- Claude Desktop with MCP support
- An Obsidian vault (any size)

**Dependencies** (auto-installed via pip):
- [`mcp`](https://pypi.org/project/mcp/) >= 1.0.0
- [`pyyaml`](https://pypi.org/project/PyYAML/) >= 6.0.0

---

## Project Structure

```
obsidian-mcp/
ā”œā”€ā”€ server.py          # MCP server — tool definitions and entry point
ā”œā”€ā”€ core/              # Vault read/write logic
ā”œā”€ā”€ setup_wizard.py    # Interactive installer
ā”œā”€ā”€ pyproject.toml     # Package metadata
└── requirements.txt   # Dependencies
```

---

## License

[MIT](LICENSE) — free to use, modify, and distribute.

---

<p align="center">Built for people who think in markdown.</p>