Skip to main content
Glama
Obsidian Diary MCP Server

Obsidian Diary MCP Server

by madebygps

Obsidian Diary MCP Server

AI-powered journaling with local processing, automatic backlinks, and smart prompts.

Features

  • AI-generated reflection prompts based on past 3 calendar days

  • Day citations with automatic [[YYYY-MM-DD]] backlinks

  • Brain dump prioritization (analyzes your writing, not prompts)

  • Smart #tag extraction using theme similarity

  • Todo extraction to organized checklists

  • Memory trace analysis with theme evolution

  • Sunday synthesis (weekly reflection prompts)

Related MCP server: Enhanced Obsidian MCP Server

Requirements

  • uv (Python package manager)

  • Ollama (llama3.1 or compatible model)

  • MCP client (e.g., GitHub Copilot CLI)

  • Obsidian vault (for markdown files)

Setup

1. Clone and install:

git clone https://github.com/madebygps/obsidian-diary-mcp.git
cd obsidian-diary-mcp
uv sync
chmod +x start-server.sh

2. Configure:

cp .env.example .env

Edit .env: set DIARY_PATH and PLANNER_PATH (required)

3. Add to MCP client config (e.g., GitHub Copilot CLI):

  • Name: diary

  • Command: /full/path/to/obsidian-diary-mcp/start-server.sh

Configuration (.env):

Required: DIARY_PATH, PLANNER_PATH

Optional: OLLAMA_MODEL (default: llama3.1:latest), OLLAMA_TIMEOUT (60s), OLLAMA_TEMPERATURE (0.7), OLLAMA_NUM_PREDICT (1000 tokens)

Usage

  1. Create: "create a memory log for today" → AI prompts based on past 3 days

  2. Write: Open in Obsidian, write freely in Brain Dump section

  3. Extract: "extract todos from today's entry" → Action items to planner

  4. Link: "link today's memory log" → Auto-generates [[YYYY-MM-DD]] & #tags

  5. Explore: Use Obsidian's backlinks panel and graph view

More Commands: "show themes from last week", "create memory trace for 30 days", "refresh memory links for 30 days"

Debugging

Logs in logs/ directory: server-YYYY-MM-DD.log (protocol), debug-YYYY-MM-DD.log (operations)

tail -f logs/debug-$(date +%Y-%m-%d).log  # Watch in real-time
grep ERROR logs/debug-*.log                # Find errors
grep "similarity" logs/debug-*.log         # Debug backlinks

Troubleshooting

Server issues: Check .env exists with DIARY_PATH and PLANNER_PATH set. Run ./start-server.sh directly to test.

Ollama issues: Verify running with curl http://localhost:11434/api/tags. Pull model: ollama pull llama3.1:latest

No backlinks: Need 2+ entries with similar themes (>8% overlap). Ensure Brain Dump section has substantial content (>50 chars). Check: grep "Brain Dump" logs/debug-*.log

Timeouts: Increase OLLAMA_TIMEOUT (90+) and OLLAMA_NUM_PREDICT (2000+) for reasoning models.

How It Works

  • Local AI: Ollama processes entries locally—content never leaves your machine

  • Calendar-Based: Analyzes past 3 calendar days (not just last 3 entries)

  • Brain Dump Focus: Prioritizes your writing over answered prompts for themes

  • Day Citations: AI cites [Day 1]/[Day 2] → converts to [[2025-10-07]] backlinks

  • Smart Linking: Jaccard similarity connects entries with >8% theme overlap

  • Sundays: 5 weekly synthesis prompts (vs 3 daily)

  • Todo Extraction: AI identifies action items from brain dumps

Entry Format

Each entry (YYYY-MM-DD.md) has plain text headers:

## Reflection Prompts
**1. Question with [[2025-10-06]] backlink (reason)...**

---

## Brain Dump
Your thoughts, experiences, observations...

---

## Memory Links
**Temporal connections:** [[2025-10-05]] • [[2025-10-04]]
**Topic tags:** #career-growth #self-reflection

License

MIT • Python 3.13+ • FastMCP 2.12.4+ • Ollama

Available Tools

5 tools
create_diary_templateB

Create a new diary entry template with reflection prompts based on recent entries.

Args: date: Date for the entry in YYYY-MM-DD format. If not provided, uses today's date.

Returns: A formatted diary template with reflection prompts

Inputs: date. Returns: result

list_recent_entriesB

List recent diary entries.

Args: count: Number of recent entries to list (default: 10)

Returns: A list of recent entry dates

Inputs: count. Returns: result

read_diary_entryB

Read an existing diary entry.

Args: date: Date of the entry in YYYY-MM-DD format

Returns: The diary entry content

Inputs: date (required). Returns: result

save_diary_entryB

Save a diary entry and automatically add relevant backlinks.

Args: date: Date for the entry in YYYY-MM-DD format content: The diary entry content

Returns: Success message with the file path and auto-generated backlinks

Inputs: content (required), date (required). Returns: result

update_entry_backlinksB

Update the backlinks for an existing diary entry based on its current content.

Args: date: Date of the entry in YYYY-MM-DD format

Returns: Success message with updated backlinks

Inputs: date (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose with no overlap: create_diary_template generates templates, list_recent_entries lists entries, read_diary_entry reads content, save_diary_entry saves new entries, and update_entry_backlinks updates backlinks. The descriptions reinforce these distinct functions, making misselection unlikely.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern with clear, descriptive names (e.g., create_diary_template, list_recent_entries). There are no deviations in naming style, making the set predictable and easy to understand at a glance.

    Tool Count5/5

    With 5 tools, this server is well-scoped for a diary management system. Each tool serves a specific, necessary function (CRUD operations and backlink management) without redundancy, making the count appropriate for the domain's scope.

    Completeness4/5

    The toolset covers core diary operations well: create (via save_diary_entry), read (read_diary_entry), list (list_recent_entries), and update (update_entry_backlinks), plus template creation. A minor gap is the lack of a delete tool, but agents can work around this, and the surface supports essential workflows without dead ends.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Turns your Obsidian vault into an AI memory palace, enabling AI assistants to store knowledge with intent-based organization, retrieve information through full-text search, auto-link related notes, and query using Dataview syntax while maintaining provenance tracking.
      27 npm
      AGPL 3.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Syncs Obsidian notes into a temporal knowledge graph and exposes 23 MCP tools for AI assistants to read, search, and write to your vault, enabling persistent memory across conversations.
      83
      MIT

    Appeared in Searches