Journal engine and MCP server: capture, structure, and ask questions of your work journals
Project description
ai-journal-mcp
A local MCP server for journaling, organizing, recalling, and tracking your work. Capture what each session taught you, let it organize into a clean, queryable structure, then recall and analyze the whole archive — recurring patterns, past lessons, blog-post material. The tasks that fall out of the work live here too, linked to the entries that explain them. Plain markdown stays the source of truth, and nothing leaves your machine.
The problem
You journal the hard-won lessons — the debugging pattern, the process failure, the "this is a blog post" moment. Then they vanish. Not because you didn't write them down, but because a journal you can't interrogate is write-only memory: the insight is in there somewhere, in a file too big to reread, and the pattern recurs anyway because nothing surfaced it at the moment you needed it.
Naming a pattern in your journal doesn't prevent the next instance — but being able to recall it does. That recall is the whole point, and it's what plain markdown files alone can't give you.
What it feels like
Ask your journal a real question, mid-work, from the same LLM session you're already in:
You: "What do I keep relearning about AI-assisted development?"
Claude (via ai-journal-mcp): searches across months of entries, pulls the seven that recur on the theme, and synthesizes the through-line — "You've hit 'tests are an uneven safety net' three times since April; here are the entries and the common trigger…"
Or capture without breaking flow:
You: "Journal that — the bit about auditing every artifact when a hypothesis dies, not just the one with a test."
ai-journal-mcp writes
entries/2026-04/30-when-a-hypothesis-dies.mdwith themes and blog angles, regenerates the index views, and rebuilds search — one call, everything consistent.
What it does
Four capabilities, one local MCP server:
- Journal — capture however suits the moment: dump the whole session, jot
a single lesson, or hand it a rough list to clean up. The
add_entrytool takes freeform text and files it as a canonical entry (one per file,entries/YYYY-MM/DD-slug.md, withthemes,tags, andblog_angles) — no format discipline required. Prefer to write entries by hand? ai-journal-mcp reads what's already there as-is. - Organize — themes are metadata, not folders, so one entry can carry
several and no themed file grows without bound. The index and per-theme
views are generated, never hand-edited, so the structure can't rot back into
a megafile. Bringing a mess?
scanreports what a migration would do;migrate --applyrewrites a sprawling journal into the clean layout — originals preserved inattic/, every dedup decision logged, no data loss, ever. (The first run absorbed 1,460 entries across 340 files spanning three format eras.) - Recall & analyze — full-text + structured search across one or many
journals (
search_journal,entries_over_time,list_themes,get_entry), filtered by theme, journal, or date range. Surface recurring patterns, find unused blog material, trace when a problem first appeared. This is the payoff: the journal as raw material for posts, talks, and not repeating old mistakes. - Track — the tasks that come out of the work, as a mutable list: status,
priority, and what's blocked on what (
add_task,update_task,list_tasks). Each task links to the entries that give it context, so resuming one surfaces the reasoning behind it. Tasks are journaling's mutable sibling — separate files, their own rules, never bending the append-only entries.
Your data stays yours
- Markdown is the source of truth. The SQLite + FTS5 index is disposable — delete it anytime, it rebuilds from your files. Nothing is locked in a database you don't control.
- It runs locally. An MCP stdio server; your journal never leaves your machine.
- It doesn't demand ownership of every source. Register a journal as
indexedand ai-journal-mcp reads and searches it in place but never rewrites it — ideal for a journal that already has its own conventions.managedjournals are the ones it maintains for you. Both are searchable together, so cross-domain patterns ("what was I learning in engineering the week I learned X in deal research?") stop being invisible.
Quickstart
Install from PyPI (Python 3.11+):
pip install "ai-journal-mcp[server]" # MCP server + CLI; drop [server] for CLI-only
Register your journals in ~/.config/ai-journal-mcp/journals.toml:
[[journal]]
name = "technical"
path = "~/journal"
mode = "managed" # ai-journal-mcp owns the layout
[[journal]]
name = "deal-research"
path = "~/research/deals"
mode = "indexed" # read-only; searched but never rewritten
Wire it into Claude Code as an MCP server:
claude mcp add ai-journal-mcp -- ai-journal-mcp serve
Querying happens through the server (it builds and refreshes the index for you). The CLI handles intake and maintenance directly:
ai-journal-mcp scan ~/old-journal # dry-run intake report
ai-journal-mcp migrate ~/old-journal --apply # rewrite into the managed layout
ai-journal-mcp refresh ~/journal # regenerate JOURNAL.md + theme views
Documentation
| Doc | Contents |
|---|---|
| docs/USE_CASES.md | What the product is for, case by case |
| docs/ARCHITECTURE.md | Components, data flow, journal modes, trust boundaries |
| docs/SPECIFICATION.md | Entry format, journals.toml, parser rules, tool/CLI contracts |
| docs/ARCHITECTURE_DECISIONS.md | The "why" behind each design choice |
| docs/DEVELOPMENT.md | Dev environment setup, make targets, tooling, troubleshooting |
Development
./scripts/setup.sh # Python 3.11+: creates .venv, installs the package + dev tools
make check # lint + format-check + type-check + tests (the pre-push gate)
See docs/DEVELOPMENT.md for the full guide.
License
MIT © Solent Labs™
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ai_journal_mcp-0.2.0.tar.gz.
File metadata
- Download URL: ai_journal_mcp-0.2.0.tar.gz
- Upload date:
- Size: 71.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0c0d6bf36bf4d4d82cc46ed6545bf9680789b2733804cb39b27d8bea695d518
|
|
| MD5 |
4ad1ee38ad65b159f8f133c1be1fddc2
|
|
| BLAKE2b-256 |
ee085814a31957588c6ef1f071a0c05e545b0d9cd924cb69399d5c66110f44fe
|
Provenance
The following attestation bundles were made for ai_journal_mcp-0.2.0.tar.gz:
Publisher:
release.yml on solentlabs/ai-journal-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ai_journal_mcp-0.2.0.tar.gz -
Subject digest:
d0c0d6bf36bf4d4d82cc46ed6545bf9680789b2733804cb39b27d8bea695d518 - Sigstore transparency entry: 1886888906
- Sigstore integration time:
-
Permalink:
solentlabs/ai-journal-mcp@7543cc5d6c2298b8e70b49e4954bcc063d4c37ba -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/solentlabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7543cc5d6c2298b8e70b49e4954bcc063d4c37ba -
Trigger Event:
push
-
Statement type:
File details
Details for the file ai_journal_mcp-0.2.0-py3-none-any.whl.
File metadata
- Download URL: ai_journal_mcp-0.2.0-py3-none-any.whl
- Upload date:
- Size: 32.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72cd18da4a9b907236d62a8e72624355ca5c9d294a84d4cf659f34daf5890cf4
|
|
| MD5 |
551abd8f92e54c61c480c4c601f114a2
|
|
| BLAKE2b-256 |
95de48861572eb959001f7f285cba158cf66f5a4035ac1edcb2ca7301998d9a1
|
Provenance
The following attestation bundles were made for ai_journal_mcp-0.2.0-py3-none-any.whl:
Publisher:
release.yml on solentlabs/ai-journal-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ai_journal_mcp-0.2.0-py3-none-any.whl -
Subject digest:
72cd18da4a9b907236d62a8e72624355ca5c9d294a84d4cf659f34daf5890cf4 - Sigstore transparency entry: 1886889172
- Sigstore integration time:
-
Permalink:
solentlabs/ai-journal-mcp@7543cc5d6c2298b8e70b49e4954bcc063d4c37ba -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/solentlabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7543cc5d6c2298b8e70b49e4954bcc063d4c37ba -
Trigger Event:
push
-
Statement type: