An MCP (Message Control Protocol) server designed to handle interactive journaling sessions with support for emotional analysis and automatic conversation saving.
- Automatic journaling session management
- Conversation saving in Markdown format
- Temporal analysis of conversations with timestamps
- Support for reading recent journal entries
- Chronological organization of journal entries
Depend from your MCP client, on Claude Desktop:
"mcpServers": {
"journaling": {
"command": "uv",
"args": [
"--directory",
<REPOSITORY PATH>,
"run",
"server.py"
]
}
}
The server can be configured using environment variables in .env file:
JOURNAL_DIR
: Directory for saving journal files (default: ~/Documents/journal)FILENAME_PREFIX
: Prefix for file names (default: "journal")FILE_EXTENSION
: Journal file extension (default: ".md")
If not specified, default values will be used.
Journal entries are saved with the following structure:
[JOURNAL_DIR]/
├── journal_2025-01-27.md
├── journal_2025-01-26.md
└── ...
Each journal entry includes:
- Header with date
- Conversation transcript with timestamps
- Emotional analysis
- Reflections and recurring themes
start_new_session()
: Start a new journaling sessionrecord_interaction(user_message, assistant_message)
: Record a message exchangegenerate_session_summary(summary)
: Generate and save session summaryget_recent_journals()
: Retrieve 5 most recent entries
journals://recent
: Endpoint to access recent journal entries
start_journaling
: Initial prompt