obsidian-mcp
by wjddusrb03
README.md
[](https://www.python.org/)
[](LICENSE)
[](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>
This server cannot be deployed
Maintenance
ActivityInactive
ResponsivenessNo recent community issues