Obsidian MCP Server
Enables natural language interaction with Obsidian vaults, providing tools for reading, writing, searching notes, analyzing backlinks and connections, managing note structure, tracking tasks, and discovering patterns across linked notes.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Obsidian MCP Server find all notes about machine learning and show me their backlinks"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Obsidian MCP Server
A powerful Model Context Protocol (MCP) server for natural language interaction with your Obsidian vault. Built with TypeScript and designed for seamless integration with Claude Code and other MCP clients.
Features
Core Capabilities
Natural Language Queries: Ask questions about your vault in plain English
Advanced Search: Intelligent search with link analysis, tag hierarchies, and structural context
Backlink Analysis: Find and analyze connections between notes
Vault Navigation: Browse directory structure and discover notes
Full CRUD Operations: Read, write, create, append, and update notes
Advanced Intelligence Tools
Guided Story Path: Generate narrative tours through linked notes
Note Auditing: Find recently modified notes missing frontmatter or structure
Contextual Companions: Discover related notes based on links, keywords, and recency
Fresh Energy: Identify recently updated notes needing integration
Initiative Bridge: Track project-specific notes with outstanding tasks
Pattern Echo: Find notes that reuse specific phrasings or patterns
Synthesis Ready: Detect note clusters that need summary notes
Related MCP server: Obsidian MCP Server
Installation
From Source
Clone the repository:
git clone https://github.com/dbmcco/obsidian-mcp.git cd obsidian-mcpInstall dependencies:
npm installBuild the project:
npm run build
Configuration
Claude Code Setup
Add to your Claude Code MCP configuration:
{
"mcpServers": {
"obsidian": {
"command": "node",
"args": ["/absolute/path/to/obsidian-mcp/dist/index.js"],
"env": {
"OBSIDIAN_VAULT_PATH": "/absolute/path/to/your/vault"
}
}
}
}Claude Desktop Setup
Add to your claude_desktop_config.json:
{
"mcpServers": {
"obsidian": {
"command": "node",
"args": ["/absolute/path/to/obsidian-mcp/dist/index.js"],
"env": {
"OBSIDIAN_VAULT_PATH": "/absolute/path/to/your/vault"
}
}
}
}Environment Variables
OBSIDIAN_VAULT_PATH: Required. Absolute path to your Obsidian vault
Available Tools
Basic Operations
query_vault
Process natural language queries about your vault content.
Example: "What are the main themes in my project notes?"
{
query: string,
vaultPath?: string // Optional override
}search_notes
Search for notes by filename or content using exact text matching.
{
searchTerm: string,
searchType: 'filename' | 'content' | 'both', // Default: 'both'
vaultPath?: string
}intelligent_search
Advanced search with link graph analysis, tag hierarchies, and structural context weighting.
{
query: string,
vaultPath?: string
}list_directories
Browse vault directory structure with note counts.
{
directoryPath?: string, // Empty string for vault root
vaultPath?: string
}get_note
Retrieve the full content of a specific note.
{
notePath: string, // Relative to vault root
vaultPath?: string
}get_backlinks
Find all notes that link to a specific note with context.
{
notePath: string,
vaultPath?: string
}Write Operations
write_note
Write or completely overwrite a note.
{
notePath: string,
content: string,
vaultPath?: string
}create_note
Create a new note with frontmatter and content.
{
notePath: string,
title: string,
content?: string,
tags?: string[],
vaultPath?: string
}append_to_note
Append content to an existing note.
{
notePath: string,
content: string,
vaultPath?: string
}update_note_section
Update a specific section identified by heading.
{
notePath: string,
sectionHeading: string,
newContent: string,
vaultPath?: string
}Advanced Intelligence
guided_path
Generate a narrative tour through linked notes starting from a seed note.
{
notePath: string,
supportingLimit?: number, // Default: 3
counterpointLimit?: number, // Default: 3
includeActionItems?: boolean, // Default: true
vaultPath?: string
}Output: Markdown narrative with introduction, supporting threads, counterpoints, and action items.
audit_recent_notes
Find recently modified notes missing frontmatter or structure.
{
hoursBack?: number, // Default: 72
limit?: number, // Default: 25
requiredFields?: string[], // Default: ['title', 'created']
requireHeadings?: boolean, // Default: false
vaultPath?: string
}contextual_companions
Discover notes related to a topic or seed note based on links, keywords, and recency.
{
notePath?: string, // Optional seed note
topic?: string, // Optional topic query
limit?: number, // Default: 5
vaultPath?: string
}Note: Must provide either notePath or topic.
fresh_energy
Find recently updated notes lacking backlinks or outgoing links (needing integration).
{
hoursBack?: number, // Default: 48
limit?: number, // Default: 10
minWords?: number, // Default: 80
vaultPath?: string
}initiative_bridge
Track project/initiative-tagged notes with outstanding tasks.
{
initiative: string, // Required: project identifier
frontmatterField?: string, // Default: 'project'
limit?: number, // Default: 10
vaultPath?: string
}pattern_echo
Find notes that reuse specific phrasings, bullet patterns, or framework fragments.
{
snippet: string, // Required: text pattern to find
limit?: number, // Default: 5
vaultPath?: string
}synthesis_ready
Detect clusters of interlinked notes that lack a summary/synthesis note.
{
minClusterSize?: number, // Default: 3
vaultPath?: string
}Example Use Cases
Knowledge Discovery
// Find all notes about a topic with intelligent expansion
await intelligentSearch({ query: "machine learning" });
// Discover related notes for further reading
await contextualCompanions({
topic: "neural networks",
limit: 10
});Vault Maintenance
// Audit recent work for missing metadata
await auditRecentNotes({
hoursBack: 168, // Last week
requiredFields: ['title', 'created', 'tags']
});
// Find orphaned notes needing links
await freshEnergy({ hoursBack: 72 });
// Identify note clusters needing synthesis
await synthesisReady({ minClusterSize: 4 });Project Management
// Track all tasks for a specific project
await initiativeBridge({
initiative: "Project Alpha",
frontmatterField: "project"
});
// Generate a narrative overview of a topic
await guidedPath({
notePath: "Projects/Project Alpha.md",
supportingLimit: 5,
includeActionItems: true
});Pattern Analysis
// Find notes using a specific framework
await patternEcho({
snippet: "SWOT Analysis:",
limit: 10
});Development
Scripts
npm run dev: Watch mode for developmentnpm run build: Build TypeScript to JavaScriptnpm run start: Start the MCP server
Project Structure
obsidian-mcp/
├── src/
│ ├── index.ts # MCP server and tool definitions
│ ├── vault-manager.ts # Vault operations and intelligence
│ └── query-processor.ts # Natural language query processing
├── dist/ # Compiled JavaScript (generated)
├── package.json
├── tsconfig.json
└── README.mdTechnical Details
Architecture
TypeScript with strict mode enabled
ES Modules (NodeNext)
Zod for runtime type validation
gray-matter for frontmatter parsing
glob for file pattern matching
Search Methods
The intelligent_search tool combines four search strategies:
Direct matching: Exact keyword matches in content/filenames
Link proximity: Notes connected via wiki-links
Tag expansion: Related notes via tag hierarchies
Structural context: Section-aware searching with relevance scoring
Results are merged, deduplicated, and ranked by relevance score.
Performance
No caching - all searches are real-time to avoid staleness
Lazy loading of note content for large vaults
Efficient glob patterns for file discovery
Credits
Built by Braydon with Claude (Anthropic). This MCP server was developed using test-driven development principles and extensive collaboration with Claude Code.
License
MIT License - feel free to use and modify as needed.
Contributing
Contributions welcome! Please:
Fork the repository
Create a feature branch
Make your changes with tests
Submit a pull request
Troubleshooting
"No vault path provided" error
Ensure OBSIDIAN_VAULT_PATH is set in your MCP configuration or environment variables.
MCP server not connecting
Verify the path to
dist/index.jsis absolute, not relativeEnsure the server is built (
npm run build)Check that Node.js can execute the script
Search returns no results
Verify vault path is correct
Check that
.mdfiles exist in the vaultTry using
list_directoriesto explore the vault structure
Available Tools
17 toolsappend_to_noteC
Append content to an existing note
Inputs: notePath (required), content (required), vaultPath.
audit_recent_notesA
Highlight recently modified notes that are missing required frontmatter or structure
Inputs: hoursBack, limit, requiredFields, requireHeadings, +1 more.
contextual_companionsC
Suggest adjacent notes related to a topic or seed note based on links, keywords, and recency
Inputs: notePath, topic, limit, vaultPath.
create_noteC
Create a new note with frontmatter and content
Inputs: notePath (required), title (required), content, tags, +1 more.
fresh_energyB
Find recently updated notes that lack backlinks or link coverage so you can integrate them
Inputs: hoursBack, limit, minWords, vaultPath.
get_backlinksC
Get all notes that link to a specific note
Inputs: notePath (required), vaultPath.
get_noteC
Get the full content of a specific note
Inputs: notePath (required), vaultPath.
guided_pathC
Generate a narrative tour through linked notes starting from a seed note
Inputs: notePath (required), supportingLimit, counterpointLimit, includeActionItems, +1 more.
initiative_bridgeC
Identify initiative-tagged notes with outstanding tasks so nothing slips between systems
Inputs: initiative (required), frontmatterField, limit, vaultPath.
intelligent_searchC
Advanced search using link analysis, tag hierarchies, and structural context
Inputs: query (required), vaultPath.
list_directoriesC
List directories and files in vault or specific directory
Inputs: directoryPath, vaultPath.
pattern_echoB
Search for notes that reuse a phrasing, bullet pattern, or framework fragment
Inputs: snippet (required), limit, vaultPath.
query_vaultC
Process natural language queries about your Obsidian vault
Inputs: query (required), vaultPath.
search_notesC
Search for notes by filename or content
Inputs: searchTerm (required), searchType, vaultPath.
synthesis_readyC
Flag clusters of notes that reference each other but lack a synthesis/summary note
Inputs: minClusterSize, vaultPath.
update_note_sectionC
Update a specific section of a note by heading
Inputs: notePath (required), sectionHeading (required), newContent (required), vaultPath.
write_noteC
Write or overwrite a note with new content
Inputs: notePath (required), content (required), vaultPath.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 17 tools
Most tools have distinct purposes, such as 'create_note' for creation, 'get_note' for retrieval, and 'append_to_note' for updates, with clear boundaries. However, some overlap exists between 'search_notes' and 'intelligent_search', where the latter's advanced features might cause confusion if an agent needs basic search functionality, but descriptions help differentiate them.
The naming is mixed, with some tools using verb_noun patterns like 'create_note' and 'update_note_section', while others use more descriptive phrases like 'contextual_companions' and 'synthesis_ready'. This inconsistency makes the set less predictable, but the names remain readable and convey intent, avoiding chaotic styles.
With 17 tools, the count is slightly high but reasonable for managing an Obsidian vault, covering operations from basic CRUD to advanced analytics and workflow management. It feels comprehensive without being overwhelming, though it borders on heavy for a note-taking domain, with some tools possibly overlapping in functionality.
The tool set provides complete coverage for note management, including creation, retrieval, updating, and deletion (implied via overwrite), along with advanced features like search, linking analysis, and workflow integration. There are no obvious gaps; agents can perform full lifecycle operations and complex queries without dead ends.
Maintenance
Related MCP Connectors
Search your Obsidian vault to quickly find notes by title or keyword, summarize related content, a…
Search and reason over your Obsidian-style Markdown vault, right from ChatGPT.
Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…
Search, read, and safely update Markdown notes in your connected Phasoric knowledge vaults.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables comprehensive management of Obsidian vaults with full CRUD operations, advanced search, link/tag extraction, backlinks discovery, frontmatter editing, and template-based note creation through natural language.16MIT
- FlicenseNot gradedqualityNot gradedmaintenanceEnables AI assistants to read, write, search, and navigate Obsidian vault notes with support for CRUD operations, full-text search, graph navigation, daily notes, and frontmatter management.3,650 npm-
- FlicenseAqualityDmaintenanceEnables interaction with multiple Obsidian vaults through natural language, supporting note operations, search, and vault management with both REST and filesystem backends.17-
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Obsidian vaults by creating, reading, editing, deleting, searching, and organizing notes, tags, and folders across multiple vaults.16MIT