Obsidian Diary MCP Server
The Obsidian Diary MCP Server enables AI-powered smart journaling within Obsidian by automating entry creation, content management, and intelligent backlinking.
Core Features:
Generate diary templates with AI-powered reflection prompts based on analysis of recent entries and writing patterns
Save diary entries with automatic intelligent backlink generation to related entries using AI theme detection
Read existing entries by date in YYYY-MM-DD format
List recent entries with configurable count to track journaling history
Update backlinks for individual entries or refresh all backlinks across the diary based on current content
Create meaningful connections between entries through automatic
[[YYYY-MM-DD]]format backlinks that link thematically related diary entries
Integrates with GitHub Copilot CLI to enable natural language commands for creating diary templates and journaling assistance
Provides smart journaling capabilities for Obsidian vaults with AI-powered reflection prompts, automatic backlink generation between diary entries, and adaptive templates that learn from writing patterns
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Obsidian Diary MCP Server create a memory log for today"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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]]backlinksBrain dump prioritization (analyzes your writing, not prompts)
Smart
#tagextraction using theme similarityTodo 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.gitcd obsidian-diary-mcpuv syncchmod +x start-server.sh2. Configure:
cp .env.example .envEdit .env: set DIARY_PATH and PLANNER_PATH (required)
3. Add to MCP client config (e.g., GitHub Copilot CLI):
Name:
diaryCommand:
/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
Create:
"create a memory log for today"→ AI prompts based on past 3 daysWrite: Open in Obsidian, write freely in Brain Dump section
Extract:
"extract todos from today's entry"→ Action items to plannerLink:
"link today's memory log"→ Auto-generates[[YYYY-MM-DD]]&#tagsExplore: 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 backlinksTroubleshooting
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]]backlinksSmart 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-reflectionLicense
MIT • Python 3.13+ • FastMCP 2.12.4+ • Ollama
Available Tools
5 toolscreate_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
Scored across 5 tools
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.
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.
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.
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
Related MCP Connectors
Your private journal that writes back, inside Claude, ChatGPT, Muse or any MCP client. Ask what you have been writing about, read your entries with Dayora replies and see your moods; with write access, save an entry or log a mood from the chat. Nothing can be edited or deleted. Sign in with OAuth; a free Dayora account is enough.
Search your Obsidian vault to quickly find notes by title or keyword, summarize related content, a…
Turn your notes, links and conversations into a Living Brain your AI tools share and build on.
Trading journal in Obsidian. Ask Claude or ChatGPT about your trades; edits are previewed first.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceTurns 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 npmAGPL 3.0
- AlicenseBqualityDmaintenanceEnables seamless integration between AI models and Obsidian knowledge bases with 25 advanced tools for note management, intelligent search, AI-powered content analysis, auto-linking, tag management, template systems, and knowledge graph generation.2527 npm27MIT
- AlicenseNot gradedqualityBmaintenanceSyncs 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.83MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to read, search, create, and organize notes in an Obsidian vault, with features like summarization and daily most valuable notes identification.7MIT