Obsidian MCP Server
Provides comprehensive tools for managing Obsidian vaults, including note creation and editing, canvas manipulation, dataview queries, graph analysis, task management, metadata operations, attachment handling, and vault maintenance. Supports 121+ tools for automating note-taking, building knowledge bases, and organizing information.
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 create a meeting note for today's design review with the team"
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
Connect your Obsidian vault to Amp and supercharge your note-taking with AI
Use Amp (Sourcegraph's AI coding assistant) to automatically create, update, and manage notes in your Obsidian vault. Perfect for documentation, learning logs, code snippets, and building a knowledge base as you code.
🚀 Now with 121 comprehensive tools for complete Obsidian automation!
✨ Features
🎯 What's New in v4.0
🎨 Canvas Integration - Create and manipulate Obsidian Canvas boards programmatically
📊 Dataview Queries - Execute database-like queries on your vault
🌐 Graph Analysis - Analyze knowledge networks, find clusters, calculate centrality
🔗 Advanced URI Generation - Create deep links to Obsidian (obsidian:// URIs)
📎 Enhanced Attachments - Better media file management
🔍 Advanced Search & Replace - Regex search, frontmatter search, vault-wide refactoring
🏷️ Enhanced Metadata - Advanced frontmatter manipulation and batch updates
📚 Structured Templates - Pre-formatted note types (books, people, meetings, projects)
✅ Enhanced Task Management - Filter by criteria, add metadata, generate reports
📐 Advanced Formatting - Callouts, tables, TOC, Mermaid diagrams, LaTeX math
🔧 Vault Maintenance - Health analysis, find duplicates, cleanup automation
🔄 Cross-Note Analysis - Compare, merge, split notes intelligently
Core Capabilities
🤖 AI-Powered Note Creation - Let Amp create structured notes for you
📝 Code Snippet Library - Automatically save code with syntax highlighting
🧠 Knowledge Graphs - Build interconnected notes with automatic linking
📊 Thread Summaries - Save your Amp conversations for future reference
🔍 Vault Search - Search notes by content, tags, metadata, regex
🏷️ Smart Tagging - Automatic categorization and organization
🔗 Cross-Referencing - Link related notes automatically
📈 Analytics - Vault statistics, health reports, insights
💾 Export Everything - PDF, HTML, JSON, CSV, Markdown bundles
Related MCP server: Obsidian MCP Server
🚀 Quick Start
Prerequisites
Installation
Clone the repository:
git clone https://github.com/Kynlos/Obsidian-MCP.git cd Obsidian-MCPInstall dependencies:
npm installRun the setup wizard:
npm run setupThe setup wizard will:
Prompt you for your Obsidian vault path
Create a
.envconfiguration fileConfigure Amp automatically for your platform (Windows/macOS/Linux)
Restart Amp
Test it:
npm testOr in Amp:
You: "Create a note in Obsidian called 'Test' with content 'Hello from Amp!'"
⚙️ Configuration
Workspace-Relative Vaults (New!)
By default, vaults are created in your current workspace directory - no hardcoded paths needed!
# Optional: Override defaults
VAULTS_BASE_PATH=/path/to/your/vaults/folder
OBSIDIAN_VAULT_PATH=/path/to/your/default/vaultAutomatic Setup (Recommended)
Run the setup wizard to configure everything automatically:
npm run setupManual Setup
Copy
.env.exampleto.env:cp .env.example .envConfigure Amp by editing the config file:
Windows:
%APPDATA%\Amp\mcp-config.jsonmacOS/Linux:
~/.config/amp/mcp-config.json
Add this configuration:
{ "mcpServers": { "obsidian": { "command": "node", "args": ["/absolute/path/to/Obsidian-MCP/index.js"] } } }Restart Amp
🛠️ Available Tools
The Obsidian MCP provides 121 powerful tools organized into 14 categories:
🎨 Canvas Integration (6 tools)
Create and manipulate Obsidian Canvas files (JSON-based visual boards).
Tool | Description |
| Create new canvas JSON files |
| Add text/note/media cards to canvas |
| Connect cards with lines/arrows |
| Group cards together |
| Parse and read canvas structure |
| Modify existing canvas cards |
📊 Dataview Query Execution (3 tools)
Execute database-like queries on your vault (simplified implementation).
Tool | Description |
| Run Dataview DQL queries and return results |
| Insert dataview query blocks into notes |
| Check if query syntax is valid |
🌐 Graph Analysis (5 tools)
Analyze your knowledge network programmatically.
Tool | Description |
| Build graph structure from vault links (nodes/edges) |
| Identify groups of related notes |
| Find most connected/important notes |
| Find link path between two notes |
| Notes with few/no connections |
🔗 Advanced URI Generation (4 tools)
Create obsidian:// deep links for automation and external integrations.
Tool | Description |
| Create obsidian:// URIs for deep linking |
| Generate URI to open workspace |
| Generate URI to append text to note |
| Generate URI to search vault |
📎 Attachments & Media Management (5 tools)
Manage media files and attachments in your vault.
Tool | Description |
| List all media files in vault |
| Copy external file into vault attachments folder |
| Remove attachment files |
| Find unused media files |
| Find which notes use an attachment |
🔍 Advanced Search & Replace (4 tools)
Powerful search and refactoring tools.
Tool | Description |
| Find and replace with regex across vault |
| Search YAML frontmatter specifically |
| Find specific link patterns (wiki vs markdown) |
| Batch find/replace across multiple notes |
🏷️ Enhanced Metadata/Frontmatter (6 tools)
Advanced YAML frontmatter manipulation.
Tool | Description |
| Edit specific YAML field without rewriting note |
| Update property across multiple notes |
| Check frontmatter against schema |
| Get all unique property keys in vault |
| Rename property across all notes |
| List all values for a property |
📚 Structured Content Templates (5 tools)
Create common note types with pre-formatted structures.
Tool | Description |
| Template with variable substitution |
| Structured book/literature note |
| Person/contact note structure |
| Meeting notes with agenda/action items |
| Project planning note structure |
✅ Enhanced Task Management (5 tools)
Advanced task data management beyond basic TODO lists.
Tool | Description |
| Filter tasks by status, date, priority, tags |
| Relocate task to different note |
| Add due date, priority, tags to task |
| Generate task summary/report |
| Tasks waiting on dependencies |
📐 Advanced Markdown Formatting (6 tools)
Automate tedious formatting tasks.
Tool | Description |
| Wrap text in callout blocks |
| Generate tables programmatically |
| Generate TOC from headings |
| Generate Mermaid diagrams from data |
| Add LaTeX math blocks |
| Fix inconsistent markdown formatting |
🔧 Vault Maintenance (5 tools)
Keep your vault healthy and organized.
Tool | Description |
| Detect similar/duplicate content |
| List notes with no content |
| Notes exceeding size threshold |
| Overall vault statistics/issues |
| Remove/fix broken links |
🔄 Cross-Note Analysis (5 tools)
Compare, refactor, and reorganize notes.
Tool | Description |
| Diff two notes |
| Content similarity analysis |
| Compare note versions over time |
| Smart merge with options |
| Break large note into smaller ones |
📝 Core Note Creation (4 tools)
Tool | Description |
| Save code with syntax highlighting and metadata |
| Save AI conversation summaries with key insights |
| Create general knowledge notes with tags |
| Create daily notes with optional custom templates |
✏️ Core Note Management (5 tools)
Tool | Description |
| Read the full content of a note |
| Update note content (preserves metadata by default) |
| Delete a note from the vault |
| Append content to the end of an existing note |
| Rename a note file |
See complete tool documentation in AGENTS.md
💡 Usage Examples
Create a Canvas Board
You: "Create a canvas called 'Project Planning' and add cards for Frontend, Backend, and Database"Execute Dataview Query
You: "Show me all notes tagged with 'python' created this month"Generate Obsidian URIs
You: "Create a link I can use to open my Daily Note from outside Obsidian"Analyze Vault Structure
You: "Show me the most connected notes in my vault and find any isolated notes"Create Structured Notes
You: "Create a book note for 'The Pragmatic Programmer' by Andy Hunt and Dave Thomas"Advanced Formatting
You: "Create a Mermaid flowchart showing the authentication process and add it to my Security note"🔧 Available Commands
Command | Description |
| Install dependencies |
| Run interactive setup wizard |
| Test configuration |
| Start the MCP server (for debugging) |
🧪 Testing
Verify your setup is working correctly:
npm testThis will check:
.envfile exists and is validObsidian vault path is accessible
Amp configuration is correct
All dependencies are installed
Node.js version is compatible
📊 Version History
v4.0.0 (2025-11-13) - MAJOR UPDATE: Added 59 new tools (Canvas, Dataview, Graph Analysis, URIs, and much more!)
v3.1.0 - Export features (PDF, HTML, JSON, CSV)
v3.0.0 - Template system and advanced search
v2.0.0 - Task management and analytics
v1.0.0 - Initial release
🎯 Platform Support
This MCP works on:
✅ Windows (10, 11)
✅ macOS (10.15+)
✅ Linux (Ubuntu, Debian, Fedora, etc.)
Automatic configuration paths:
Windows:
%APPDATA%\Amp\mcp-config.jsonmacOS/Linux:
~/.config/amp/mcp-config.json
📚 Documentation
AGENTS.md - Complete tool reference for AI agents
SETUP.md - Detailed setup instructions
EXAMPLES.md - Real-world usage examples
CONTRIBUTING.md - How to contribute
CHANGELOG.md - Version history
🤝 Contributing
Contributions are welcome! Please read our Contributing Guide for details.
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🔗 Links
Repository: https://github.com/Kynlos/Obsidian-MCP
Amp: https://ampcode.com/
Obsidian: https://obsidian.md/
MCP Specification: https://modelcontextprotocol.io/
🙏 Acknowledgments
Kynlo for creating the original Obsidian MCP Server
Sourcegraph for Amp
Obsidian team for the amazing note-taking app
Made with ❤️ for the Amp and Obsidian communities
⭐ Star this repo if you find it useful!
Available Tools
120 toolsadd_card_to_canvasC
Add text/note/media card to canvas
Inputs: content (required), card_type (required), canvas_name (required), x, +3 more.
add_connection_to_canvasC
Connect cards with lines/arrows
Inputs: to_id (required), from_id (required), canvas_name (required).
add_table_of_contentsC
Generate TOC from headings
Inputs: filename (required), max_depth.
add_tagsC
Add tags to an existing note
Inputs: tags (required), filename (required).
add_task_metadataC
Add due date, priority, tags to task
Inputs: filename (required), metadata (required), task_text (required).
analyze_vault_healthC
Overall vault statistics/issues
Inputs: no named parameters.
append_to_noteA
Append content to the end of an existing note
Inputs: content (required), filename (required).
apply_templateC
Create a note from a template
Inputs: filename (required), template_name (required), variables.
archive_noteC
Move a note to the archive folder
Inputs: filename (required).
attach_fileC
Copy external file into vault attachments folder
Inputs: source_path (required), dest_name.
backup_vaultC
Create a timestamped backup of the entire vault
Inputs: backup_name.
batch_update_metadataC
Update property across multiple notes
Inputs: field (required), value (required), filenames (required).
broken_linksB
Find all broken wiki-links in the vault
Inputs: no named parameters.
calculate_note_centralityC
Find most connected/important notes
Inputs: limit.
cleanup_broken_referencesC
Remove/fix broken links
Inputs: fix_mode.
compare_notesC
Diff two notes
Inputs: file1 (required), file2 (required).
convert_to_calloutC
Wrap text in callout block
Inputs: text (required), filename (required), callout_type.
create_append_uriC
Generate URI to append text to note
Inputs: text (required), filename (required).
create_book_noteC
Structured book/literature note
Inputs: title (required), author (required), genre.
create_canvasC
Create a new canvas JSON file
Inputs: name (required).
create_canvas_groupC
Group cards together in canvas
Inputs: label (required), card_ids (required), canvas_name (required).
create_daily_noteC
Create a daily note with today's date
Inputs: template_content.
create_dataview_codeblockC
Generate dataview query block in note
Inputs: query (required), filename (required).
create_folderC
Create a folder in the vault for organizing notes
Inputs: folder_path (required).
create_from_template_with_promptsC
Template with variable substitution
Inputs: filename (required), template_name (required), variables.
create_markdown_tableC
Generate table programmatically
Inputs: rows (required), headers (required).
create_math_blockC
Add LaTeX math block
Inputs: expression (required), display.
create_meeting_noteC
Meeting notes with agenda/action items
Inputs: title (required), date, attendees.
create_mermaid_diagramC
Generate Mermaid diagram from data
Inputs: definition (required), diagram_type (required).
create_mocC
Create a Map of Content note from related notes
Inputs: tag (required), title (required).
create_person_noteD
Person/contact note structure
Inputs: name (required), relation.
create_project_noteD
Project planning note structure
Inputs: name (required), goal, deadline.
create_search_uriC
Generate URI to search vault
Inputs: query (required).
create_task_noteC
Create a dedicated task list note
Inputs: tasks (required), title (required).
create_task_reportC
Generate task summary/report
Inputs: output_filename, include_completed.
create_templateC
Create a reusable note template
Inputs: content (required), template_name (required).
create_vaultC
Create a new vault (folder) for organizing notes
Inputs: name (required), description.
create_workspace_uriC
Generate URI to open workspace
Inputs: workspace_name (required).
delete_attachmentC
Remove attachment file
Inputs: filename (required).
delete_noteC
Delete a note from the vault
Inputs: filename (required).
duplicate_noteC
Create a copy of a note
Inputs: filename (required), new_filename (required).
execute_dataview_queryC
Run Dataview DQL query and return results
Inputs: query (required).
export_note_htmlC
Export a note as HTML
Inputs: filename (required), output_path.
export_note_markdownC
Export note as standalone markdown with embedded content
Inputs: filename (required), output_path, resolve_links.
export_note_pdfB
Export a single note as a beautifully formatted PDF
Inputs: filename (required), output_path.
export_note_plaintextB
Export note as plain text (strips markdown formatting)
Inputs: filename (required), output_path.
export_to_pdfC
Export a note as PDF (requires markdown-pdf)
Inputs: filename (required), output_path.
export_vault_archiveC
Create a ZIP archive of the entire vault
Inputs: output_path.
export_vault_csvB
Export vault index as CSV spreadsheet
Inputs: output_path.
export_vault_jsonB
Export entire vault as structured JSON database
Inputs: output_path, include_content.
export_vault_markdown_bundleC
Export vault as markdown bundle with all links preserved
Inputs: output_path.
export_vault_pdfA
Export entire vault as a single PDF with table of contents and navigation
Inputs: include_toc, organize_by, output_path.
extract_all_todosB
Extract all TODO items from all notes
Inputs: include_completed.
extract_code_blocksC
Extract all code blocks from a note
Inputs: filename (required).
extract_linksC
Extract all links (internal and external) from a note
Inputs: filename (required).
find_backlinksB
Find all notes that link to a specific note
Inputs: filename (required).
find_blocked_tasksC
Tasks waiting on dependencies
Inputs: no named parameters.
find_duplicate_notesC
Detect similar/duplicate content
Inputs: similarity_threshold.
find_empty_notesC
List notes with no content
Inputs: no named parameters.
find_isolated_notesC
Notes with few/no connections
Inputs: max_connections.
find_large_notesC
Notes exceeding size threshold
Inputs: min_size_kb.
find_note_clustersC
Identify groups of related notes
Inputs: min_cluster_size.
find_orphaned_attachmentsB
Find unused media files
Inputs: no named parameters.
find_orphaned_notesA
Find notes with no incoming or outgoing links
Inputs: no named parameters.
find_similar_notesC
Content similarity analysis
Inputs: filename (required), limit.
find_untagged_notesB
Find notes that have no tags
Inputs: no named parameters.
generate_graph_dataB
Build graph structure from vault links (nodes/edges)
Inputs: no named parameters.
generate_obsidian_uriC
Create obsidian:// URI for deep linking
Inputs: filename (required), heading.
get_attachment_referencesB
Find which notes use an attachment
Inputs: filename (required).
get_property_valuesC
List all values for a property
Inputs: property (required).
get_shortest_pathC
Find link path between two notes
Inputs: to_note (required), from_note (required).
get_tasks_by_criteriaC
Filter tasks by status, date, priority, tags
Inputs: tag, status, priority.
import_markdown_folderC
Import all markdown files from a folder
Inputs: source_path (required), destination_folder.
link_graphC
Get graph data of note connections
Inputs: max_depth.
list_all_propertiesA
Get all unique property keys in vault
Inputs: no named parameters.
list_all_tagsB
Get all unique tags used across the vault
Inputs: no named parameters.
list_attachmentsC
List all media files in vault
Inputs: file_types.
list_backupsB
List all available vault backups
Inputs: no named parameters.
list_notesB
List all notes in the Obsidian vault
Inputs: tag_filter.
list_templatesB
List all available templates
Inputs: no named parameters.
list_vaultsB
List all available vaults
Inputs: no named parameters.
mark_task_completeC
Mark a task as complete in a note
Inputs: filename (required), task_text (required).
merge_notesC
Merge multiple notes into one
Inputs: filenames (required), output_filename (required), delete_originals.
merge_notes_enhancedC
Enhanced note merging with options
Inputs: filenames (required), output_filename (required), strategy.
most_connected_notesC
Find notes with the most connections
Inputs: limit.
move_noteC
Move a note to a different folder
Inputs: filename (required), destination_folder (required).
move_task_between_notesC
Relocate task to different note
Inputs: dest_file (required), task_text (required), source_file (required).
multi_file_replaceC
Batch find/replace across multiple notes
Inputs: find (required), replace (required), filenames (required).
note_complexityC
Analyze note complexity and readability
Inputs: filename (required).
read_canvasC
Parse and read canvas structure
Inputs: canvas_name (required).
read_noteC
Read the full content of a note from the vault
Inputs: filename (required).
regex_search_and_replaceC
Find and replace with regex across vault
Inputs: pattern (required), replacement (required), filenames.
remove_tagsB
Remove tags from an existing note
Inputs: tags (required), filename (required).
rename_noteC
Rename a note file
Inputs: new_filename (required), old_filename (required).
rename_property_globallyC
Rename property across all notes
Inputs: new_name (required), old_name (required).
save_code_snippetC
Save a code snippet to the Obsidian vault with metadata
Inputs: code (required), title (required), language (required), tags, +1 more.
save_knowledge_noteC
Save a general knowledge note to Obsidian
Inputs: title (required), content (required), tags.
save_thread_summaryC
Save a summary of an AI coding thread to Obsidian
Inputs: title (required), summary (required), tags, key_insights, +1 more.
search_by_dateB
Find notes created or modified within a date range
Inputs: end_date (required), start_date (required), date_type.
search_by_link_typeC
Find specific link patterns (wiki vs markdown)
Inputs: link_type (required).
search_by_word_countC
Find notes by word count range
Inputs: max_words (required), min_words (required).
search_in_frontmatterC
Search YAML frontmatter specifically
Inputs: field (required), value.
search_notesB
Search notes by content or tags
Inputs: tags, query.
search_regexC
Search notes using regular expressions
Inputs: pattern (required), case_sensitive.
split_note_by_headingsC
Break large note into smaller ones
Inputs: filename (required), heading_level, output_folder.
standardize_formattingC
Fix inconsistent markdown formatting
Inputs: filename (required).
suggest_linksC
AI-powered suggestions for internal links
Inputs: filename (required).
suggest_tagsC
Suggest tags for a note based on its content
Inputs: filename (required).
switch_vaultC
Switch to a different vault
Inputs: name (required).
tasks_by_tagC
Get all tasks from notes with specific tags
Inputs: tag (required).
task_statisticsB
Get statistics about tasks across the vault
Inputs: no named parameters.
track_note_changesC
Compare note versions over time
Inputs: filename (required).
update_canvas_cardC
Modify existing canvas card
Inputs: card_id (required), updates (required), canvas_name (required).
update_frontmatter_fieldC
Edit specific YAML field without rewriting note
Inputs: field (required), value (required), filename (required).
update_noteC
Update the content of an existing note
Inputs: content (required), filename (required), preserve_metadata.
validate_dataview_queryB
Check if dataview query syntax is valid
Inputs: query (required).
validate_frontmatter_schemaC
Check frontmatter against schema
Inputs: schema (required), filename (required).
vault_statsB
Get statistics about the vault (total notes, tags, etc.)
Inputs: no named parameters.
vault_timelineC
Get creation/modification timeline of notes
Inputs: granularity.
word_frequencyB
Get most frequently used words across vault
Inputs: limit, min_length.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 120 tools
Many tools overlap heavily: multiple export variants (export_to_pdf, export_note_pdf, export_note_html, export_vault_pdf), search tools (search_notes, search_regex, search_in_frontmatter, search_by_date), and duplicate/similarity tools (find_duplicate_notes, find_similar_notes, compare_notes, merge_notes/merge_notes_enhanced) have unclear boundaries. The descriptions help somewhat, but an agent would struggle to choose reliably among many near-synonyms.
Most names use snake_case, but the convention mixes clear verb_noun patterns (create_task_note, export_note_pdf) with noun phrases lacking an action (vault_timeline, note_complexity, task_statistics, word_frequency, broken_links, link_graph). This is readable but not predictable enough for a strong naming score.
With 120 tools, the surface is vastly oversized for an Obsidian vault server, especially because many tools are near-duplicates or narrow variants. This creates a high cognitive load and selection ambiguity that far exceeds a well-scoped toolset.
The server covers note CRUD, search, tags, links/graph analysis, tasks, templates, metadata/frontmatter, attachments, canvases, Dataview, exports, backups, and multi-vault operations. The domain lifecycle is exceptionally well covered with no obvious dead ends.
Maintenance
Related MCP Connectors
Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…
Turn your notes, links and conversations into a Living Brain your AI tools share and build on.
Search your Obsidian vault to quickly find notes by title or keyword, summarize related content, a…
Connect an AI assistant to a Capacities space (objects, daily notes, search).
Related MCP Servers
- AlicenseBqualityBmaintenanceConnects AI assistants directly to Obsidian vaults with intelligent note creation using templates, semantic search, smart tagging to avoid duplicates, and specialized agent roles (Guardian, Researcher, Connection Weaver) for managing knowledge bases.3512MIT
- 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-
- AlicenseBqualityDmaintenanceEnables seamless integration between AI models and Obsidian knowledge bases with 25 advanced tools for note management, intelligent search, AI-powered content analysis, auto-linking, tag management, template systems, and knowledge graph generation.2527 npm27MIT
- AlicenseBqualityNot gradedmaintenanceEnables AI assistants to search, create, and manage notes in an Obsidian vault via 40+ local tools.5213 npmMIT