Skip to main content
Glama

Obsidian Diary MCP Server

by madebygps

Obsidian Diary MCP Server

Smart journaling with AI-powered prompts and automatic backlinks for Obsidian.

Features: Dynamic reflection prompts • Smart backlinks • AI theme detection

Quick Start

# Install uv sync # Configure diary path export DIARY_PATH="/path/to/your/diary" # Run uv run fastmcp run src/obsidian_diary_mcp/server.py

GitHub Copilot CLI Setup

/mcp add
  • Name: obsidian-diary

  • Command: uv run fastmcp run src/obsidian_diary_mcp/server.py

  • Working Directory: /path/to/this/repo

  • Environment: {"DIARY_PATH": "/path/to/your/diary"}

Daily Workflow

  1. Create today's entry:

    copilot "create diary entry file"
  2. Write in Obsidian - file created with AI-generated prompts based on recent entries

  3. Save with backlinks:

    copilot "save diary entry with today's content"
  4. Backlinks appear automatically - refresh Obsidian to see connections

Other commands:

copilot "list recent entries" copilot "read diary entry for yesterday" copilot "refresh all backlinks"

How It Works

AI Prompts: Uses LLM sampling to analyze your recent entries and generate personalized reflection questions

Smart Backlinks: AI extracts themes from content to automatically link related entries with [[YYYY-MM-DD]] format

No Hardcoded Content: Everything is dynamically generated based on your actual writing patterns

Tools Available

  • create_diary_template(date?) - Generate template with AI prompts

  • create_diary_entry_file(date?) - Create file with AI prompts

  • save_diary_entry(date, content) - Save with auto-generated backlinks

  • read_diary_entry(date) - Read existing entry

  • list_recent_entries(count?) - List recent entries

  • update_entry_backlinks(date) - Refresh backlinks for one entry

  • refresh_all_backlinks() - Refresh backlinks for all entries

Configuration

export DIARY_PATH="/path/to/diary" # Required export RECENT_ENTRIES_COUNT=3 # How many recent entries to analyze for prompts

Entry Format

Files: YYYY-MM-DD.md in your diary directory

# Thursday, October 3, 2024 ## 🤔 Reflection Prompts **How did work play out today?** ## 💭 Brain Dump Your thoughts... --- **Related entries:** [[2024-09-28]], [[2024-09-30]]

Other MCP Clients

Works with Claude Desktop and other MCP-compatible tools. See MCP documentation for setup.

License: MIT • Requirements: Python 3.8+, FastMCP

Deploy Server
-
security - not tested
F
license - not found
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

Enables AI-powered journaling in Obsidian with dynamic reflection prompts generated from recent entries and automatic backlinks between related diary entries. Supports adaptive templates that learn from writing patterns and smart content similarity linking.

  1. Quick Start
    1. GitHub Copilot CLI Setup
      1. Daily Workflow
        1. How It Works
          1. Tools Available
            1. Configuration
              1. Entry Format
                1. Other MCP Clients

                  MCP directory API

                  We provide all the information about MCP servers via our MCP API.

                  curl -X GET 'https://glama.ai/api/mcp/v1/servers/madebygps/obsidian-diary-mcp'

                  If you have feedback or need assistance with the MCP directory API, please join our Discord server