Chronicle MCP
Chronicle is a secure, local-first MCP server designed to transform your historical AI chat logs into a persistent memory vault. It seamlessly parses and indexes raw conversation exports from ChatGPT, Claude, and various IDE transcripts directly on your machine. By utilizing dynamic token-stripping, the engine automatically cleans redundant syntax wrappers to save up to 40%
README
Chronicle (Universal Chat Connector)
<p align="center"> <img src="assets/logo.png" alt="Chronicle Logo" width="400"/> </p>
Chronicle is a tool that links your AI assistants (like ChatGPT or Claude) to your local saved chats. It helps the AI find, search, compare, and copy your past conversations.
Chronicle is on the MCP Marketplace. You can install it with one click there to connect your AI directly.
NOTE:
Please give this repository a star if you used it so I can claim the special offers that are given to open-source contributers.
What Chronicle Does
- Client Folders: Keeps your saved chats organized in folders for different AIs like ChatGPT or Claude.
- Special Search: Helps the AI find past chats by searching for similar meanings and not just exact matching words. You can also search for files saved between certain dates or group files by topic.
- Token Efficiency: Hides large chunks of code or shortens very long messages when reading past chats. This helps save data limits and keeps the AI fast.
- Smart Helpers: Helps the AI find tasks, summarize conversations, and compare chats.
- Auto Saving: Saves your active chats automatically when they get long.
- Clean Storage: Finds and deletes duplicate files and shrinks old files to save disk space.
How to Install and Set Up
Prerequisites
You need Python version 3.10 or higher on your computer.
Step 1: Download the Files
Clone the folder from GitHub and go inside it:
git clone https://github.com/Leviathan0x0/Chronicle-MCP.git
cd Chronicle-MCP
Step 2: Set Up Python
Create a private Python setup folder and activate it:
python3 -m venv venv
source venv/bin/activate
Step 3: Install Required Packages
Install the helper software packages:
pip install -r requirements.txt
How to Import Your Past Saved Chats
You can save new chats automatically or load your old ones.
1. Auto Saving
When you chat with an AI that has Chronicle connected, the AI will automatically save your chat in the background to your computer.
2. Copying Your Old Chats
If you want to load chats from before you had Chronicle:
Step A: Download your data
Go to settings inside ChatGPT or Claude. Click the export data button. You will get a zip file. Unzip this file on your computer.
Step B: Split big files
If your downloaded data is one big file with all your chats inside (like ChatGPT's conversations.json file):
# Activate your python setup folder
source venv/bin/activate
# Run the separator tool to split the big file into separate files
python3 split_chats.py
# Or run it with a custom folder path where you want the chats to go
python3 split_chats.py /path/to/your/folder
Step C: Move the files
If you have separate files for each chat:
- Copy and paste those files directly into the chats folder on your computer (located at ~/.chronicle/chats/).
- Or use the import tools from the AI to import the files.
Supported File Styles
Chronicle reads and translates different chat styles automatically:
ChatGPT Style
- How it works: ChatGPT saves chats in connected text maps. Chronicle flattens these maps, sorts them by time, and extracts the text.
Claude Style
- How it works: Claude saves chats in list style under chat_messages. Chronicle reads these lists and maps the sender names to user and assistant.
Generic Style (Cline, Continue, and others)
- How it works: Other tools save chats as simple lists. Chronicle reads these lists and matches common words for sender and message content.
Tool List
Chronicle has 25 tools to help your AI manage chats:
Core Tools
list_all_stored_chats: List your saved files page by page.search_chats_by_keywords: Search chats using keywords.read_chat_message_range: Read a range of messages with options to show shortened code to save space.save_current_conversation_state: Save active chats.
Edit Tools
delete_stored_chat: Delete a saved chat file.get_chat_metadata: See file details like size and date.merge_conversation_into_archive: Add new messages to an old file.export_chat_as_markdown: Export a chat as a text document.
Search Tools
search_chats_semantic: Search files using similar meanings.get_chat_summary: Get a short summary of a chat.find_related_chats: Find chats that talk about similar things.filter_chats_by_date_range: Find chats saved between two dates.
Sync Tools
register_session_for_auto_save: Mark a chat to save later.trigger_auto_save_on_session_end: Save marked chats now.watch_chats_folder: Watch your folders for new or changed files.import_chat_from_content: Import a chat from text.import_chat_from_local_path: Import a chat from a local file.sync_agent_transcripts: Sync saved chats from tools like Cursor, Continue, or Cline.sync_cursor_agent_transcripts: Sync saved chats from Cursor (older version).
Info Tools
extract_action_items: Find tasks and to-do lists in your chats.build_knowledge_index: Group your files by topic.compare_two_chats: See what two chats have in common and what is unique.generate_project_brief_from_chats: Combine chats into a project summary document.
System Tools
configure_connector_settings: Change settings like file size limits.compress_old_chat_archives: Compress old files to save space.deduplicate_stored_chats: Find and delete duplicate files.get_server_capabilities: See the list of all tools.
Connecting to Your AI
Claude Code
If you downloaded the code manually, run this command in your terminal. Note: You must change /absolute/path/to/ to the actual folder path where you saved the files on your computer.
claude mcp add-json chronicle '{"command": "python3", "args": ["/absolute/path/to/Chronicle-MCP/chat_server.py"]}'
If you installed the tool via the marketplace or npm, you do not need to use a folder path. Run this command instead:
claude mcp add-json chronicle '{"command": "npx", "args": ["-y", "chronicle-mcp"]}'
Cursor or VS Code
If you downloaded the code manually, go to Cursor settings, find the MCP section, and add a command tool:
- Name: Chronicle
- Command:
python3 /absolute/path/to/Chronicle-MCP/chat_server.py
If you installed the tool via the marketplace or npm, add this command instead:
- Name: Chronicle
- Command:
npx -y chronicle-mcp
Testing Your Setup
You can run the test tool to make sure everything works:
python3 test_all_tools.py
License
This project uses the MIT License. See the LICENSE file for details.
<!-- mcp-name: io.github.Leviathan0x0/chronicle-mcp -->
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。