Labsco
Rwb3n logo

Obsidian

โ˜… 36

from Rwb3n

A server for interacting with your Obsidian vault.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeAdvanced setup

Obsidian MCP Server Banner

Obsidian MCP Tool Server

This project provides a Model Context Protocol (MCP) server that exposes tools for interacting with an Obsidian vault.

Table of Contents

Features

Allows MCP clients (like AI assistants) to:

  • Read and write notes
  • Manage note metadata (frontmatter)
  • List notes and folders
  • Search notes by content or metadata
  • Manage daily notes
  • Get outgoing links, backlinks, and tags

Available MCP Tools

  • list_folders
  • list_notes
  • get_note_content
  • get_note_metadata
  • get_outgoing_links
  • get_backlinks
  • get_all_tags
  • search_notes_content
  • search_notes_metadata
  • search_folders
  • create_note
  • edit_note
  • append_to_note
  • update_note_metadata
  • delete_note
  • get_daily_note_path
  • create_daily_note
  • append_to_daily_note

Roadmap

For a detailed, phased implementation plan including error handling considerations, please see the ROADMAP.md file.

This project is actively developed. Here's a look at planned features:

v1.x (Near Term)

  • Template-Based Note Creation:
    • Configure a template directory (OMCP_TEMPLATE_DIR).
    • Implement create_note_from_template tool (using template name, target path, optional metadata).
    • Add tests for template creation.
  • Folder Creation:
    • Implement create_folder utility function.
    • Implement create_folder MCP tool.
    • Add tests for folder creation.

v1.y (Mid Term / Future Enhancements)

  • Variable substitution in templates (e.g., {{DATE}}).
  • list_templates tool.
  • Advanced note update tools (e.g., append_to_note_by_metadata).
  • list_vault_structure tool for comprehensive vault hierarchy view.
  • Comprehensive testing review and expansion.

v2.x+ (Potential Ideas / Longer Term)

  • Organization Tools:
    • move_item(source, destination) (Initial version might not update links).
    • rename_item(path, new_name) (Initial version might not update links).
  • Content Manipulation Tools:
    • replace_text_in_note(path, old, new, count).
    • prepend_to_note(path, content).
    • append_to_section(path, heading, content) (Requires reliable heading parsing).
  • Querying Tools:
    • get_local_graph(path) (Combine outgoing/backlinks).
    • search_notes_by_metadata_field(key, value).
  • Plugin Integration Tools:
    • Dataview Integration:
      • execute_dataview_query(query_type, query) - Run Dataview queries and get structured results
      • search_by_dataview_field(field, value) - Search notes by Dataview fields
    • Task Management:
      • query_tasks(status, due_date, tags) - Search and filter tasks across vault
    • Kanban Integration:
      • get_kanban_data(board_path) - Get structured kanban board data
    • Calendar Integration:
      • get_calendar_events(start_date, end_date) - Query calendar events and tasks