Skip to main content
Glama
MCP Journaling Server

MCP Journaling Server

by mtct

MCP 日志服务器

MCP(消息控制协议)服务器旨在处理交互式日志会话,支持情感分析和自动对话保存。

特征

  • 自动日志会话管理

  • 以 Markdown 格式保存对话

  • 带有时间戳的对话时间分析

  • 支持阅读最近的日记条目

  • 日记条目按时间顺序组织

Related MCP server: Claude Conversation Memory System

安装

依赖于您的 MCP 客户端,在 Claude Desktop 上:

    "mcpServers": {
        "journaling": {
            "command": "uv",
            "args": [
                "--directory",
                <REPOSITORY PATH>,
                "run",
                "server.py"
            ]
        }
    }

配置

可以使用 .env 文件中的环境变量来配置服务器:

  • JOURNAL_DIR :保存日志文件的目录(默认值:~/Documents/journal)

  • FILENAME_PREFIX :文件名前缀(默认值:“journal”)

  • FILE_EXTENSION :日志文件扩展名(默认值:“.md”)

如果未指定,则将使用默认值。

文件结构

日记帐分录按以下结构保存:

[JOURNAL_DIR]/
├── journal_2025-01-27.md
├── journal_2025-01-26.md
└── ...

条目格式

每个日记条目包括:

  1. 带日期的标题

  2. 带有时间戳的对话记录

  3. 情感分析

  4. 反思和反复出现的主题

API

工具

  • start_new_session() :开始新的日志会话

  • record_interaction(user_message, assistant_message) :记录消息交换

  • generate_session_summary(summary) :生成并保存会话摘要

  • get_recent_journals() :检索最近的 5 条条目

资源

  • journals://recent :访问最近日记条目的端点

提示

  • start_journaling :初始提示

Available Tools

3 tools
generate_session_summaryC

Generate a markdown summary of the journaling session.

Args: summary: The llm generated summay of the conversation

Returns: str: Confirmation message

Inputs: summary (required).

record_interactionB

Record both the user's message and assistant's response.

Args: user_message: The user's message assistant_message: The assistant's response

Returns: str: Confirmation message

Inputs: user_message (required), assistant_message (required).

start_new_sessionA

Start a new journaling session by clearing previous conversation log.

Returns: str: Welcome message with current save location

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose with no overlap: start_new_session initiates a session, record_interaction logs individual exchanges, and generate_session_summary creates a final summary. The actions (start, record, generate) and targets (session, interaction, summary) are unambiguous.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern with snake_case: start_new_session, record_interaction, and generate_session_summary. The naming is predictable and readable across the set.

    Tool Count4/5

    Three tools are reasonable for a journaling server, covering core operations (start, record, summarize). It might feel slightly thin if advanced features like editing or searching past entries are needed, but it's well-scoped for basic functionality.

    Completeness4/5

    The tools cover the essential lifecycle of a journaling session: starting, recording interactions, and summarizing. Minor gaps exist, such as no tools for retrieving or managing past sessions, but agents can work around this with the provided operations.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      An MCP server that integrates with Claude Desktop for managing personal journal entries, providing both a web viewer for browsing journals and tools for adding, searching, and analyzing journal content.
      6
      26 npm
      2
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      An MCP server that provides searchable local storage for Claude conversation history, featuring automatic topic extraction and weekly insight summaries. It enables Claude to retrieve context from past sessions through full-text search and organized file storage.
      10
      3
      MIT
    • A
      license
      A
      quality
      A
      maintenance
      An MCP server that gives Claude persistent, locally-stored memory with verification-gated lessons and a Pattern Oracle to prevent unverified guesses from becoming ingrained facts.
      13
      73 npm
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that gives Claude persistent memory by storing conversation context, entities, and enabling semantic search across sessions.
      1
      MIT