MCP-DayOne
A Model Context Protocol (MCP) server for Day One Journal integration with Claude Desktop.
Overview
This MCP server enables Claude Desktop to interact with your Day One journal through the Model Context Protocol. Claude can create journal entries, list available journals, and get entry counts directly through natural conversation.
Related MCP server: DingTalk MCP Server V2
Features
βοΈ Write Operations (Day One CLI)
π Create journal entries with rich content and metadata
π Add attachments (photos, videos, audio, PDFs) to entries
β Mark entries as starred/important
π Add location coordinates to entries
π Enhanced date/time handling with timezone support
π Read Operations (Direct Database Access)
π NEW: Read recent journal entries with full metadata
π NEW: Search entries by text content
π NEW: List actual journals with entry counts and statistics
π NEW: Get real entry counts from database
π·οΈ NEW: View entry tags, dates, and metadata
π§ Technical
Proper error handling and validation
Direct SQLite database integration for read operations
Hybrid approach: CLI for writing, database for reading
π Easy installation with
uv
Prerequisites
Day One CLI (
dayone2) - Install from Day One websitePython 3.11+
Installation
β‘ Quick Start (5 minutes)
This MCP server is designed for zero-configuration installation - you only need to change one file path!
1. Install Prerequisites (One-time setup)
Day One CLI Installation:
Download and install Day One from the Mac App Store or Day One website
The Day One CLI is automatically included with the app - no separate installation needed!
Verify it's working:
dayone2 --version
Python and uv:
2. Clone and Setup (Automatic dependency management)
3. Validate Installation (Built-in testing)
This test script automatically:
β Verifies Day One CLI is accessible
β Tests database connectivity
β Validates MCP server functionality
β Lists available tools
π§ Provides helpful error messages if anything needs fixing
4. Configure Claude Desktop (Only one path to change!)
Add to your Claude Desktop configuration file:
Config File Location:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Configuration (replace path only):
β οΈ Only change needed: Replace /FULL/PATH/TO/mcp-dayone with your actual repository path.
5. Restart Claude Desktop
After updating the configuration, restart Claude Desktop to load the MCP server.
π What Makes This Easy:
π Automatic Detection: Database path, CLI location, all dependencies detected automatically
π¦ Zero Dependencies:
uv synchandles everything - no manual package installationπ§ͺ Built-in Validation:
test_setup.pyensures everything works before you configure Claudeπ οΈ No Code Changes: Works out-of-the-box for standard Day One installations
π± Universal Compatibility: Works with any Day One database and journal setup
π¨ Helpful Errors: Clear guidance if Day One CLI or database isn't accessible
π Ready to Use!
Once configured, you can immediately start using natural language commands like:
"Show me my recent journal entries"
"What were my journal entries on this day?"
"Create a journal entry about my day"
No additional setup, configuration files, or environment variables needed!
Usage
Once configured, you can interact with Day One through Claude Desktop:
Examples
π "On This Day" Feature
The MCP server excels at retrieving historical entries for reflection and memory recall:
Query: "Show me all my journal entries for 'on this day,' today: June 14th."
Result: Claude automatically:
Uses the
get_entries_by_datetool to search June 14th across multiple yearsGroups entries by year with "X years ago" labels
Shows detailed content previews with timestamps and metadata
Includes entry titles, photos/attachments indicators, and full context
Example Output:
This provides a powerful way to:
Reflect on past experiences from the same date
Track personal growth across years
Rediscover forgotten memories and insights
See patterns in your life and thinking
βοΈ Creating Entries
"Create a journal entry about my day" - Creates entry with your content
"Create a starred entry about my vacation with photos from /path/to/photo.jpg" - Creates entries with attachments and metadata
"Add a journal entry with location coordinates for my current trip" - Creates location-aware entries
"Add tags #work #meeting to an entry about the team standup" - Creates tagged entries
π Reading & Searching
"Show me my recent journal entries" - Displays recent entries with dates, tags, and previews
"Search my journal for entries about work" - Finds entries containing specific text
"What were my journal entries on this day?" - NEW: Shows "On This Day" entries from previous years
"Show me entries from June 14th in past years" - NEW: Date-specific historical entries
"List my Day One journals with entry counts" - Shows actual journals and statistics
"How many entries do I have?" - Gets real entry counts from database
"Find entries from last week" - Search by date ranges
Available MCP Tools
βοΈ Write Tools (CLI-based)
create_journal_entry - Create entries with rich metadata (attachments, location, tags, etc.)
create_entry_with_attachments - Specialized for file attachments (photos, videos, audio, PDFs)
create_location_entry - Specialized for location-aware entries with coordinates
π Read Tools (Database-based)
read_recent_entries - NEW: Read recent journal entries with full metadata
Parameters: limit (1-50), journal (optional filter)
Returns: Formatted entries with dates, tags, previews, starred status
search_entries - NEW: Search entries by text content
Parameters: search_text, limit (1-50), journal (optional filter)
Returns: Matching entries with context and metadata
list_journals_from_db - NEW: List actual journals with statistics
Returns: Journal names, entry counts, last entry dates
get_entry_count_from_db - NEW: Get real entry counts
Parameters: journal (optional filter)
Returns: Actual entry count from database
get_entries_by_date - NEW: Get "On This Day" entries from previous years
Parameters: target_date (MM-DD or YYYY-MM-DD), years_back (default 5)
Returns: Entries from the same date across multiple years with full content
π Legacy Tools (CLI limitations)
list_journals - Provides guidance about CLI limitations
get_entry_count - Explains CLI counting limitations
Development
Troubleshooting
Day One CLI Not Found
Verify Day One CLI is installed:
dayone2 --versionCheck that
dayone2is in your PATHInstall Day One app and CLI from: https://dayoneapp.com/guides/tips-and-tutorials/command-line-interface-cli
Claude Desktop Connection Issues
Verify the absolute path in
claude_desktop_config.jsonCheck Claude Desktop logs for MCP server errors
Restart Claude Desktop after configuration changes
Permission Issues
Ensure Day One CLI has proper permissions to access your journals
Run Day One app once to initialize if needed
CLI Limitations
Day One CLI only supports creating entries (
newcommand)Listing journals and counting entries are not supported by the CLI
Use the Day One app interface to view journals and entry counts
All entry creation features (attachments, location, etc.) work fully
License
MIT