Obsidian MCP Server
# Obsidian MCP Server for Claude Desktop
[](https://opensource.org/licenses/MIT)
[](https://nodejs.org/)
A Model Context Protocol (MCP) server that integrates your Obsidian vault with Claude Desktop, allowing Claude to read, write, search, and manage your Obsidian notes directly through natural conversation.
## Features
- **Read notes**: Read any note from your Obsidian vault
- **Write notes**: Create new notes or overwrite existing ones
- **Append to notes**: Add content to existing notes
- **Search notes**: Search through your vault by filename or content
- **List notes**: Get a complete list of all notes in your vault
- **Delete notes**: Remove notes from your vault
- **Create folders**: Organize your vault with new folders
## Prerequisites
- Node.js (v18 or higher)
- Claude Desktop app
- An Obsidian vault
## Installation
### Step 1: Install the MCP Server
1. Open a terminal/command prompt
2. Navigate to the `obsidian-mcp` folder:
```bash
cd path/to/obsidian-mcp
```
3. Install dependencies:
```bash
npm install
```
4. Make the script executable (Mac/Linux only):
```bash
chmod +x index.js
```
### Step 2: Configure Claude Desktop
You need to edit Claude Desktop's configuration file to add the Obsidian MCP server.
#### On macOS:
1. Open the config file:
```bash
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
```
(Or use any text editor instead of `code`)
#### On Windows:
1. Open the config file at:
```
%APPDATA%\Claude\claude_desktop_config.json
```
#### Configuration:
Add the following to your `claude_desktop_config.json` file:
```json
{
"mcpServers": {
"obsidian": {
"command": "node",
"args": [
"/FULL/PATH/TO/obsidian-mcp/index.js"
],
"env": {
"OBSIDIAN_VAULT_PATH": "/FULL/PATH/TO/YOUR/OBSIDIAN/VAULT"
}
}
}
}
```
**Important**: Replace the paths with your actual paths:
- Replace `/FULL/PATH/TO/obsidian-mcp/index.js` with the full path to the `index.js` file
- Replace `/FULL/PATH/TO/YOUR/OBSIDIAN/VAULT` with the full path to your Obsidian vault folder
**Example for macOS:**
```json
{
"mcpServers": {
"obsidian": {
"command": "node",
"args": [
"/Users/yourname/obsidian-mcp/index.js"
],
"env": {
"OBSIDIAN_VAULT_PATH": "/Users/yourname/Documents/MyObsidianVault"
}
}
}
}
```
**Example for Windows:**
```json
{
"mcpServers": {
"obsidian": {
"command": "node",
"args": [
"C:\\Users\\YourName\\obsidian-mcp\\index.js"
],
"env": {
"OBSIDIAN_VAULT_PATH": "C:\\Users\\YourName\\Documents\\MyObsidianVault"
}
}
}
}
```
### Step 3: Restart Claude Desktop
After saving the configuration file, completely quit and restart Claude Desktop for the changes to take effect.
## Usage
Once installed and configured, you can interact with your Obsidian vault through Claude. Here are some example prompts:
### Reading Notes
- "Read my note at Daily Notes/2024-11-26.md"
- "Show me the contents of Projects/MyProject.md"
### Creating/Writing Notes
- "Create a new note called 'Meeting Notes.md' with the following content: [your content]"
- "Write a daily journal entry in Daily Notes/2024-11-26.md"
### Searching
- "Search my Obsidian vault for notes about 'machine learning'"
- "Find all notes that mention 'project deadline'"
### Listing Notes
- "List all the notes in my Obsidian vault"
- "Show me all my notes"
### Appending Content
- "Append these ideas to my Ideas.md file: [your content]"
- "Add this task to my Todo.md note"
### Creating Folders
- "Create a new folder called 'Research Papers' in my vault"
- "Make a folder at Projects/2024/Q4"
### Deleting Notes
- "Delete the note at Archive/old-draft.md"
- "Remove Temporary/scratch.md"
## Troubleshooting
### Claude doesn't recognize the Obsidian tools
1. Make sure you've completely quit and restarted Claude Desktop
2. Check that your `claude_desktop_config.json` file is valid JSON (no trailing commas, proper quotes)
3. Verify the paths in the config file are correct and use full/absolute paths
4. Check the Claude Desktop logs for errors:
- macOS: `~/Library/Logs/Claude/mcp*.log`
- Windows: `%APPDATA%\Claude\logs\mcp*.log`
### Permission errors
Make sure Claude has permission to access your Obsidian vault folder. On macOS, you may need to grant Full Disk Access to Claude Desktop in System Preferences > Security & Privacy.
### Path issues
Always use full/absolute paths in the configuration file, not relative paths like `~/` or `./`.
## Security Note
This extension gives Claude full read/write access to your Obsidian vault. Only use it if you're comfortable with Claude being able to read and modify your notes. The server includes security checks to prevent accessing files outside your vault directory.
## Support
If you encounter issues:
1. Check the Claude Desktop logs for error messages
2. Verify your Node.js version is 18 or higher: `node --version`
3. Make sure all paths in the config are correct and absolute
4. Try running the server manually to see if there are any errors:
```bash
OBSIDIAN_VAULT_PATH="/path/to/vault" node /path/to/index.js
```
## Contributing
Contributions are welcome! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
## Changelog
See [CHANGELOG.md](CHANGELOG.md) for a history of changes to this project.
## Acknowledgments
- Built using the [Model Context Protocol](https://modelcontextprotocol.io/) by Anthropic
- Designed for use with [Obsidian](https://obsidian.md/) and [Claude Desktop](https://claude.ai/download)
## Related Projects
- [Model Context Protocol](https://github.com/modelcontextprotocol)
- [Obsidian](https://github.com/obsidianmd/obsidian-releases)
## License
MIT - See [LICENSE](LICENSE) for details.
TDQS
Scored across 7 tools
Each tool has a clearly distinct action and target resource: read, write, append, search, list, delete, and folder creation. The only potential overlap between write_note and append_note is explicitly resolved by their descriptions (overwrite vs. append). No ambiguous tool boundaries.
All tools follow a consistent snake_case verb_noun pattern: read_note, write_note, append_note, search_notes, list_notes, delete_note, create_folder. The pluralization on note-related tools is natural and predictable.
Seven tools is well-scoped for an Obsidian vault server, covering the essential note lifecycle operations without bloat. Each tool earns its place and there are no redundant or trivial tools.
Core note CRUD is fully covered: read, create/overwrite, append, search, list, and delete. Folder management is only partially covered (create_folder exists but no delete/rename/list folders), and there is no move/rename note operation, but these are minor gaps workable via other tools.