Chronica MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
git clone https://github.com/Nic9dev/Chronica.git
cd Chronica
python -m venv .venv
pip install -r requirements.txt
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add -e "PYTHONPATH=${PYTHONPATH}" chronica -- python "<FULL_PATH_TO_CHRONICA>/dist/index.js"

Replace <FULL_PATH_TO_CHRONICA>/dist/index.js with the actual folder you prepared in step 1.

Required:PYTHONPATH
README.md

A persistent memory layer for Claude Desktop via MCP

Chronica 🗝️

A persistent memory layer for Claude Desktop via MCP
Claude Desktopに長期記憶を与えるMCPサーバー

"AI conversations forget everything when the session ends.
Chronica remembers — so Claude can pick up right where you left off."


What is Chronica?

Chronica is a Model Context Protocol (MCP) server that gives Claude Desktop persistent, structured memory across sessions.

When you start a new conversation, Claude automatically calls chronica.compose_opening — and greets you with awareness of:

  • ✅ The current time (PC local timezone, auto-detected)
  • ✅ How long it's been since your last conversation
  • ✅ What you were talking about last time

No more "I don't have context from previous sessions." Chronica solves this at the architecture level.


Chronicaとは?

Chronicaは、Claude Desktopに会話をまたいだ記憶を持たせるためのMCPサーバーです。

AIとの会話は、セッションが終わるとすべてリセットされます。
Chronicaを導入すると、Claudeが次回の会話開始時に自動で記憶を読み込み、自然に続きから話せるようになります。


Features / 機能

Tool Description
compose_opening 会話開始時に時刻・経過時間・前回トピックをコンテキスト生成
save_entry 会話内容をClaudeが自動保存(メモ・決定・タスクなど5種)
search タグ・種別・スレッドで記憶を検索
timeline 期間指定でタイムラインを取得
summarize 日次・週次・決定事項のサマリー生成
get_last_seen 最後に会話した時刻を取得
create_thread スレッド(会話トピック)を作成
list_threads スレッド一覧を取得
get_thread_info スレッドの詳細情報を取得

Curation UI(キュレーション画面)

Streamlit製の管理UIで、蓄積した記憶を整理できます。

  • 📋 記憶の一覧表示(種別・タグでフィルタ)
  • 🗑️ 不要な記憶の削除(編集不可・削除のみ)
  • 📊 トークン使用量の可視化(TOP 10・使用率)

Architecture / アーキテクチャ

Claude Desktop (Sonnet)
        │ MCP Protocol (STDIO)
        ▼
Chronica MCP Server (Python)
  └── src/chronica/
        ├── tools.py       # 9 MCP tools
        ├── opening.py     # Context generation
        ├── summarize.py   # Summary generation
        ├── store.py       # SQLite persistence
        └── timeparse.py   # Relative time parsing
        │ SQLite
        ▼
data/chronica.sqlite3

Design philosophy: Chronica is the single source of truth for time and memory structure. Claude acts purely as the interface — preventing hallucination by trusting only Chronica's structured output.


Requirements / 必要な環境


Installation / インストール

クイックセットアップ(推奨)

プロジェクトルートで以下を実行すると、仮想環境・依存パッケージ・Claude Desktop設定を一括で行います。

# Windows (PowerShell)
.\setup.ps1

# Windows (cmd)
setup.bat
# macOS / Linux
chmod +x setup.sh
./setup.sh

完了後、Claude Desktop / Claude Code を再起動してください。

Claude Code を使っている場合
セットアップ後、Chronica フォルダを開いて会話を開始すると、.mcp.json により Chronica が自動で読み込まれます。初回は MCP サーバーの利用許可を求められる場合があります。

「MCPサーバーは追加されていません」と表示される場合
claude.ai からダウンロードした MSIX 版は、別の設定パスを使用します。.\setup.ps1 を再実行すると、両方のパスに設定が書き込まれます。


手動セットアップ

1. Clone the repository
git clone https://github.com/Nic9dev/Chronica.git
cd Chronica
2. Create virtual environment / 仮想環境を作成
python -m venv .venv

# Windows
.venv\Scripts\activate

