Skip to main content
Glama
Obsidian MCP Server
by Kynlos

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

  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

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).

Tool

Description

create_canvas

Create new canvas JSON files

add_card_to_canvas

Add text/note/media cards to canvas

add_connection_to_canvas

Connect cards with lines/arrows

create_canvas_group

Group cards together

read_canvas

Parse and read canvas structure

update_canvas_card

Modify existing canvas cards

📊 Dataview Query Execution (3 tools)

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

Tool

Description

execute_dataview_query

Run Dataview DQL queries and return results

create_dataview_codeblock

Insert dataview query blocks into notes

validate_dataview_query

Check if query syntax is valid

🌐 Graph Analysis (5 tools)

Analyze your knowledge network programmatically.

Tool

Description

generate_graph_data

Build graph structure from vault links (nodes/edges)

find_note_clusters

Identify groups of related notes

calculate_note_centrality

Find most connected/important notes

get_shortest_path

Find link path between two notes

find_isolated_notes

Notes with few/no connections

🔗 Advanced URI Generation (4 tools)

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

Tool

Description

generate_obsidian_uri

Create obsidian:// URIs for deep linking

create_workspace_uri

Generate URI to open workspace

create_append_uri

Generate URI to append text to note

create_search_uri

Generate URI to search vault

📎 Attachments & Media Management (5 tools)

Manage media files and attachments in your vault.

Tool

Description

list_attachments

List all media files in vault

attach_file

Copy external file into vault attachments folder

delete_attachment

Remove attachment files

find_orphaned_attachments

Find unused media files

get_attachment_references

Find which notes use an attachment

🔍 Advanced Search & Replace (4 tools)

Powerful search and refactoring tools.

Tool

Description

regex_search_and_replace

Find and replace with regex across vault

search_in_frontmatter

Search YAML frontmatter specifically

search_by_link_type

Find specific link patterns (wiki vs markdown)

multi_file_replace

Batch find/replace across multiple notes

🏷️ Enhanced Metadata/Frontmatter (6 tools)

Advanced YAML frontmatter manipulation.

Tool

Description

update_frontmatter_field

Edit specific YAML field without rewriting note

batch_update_metadata

Update property across multiple notes

validate_frontmatter_schema

Check frontmatter against schema

list_all_properties

Get all unique property keys in vault

rename_property_globally

Rename property across all notes

get_property_values

List all values for a property

📚 Structured Content Templates (5 tools)

Create common note types with pre-formatted structures.

Tool

Description

create_from_template_with_prompts

Template with variable substitution

create_book_note

Structured book/literature note

create_person_note

Person/contact note structure

create_meeting_note

Meeting notes with agenda/action items

create_project_note

Project planning note structure

✅ Enhanced Task Management (5 tools)

Advanced task data management beyond basic TODO lists.

Tool

Description

get_tasks_by_criteria

Filter tasks by status, date, priority, tags

move_task_between_notes

Relocate task to different note

add_task_metadata

Add due date, priority, tags to task

create_task_report

Generate task summary/report

find_blocked_tasks

Tasks waiting on dependencies

📐 Advanced Markdown Formatting (6 tools)

Automate tedious formatting tasks.

Tool

Description

convert_to_callout

Wrap text in callout blocks

create_markdown_table

Generate tables programmatically

add_table_of_contents

Generate TOC from headings

create_mermaid_diagram

Generate Mermaid diagrams from data

create_math_block

Add LaTeX math blocks

standardize_formatting

Fix inconsistent markdown formatting

🔧 Vault Maintenance (5 tools)

Keep your vault healthy and organized.

Tool

Description

find_duplicate_notes

Detect similar/duplicate content

find_empty_notes

List notes with no content

find_large_notes

Notes exceeding size threshold

analyze_vault_health

Overall vault statistics/issues

cleanup_broken_references

Remove/fix broken links

🔄 Cross-Note Analysis (5 tools)

Compare, refactor, and reorganize notes.

Tool

Description

compare_notes

Diff two notes

find_similar_notes

Content similarity analysis

track_note_changes

Compare note versions over time

merge_notes_enhanced

Smart merge with options

split_note_by_headings

Break large note into smaller ones

📝 Core Note Creation (4 tools)

Tool

Description

save_code_snippet

Save code with syntax highlighting and metadata

save_thread_summary

Save AI conversation summaries with key insights

save_knowledge_note

Create general knowledge notes with tags

create_daily_note

Create daily notes with optional custom templates

✏️ Core Note Management (5 tools)

Tool

Description

read_note

Read the full content of a note

update_note

Update note content (preserves metadata by default)

delete_note

Delete a note from the vault

append_to_note

Append content to the end of an existing note

rename_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"

See 50+ more examples →


🔧 Available Commands

Command

Description

npm install

Install dependencies

npm run setup

Run interactive setup wizard

npm test

Test configuration

npm start

Start 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.



🙏 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 tools
add_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).

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).

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.

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_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_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

    C2.5/5.0

    Scored across 120 tools

    Disambiguation2/5

    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.

    Naming Consistency3/5

    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.

    Tool Count1/5

    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.

    Completeness5/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      B
      maintenance
      Connects 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.
      35
      12
      MIT
    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables 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
      -