Day One MCP Server
# Day One MCP Server
An MCP server that provides read/write access to your [Day One](https://dayoneapp.com) journal entries.
## Features
- **Read entries** from your Day One database (read-only access)
- **Create entries** via the Day One CLI (preserves sync integrity)
- **Full-text search** with FTS5 - relevance ranking, phrase matching, boolean operators, and proximity search
## Setup
### Prerequisites
- Day One app installed and run at least once (creates the database)
- Day One CLI available (`dayone` command)
### Configure Claude Desktop
Add this to your Claude Desktop config (`~/Library/Application Support/Claude/claude_desktop_config.json` on macOS):
```json
{
"mcpServers": {
"dayone": {
"command": "uvx",
"args": ["--from", "git+https://github.com/olivernormand/dayone-mcp", "dayone-mcp"]
}
}
}
```
## Available Tools
### Read
| Tool | Description |
|------|-------------|
| `read_recent_entries` | Get recent journal entries with optional `full_text` parameter |
| `search_entries` | Basic substring search across entry text |
| `get_entry` | Retrieve one entry in full by UUID |
| `list_journals` | List all journals with entry counts |
| `get_entry_count` | Get total entry count (optionally by journal) |
| `get_entries_on_this_day` | "On This Day" - entries from this date in previous years |
Search and listing tools print each entry's UUID in parentheses, which you can
pass to `get_entry` to read the complete entry behind a snippet.
### Write
| Tool | Description |
|------|-------------|
| `create_entry` | Create a new entry with optional tags, location, attachments, etc. |
### Full-Text Search (FTS)
These tools use a separate FTS5 index for fast, relevance-ranked search. This is a key differentiator from other Day One MCP implementations.
| Tool | Description |
|------|-------------|
| `fts_search` | Full-text search with relevance ranking |
| `fts_sync` | Sync/rebuild the search index |
| `fts_stats` | Get index statistics |
#### FTS Query Syntax
```
startup ideas # Entries containing both words
"morning run" # Exact phrase match
build* # Prefix match (build, building, builder)
startup NOT fintech # Boolean NOT
startup OR ideas # Boolean OR
NEAR(morning run, 5) # Words within 5 tokens of each other
```
#### FTS Filters
- `journal` - Filter by journal name
- `starred_only` - Only starred entries
- `year` - Filter by year
- `date_from` / `date_to` - Date range (YYYY-MM-DD)
- `full_text` - Return complete entry text instead of snippet
#### FTS Sync
The search index syncs automatically on server startup. To manually rebuild if needed:
```
fts_sync(full_rebuild=True)
```
## Architecture
- **Reads**: Direct SQLite database access (read-only mode)
- **Writes**: Via Day One CLI (preserves sync integrity)
- **FTS Index**: Separate SQLite database at `~/.dayone-mcp/fts_index.sqlite`
The Day One database is never modified. All writes go through the official CLI.
The search index reconciles against Day One on every sync, so entries you delete
are removed from search, and entries edited on another device are picked up even
though they sync with an older modified date.
## Configuration
All optional:
| Variable | Purpose |
|----------|---------|
| `DAYONE_CLI_PATH` | Override the CLI binary (otherwise tries `dayone`, then `dayone2`) |
| `DAYONE_DB_PATH` | Override the Day One database location |
| `DAYONE_FTS_PATH` | Override the FTS index location |
## Local Development
```bash
# Clone and install
git clone https://github.com/olivernormand/dayone-mcp
cd dayone-mcp
uv sync
# Run the server
uv run dayone-mcp
```
```bash
uv run --group dev pytest
```
## License
MIT
TDQS
Scored across 10 tools
Most tools target clearly distinct operations, and the two search tools (search_entries vs fts_search) are explicitly differentiated in their descriptions, with search_entries even recommending fts_search for advanced queries. get_entry_count vs fts_stats and the three temporal read tools are also distinguishable, leaving only mild overlap between the two search paths.
The surface is dominated by a consistent verb_noun pattern (read_recent_entries, get_entry, search_entries, list_journals, create_entry). The main deviation is the fts_ subsystem (fts_stats, fts_search, fts_sync), which mixes noun and verb styles but is internally coherent as a search-index prefix.
At 10 tools this is well within the ideal range, and each tool earns its place: entry reads, search (two flavors), create, journal listing, counts, and index maintenance. Nothing feels padded or missing at the count level.
The set covers create and multiple read/search paths plus search-index management, but there is no update/edit or delete operation for entries, which is a notable gap in the CRUD lifecycle. Journal functionality is also thin (only list_journals, no create/rename), leaving some workflows unreachable.