dbmcco/obsidian-mcp
If you are the rightful owner of obsidian-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The Obsidian MCP Server is designed to facilitate natural language interaction with your Obsidian vault, enabling users to perform complex queries and manage notes efficiently.
query_vault
Process natural language queries about your vault.
search_notes
Search for notes by filename or content.
get_note
Get the full content of a specific note.
get_backlinks
Get all notes that link to a specific note.
write_note
Write or overwrite a note with new content.
create_note
Create a new note with frontmatter and content.
append_to_note
Append content to an existing note.
update_note_section
Update a specific section of a note by heading.
Obsidian MCP Server
A Model Context Protocol (MCP) server for natural language interaction with your Obsidian vault.
Features
- Natural Language Queries: Ask questions about your vault in plain English
- Content Search: Search notes by filename, content, or both
- Backlink Analysis: Find connections between notes
- Smart Context Building: Automatically gathers relevant information for complex queries
Setup
-
Install dependencies:
npm install
-
Build the project:
npm run build
-
Set your vault path:
export OBSIDIAN_VAULT_PATH="/path/to/your/obsidian/vault"
Usage
As an MCP Server
Add to your MCP client configuration:
{
"mcpServers": {
"obsidian": {
"command": "node",
"args": ["/path/to/obsidian-mcp/dist/index.js"],
"env": {
"OBSIDIAN_VAULT_PATH": "/path/to/your/vault"
}
}
}
}
Available Tools
Read Operations:
-
query_vault: Process natural language queries about your vault
- Example: "What are the main themes in my project notes?"
-
search_notes: Search for notes by filename or content
- Parameters:
searchTerm
,searchType
(filename/content/both)
- Parameters:
-
get_note: Get the full content of a specific note
- Parameters:
notePath
- Parameters:
-
get_backlinks: Get all notes that link to a specific note
- Parameters:
notePath
- Parameters:
Write Operations: 5. write_note: Write or overwrite a note with new content
- Parameters:
notePath
,content
-
create_note: Create a new note with frontmatter and content
- Parameters:
notePath
,title
,content
(optional),tags
(optional)
- Parameters:
-
append_to_note: Append content to an existing note
- Parameters:
notePath
,content
- Parameters:
-
update_note_section: Update a specific section of a note by heading
- Parameters:
notePath
,sectionHeading
,newContent
- Parameters:
Example Queries
- "Evaluate the ideas for Project Alpha and suggest improvements"
- "What are the key concepts related to machine learning in my vault?"
- "Show me all notes connected to the quarterly planning document"
- "Find all references to the client meeting from last week"
Development
npm run dev
: Watch mode for developmentnpm run build
: Build the projectnpm run start
: Start the server
Environment Variables
OBSIDIAN_VAULT_PATH
: Path to your Obsidian vault (required)