# macOS
source .venv/bin/activate
3. Install dependencies / 依存パッケージをインストール
pip install -r requirements.txt
4. Configure Claude Desktop / Claude Desktopに設定を追加

Claude Desktopの設定ファイル(claude_desktop_config.json)に以下を追加してください。

設定ファイルの場所 / Config file location:

  • Windows (MSIX版 / claude.aiからDL): %LOCALAPPDATA%\Packages\Claude_*\LocalCache\Roaming\Claude\claude_desktop_config.json
  • Windows (従来版 / exeインストール): %APPDATA%\Claude\claude_desktop_config.json
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

.\setup.ps1 を実行すると、MSIX版・従来版を自動検出して適切なパスに設定を書き込みます。

{
  "mcpServers": {
    "chronica": {
      "command": "C:/path/to/Chronica/.venv/Scripts/python.exe",
      "args": ["C:/path/to/Chronica/run_server.py"],
      "env": {
        "PYTHONPATH": "C:/path/to/Chronica/src"
      }
    }
  }
}

⚠️ C:/path/to/Chronica の部分はご自身の実際のパスに書き換えてください。
⚠️ Windowsでは / を使ってください(\ は不可)。

5. Restart Claude Desktop / Claude Desktopを再起動

設定後、Claude Desktopを再起動してください。
新しい会話を開始し、Claudeが自動で記憶を読み込むことを確認できます。


Usage / 使い方

初回起動後

新しい会話を始めると、Claudeが自動で chronica_compose_opening を呼び出し、コンテキストを読み込みます。特別な操作は不要です。

コネクタのオン/オフ(会話ごとに切り替え可能)

チャットの「+」ボタンまたは「/」でメニューを開き、「コネクタ」から Chronica をオン/オフできます。

コネクタ 記憶の保存 記憶の呼び出し 時間認識
ON 自動で行う 自動で行う あり
OFF 行わない 行わない なし
  • ON: 記憶の保存・呼び出し・時間認識が自動で行われます。
  • OFF: その会話では Chronica のツールは利用されません。記憶を使わない一時的な相談などに。

日常の使い方

  • 記憶の保存: 通常通り会話するだけ。Claudeが自動で重要な情報を保存します。
  • 記憶の検索: 「先週決めたことを教えて」など自然に聞くだけでOK。
  • キュレーションUI: 記憶が溜まってきたら、以下で整理できます。
# Windows (PowerShell)
.\run_curation.ps1

# Windows (cmd)
run_curation.bat

# または
python -m streamlit run app_curation.py

Roadmap

Phase 2(近日予定

Tools (9)

compose_openingGenerates context at the start of a conversation including time, elapsed time, and previous topics.
save_entryAutomatically saves conversation content as notes, decisions, or tasks.
searchSearches memory by tags, types, or threads.
timelineRetrieves a timeline of memories for a specified period.
summarizeGenerates daily, weekly, or decision summaries.
get_last_seenRetrieves the timestamp of the last conversation.
create_threadCreates a new conversation topic thread.
list_threadsLists all existing conversation threads.
get_thread_infoGets detailed information about a specific thread.

Environment Variables

PYTHONPATHrequiredPath to the src directory of the Chronica installation.

Configuration

claude_desktop_config.json
{"mcpServers": {"chronica": {"command": "python", "args": ["C:/path/to/Chronica/run_server.py"], "env": {"PYTHONPATH": "C:/path/to/Chronica/src"}}}}

Try it

What were we talking about in our last session?
Summarize the key decisions we made regarding the project last week.
Find all tasks I saved related to the marketing strategy.
How long has it been since we last discussed the database migration?

Frequently Asked Questions

What are the key features of Chronica?

Persistent, structured memory across Claude Desktop sessions. Automatic context generation including time awareness and previous topics. Automated saving of notes, decisions, and tasks. Streamlit-based curation UI for managing and filtering stored memories. Thread-based organization for conversation topics.

What can I use Chronica for?

Maintaining continuity in long-term coding projects across multiple days. Tracking decisions and action items from recurring meetings with Claude. Summarizing project progress over weekly intervals. Retrieving specific information or context from past brainstorming sessions.

How do I install Chronica?

Install Chronica by running: .\setup.ps1

What MCP clients work with Chronica?

Chronica works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Chronica docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare