MCP Hub
Back to servers

Obsidian

A highly comprehensive MCP server that integrates AI coding assistants with Obsidian vaults, featuring 121 tools for canvas management, dataview queries, graph analysis, and structured note automation.

Stars
5
Tools
68
Updated
Nov 13, 2025
Validated
Jan 11, 2026

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

🚀 Quick Start

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/Kynlos/Obsidian-MCP.git
    cd Obsidian-MCP
    
  2. Install dependencies:

    npm install
    
  3. Run the setup wizard:

    npm run setup
    

    The setup wizard will:

    • Prompt you for your Obsidian vault path
    • Create a .env configuration file
    • Configure Amp automatically for your platform (Windows/macOS/Linux)
  4. Restart Amp

  5. Test it:

    npm test
    

    Or 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/vault

Automatic Setup (Recommended)

Run the setup wizard to configure everything automatically:

npm run setup

Manual Setup

  1. Copy .env.example to .env:

    cp .env.example .env
    
  2. Configure Amp by editing the config file:

    • Windows: %APPDATA%\Amp\mcp-config.json
    • macOS/Linux: ~/.config/amp/mcp-config.json

    Add this configuration:

    {
      "mcpServers": {
        "obsidian": {
          "command": "node",
          "args": ["/absolute/path/to/Obsidian-MCP/index.js"]
        }
      }
    }
    
  3. 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).

ToolDescription
create_canvasCreate new canvas JSON files
add_card_to_canvasAdd text/note/media cards to canvas
add_connection_to_canvasConnect cards with lines/arrows
create_canvas_groupGroup cards together
read_canvasParse and read canvas structure
update_canvas_cardModify existing canvas cards

📊 Dataview Query Execution (3 tools)

Execute database-like queries on your vault (simplified implementation).

ToolDescription
execute_dataview_queryRun Dataview DQL queries and return results
create_dataview_codeblockInsert dataview query blocks into notes
validate_dataview_queryCheck if query syntax is valid

🌐 Graph Analysis (5 tools)

Analyze your knowledge network programmatically.

ToolDescription
generate_graph_dataBuild graph structure from vault links (nodes/edges)
find_note_clustersIdentify groups of related notes
calculate_note_centralityFind most connected/important notes
get_shortest_pathFind link path between two notes
find_isolated_notesNotes with few/no connections

🔗 Advanced URI Generation (4 tools)

Create obsidian:// deep links for automation and external integrations.

ToolDescription
generate_obsidian_uriCreate obsidian:// URIs for deep linking
create_workspace_uriGenerate URI to open workspace
create_append_uriGenerate URI to append text to note
create_search_uriGenerate URI to search vault

📎 Attachments & Media Management (5 tools)

Manage media files and attachments in your vault.

ToolDescription
list_attachmentsList all media files in vault
attach_fileCopy external file into vault attachments folder
delete_attachmentRemove attachment files
find_orphaned_attachmentsFind unused media files
get_attachment_referencesFind which notes use an attachment

🔍 Advanced Search & Replace (4 tools)

Powerful search and refactoring tools.

ToolDescription
regex_search_and_replaceFind and replace with regex across vault
search_in_frontmatterSearch YAML frontmatter specifically
search_by_link_typeFind specific link patterns (wiki vs markdown)
multi_file_replaceBatch find/replace across multiple notes

🏷️ Enhanced Metadata/Frontmatter (6 tools)

Advanced YAML frontmatter manipulation.

ToolDescription
update_frontmatter_fieldEdit specific YAML field without rewriting note
batch_update_metadataUpdate property across multiple notes
validate_frontmatter_schemaCheck frontmatter against schema
list_all_propertiesGet all unique property keys in vault
rename_property_globallyRename property across all notes
get_property_valuesList all values for a property

📚 Structured Content Templates (5 tools)

Create common note types with pre-formatted structures.

ToolDescription
create_from_template_with_promptsTemplate with variable substitution
create_book_noteStructured book/literature note
create_person_notePerson/contact note structure
create_meeting_noteMeeting notes with agenda/action items
create_project_noteProject planning note structure

✅ Enhanced Task Management (5 tools)

Advanced task data management beyond basic TODO lists.

ToolDescription
get_tasks_by_criteriaFilter tasks by status, date, priority, tags
move_task_between_notesRelocate task to different note
add_task_metadataAdd due date, priority, tags to task
create_task_reportGenerate task summary/report
find_blocked_tasksTasks waiting on dependencies

📐 Advanced Markdown Formatting (6 tools)

Automate tedious formatting tasks.

ToolDescription
convert_to_calloutWrap text in callout blocks
create_markdown_tableGenerate tables programmatically
add_table_of_contentsGenerate TOC from headings
create_mermaid_diagramGenerate Mermaid diagrams from data
create_math_blockAdd LaTeX math blocks
standardize_formattingFix inconsistent markdown formatting

🔧 Vault Maintenance (5 tools)

Keep your vault healthy and organized.

ToolDescription
find_duplicate_notesDetect similar/duplicate content
find_empty_notesList notes with no content
find_large_notesNotes exceeding size threshold
analyze_vault_healthOverall vault statistics/issues
cleanup_broken_referencesRemove/fix broken links

🔄 Cross-Note Analysis (5 tools)

Compare, refactor, and reorganize notes.

ToolDescription
compare_notesDiff two notes
find_similar_notesContent similarity analysis
track_note_changesCompare note versions over time
merge_notes_enhancedSmart merge with options
split_note_by_headingsBreak large note into smaller ones

📝 Core Note Creation (4 tools)

ToolDescription
save_code_snippetSave code with syntax highlighting and metadata
save_thread_summarySave AI conversation summaries with key insights
save_knowledge_noteCreate general knowledge notes with tags
create_daily_noteCreate daily notes with optional custom templates

✏️ Core Note Management (5 tools)

ToolDescription
read_noteRead the full content of a note
update_noteUpdate note content (preserves metadata by default)
delete_noteDelete a note from the vault
append_to_noteAppend content to the end of an existing note
rename_noteRename 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"

See 50+ more examples →


🔧 Available Commands

CommandDescription
npm installInstall dependencies
npm run setupRun interactive setup wizard
npm testTest configuration
npm startStart the MCP server (for debugging)

🧪 Testing

Verify your setup is working correctly:

npm test

This will check:

  • .env file exists and is valid
  • Obsidian 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

See full changelog →


🎯 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.json
  • macOS/Linux: ~/.config/amp/mcp-config.json

📚 Documentation


🤝 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


🙏 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!

Reviews

No reviews yet

Sign in to write a review