Server data from the Official MCP Registry
Local MCP server to sync, clean, and index AI chat logs locally. Saves up to 40% context tokens.
Local MCP server to sync, clean, and index AI chat logs locally. Saves up to 40% context tokens.
Chronicle is a local chat management tool with reasonable security fundamentals but several concerns warrant attention. Path traversal protections are present but inconsistently applied, file operations lack comprehensive error handling, and there are minor input validation gaps. The server operates entirely locally without network exfiltration risks, but users should be aware of file system access scope and the need for careful configuration of external transcript directories. Supply chain analysis found 3 known vulnerabilities in dependencies (0 critical, 3 high severity). Package verification found 1 issue.
4 files analyzed · 12 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
This plugin requests these system permissions. Most are normal for its category.
Add this to your MCP configuration file:
{
"mcpServers": {
"io-github-leviathan0x0-chronicle-mcp": {
"args": [
"chronicle-mcp-server"
],
"command": "uvx"
}
}
}From the project's GitHub README.
Chronicle is a production-grade Model Context Protocol (MCP) server designed to sync, clean, format, and index local artificial intelligence chat transcripts. By bridging the gap between local editor history and large language model contexts, Chronicle allows agents to search, compare, retrieve, and reference past conversation logs. It features optimized token-saving heuristics that compress code blocks and limit message lengths, reducing context window utilization by up to 40 percent.
AI providers and editor clients save conversation logs in diverse formats. Chronicle normalizes these structures into a standard role-and-content message format:
Large chat logs can quickly exhaust context windows and increase API costs. Chronicle implements proactive token-saving mechanisms:
To verify these savings, we executed multi-turn conversation benchmarks. The graph below displays total token usage over a sequence of message turns:

By condensing repetitive syntax and large raw code snippets, Chronicle achieves up to 40 percent token savings, directly lowering API usage costs and preventing context-window exhaustion.
To make workspace searches extremely sharp and retrieve context-aware answers, Chronicle incorporates a state-of-the-art retrieval pipeline:
filename__chunk_idx).k1 = 1.5 and b = 0.85). The parameter b = 0.85 enforces an aggressive length penalty, which ensures long, rambling chat logs do not overshadow short, precise bug fixes.The cli.py file serves as the system's entry point, registering a unified chronicle command on the system path via the pyproject.toml configuration (chronicle = "cli:main").
Chronicle features an interactive, zero-dependency TTY setup wizard. Running chronicle setup or executing chronicle without arguments in an interactive terminal starts the setup flow:
[!TIP] The setup wizard is styled with a premium purple theme, supporting arrow-key navigation, spacebar toggles, inline input editing, and real-time path validation!
Keyboard Navigation & Controls
Use the following controls when interacting with the select menu:
| Command / Action | Key Control | Description |
|---|---|---|
| Move Highlight | ▲ Up / ▼ Down Arrow Keys | Navigates the interactive list focus |
| Toggle Checkbox | Spacebar | Selects or deselects the highlighted app |
| Enter Custom IDE | Navigate to Other & type | Type custom app directory directly inline |
| Erase Character | Backspace | Removes characters inside the custom entry |
| Confirm & Inject | Enter | Validates target existence and runs config injection |
| Cancel Setup | Ctrl + C or Escape | Aborts setup process cleanly |
Wizard Phases & Actions
The wizard guides you through the following phases:
| Step | Phase Name | What You Do | Result & Behavior |
|---|---|---|---|
| Step 1 | Monolithic Split Engine | Input JSON file path (or press Enter to skip) | Automatically partitions unified chat history exports |
| Step 2 | Storage Directory Configuration | Specify directory path (or press Enter for default) | Creates local storage folder for transcripts |
| Step 3 | Interactive IDE Selection | Toggle checkboxes, navigate submenus, type custom targets | Performs TTY selection and checks path validation |
| Step 4 | Config Injection & Live Dashboard | Review final summary configuration | Injects server configs into target IDE settings |
[!IMPORTANT] HOW TO USE THE WIZARD — A STEP-BY-STEP SHOWCASE GUIDE
- Start the Process: Launch the wizard with
chronicle setupin your terminal.- Split Monolithic Files: Paste the path to your exported
conversations.json(from ChatGPT or Claude). This splits them into clean individual threads inside your chats folder.- Define Your Chats Directory: Keep the default
~/universal-chatsfolder or type a custom path.- Select Your Target IDEs:
- Press
Down Arrowto scroll down to VS Code, Trae, etc.- Press
Spaceto toggle selections.- If you select Antigravity, checking it will automatically expand sub-choices (Antigravity IDE, Antigravity 2.0, Antigravity CLI) right underneath!
- Scroll down to Other (Enter custom entry) and type any system-specific folder name to add emerging editors.
- Real-time Path Validation: If the custom configuration path parent doesn't exist, a warning alerts you at the bottom:
⚠ App/IDE "<name>" was not found on your system.. Erase it withBackspaceor type a valid path to proceed.- Complete and Launch: Press
Enterto write the JSON configuration file for all selected apps. The Live Environment Dashboard will display a complete summary of your workspace configs.
Run the setup command:
chronicle setup
The wizard asks if you want to partition any monolithic chat logs (such as the single conversations.json from ChatGPT/Claude exports) into separate files in your new storage folder:
── Chronicle Archive Setup ─────────────────────────────────────
Do you want to split a single conversations.json file?
Enter path to export file (or press ENTER to skip):
Define the folder path where Chronicle will clean and store all conversation history:
Enter path to folder containing your conversations [Default: ~/universal-chats]:
✓ Using existing storage directory: /Users/username/universal-chats
Successfully set chats directory to: /Users/username/universal-chats
An interactive selection menu with a premium purple theme. Navigate with the arrow keys, toggle checkboxes with the Spacebar, edit custom inputs inline, and press Enter to confirm:
Please select the applications/IDEs where you want to install Chronicle MCP:
(Use arrow keys to navigate, Space to toggle, Enter to confirm)
[✓] Cursor
[ ] VS Code (Cline / Roo Code)
[ ] Trae IDE
[ ] Claude Code
[ ] Windsurf
[ ] Claude Desktop
[ ] ChatGPT Desktop
❯ [✓] Antigravity
[✓] Antigravity IDE
[ ] Antigravity 2.0
[ ] Antigravity CLI
Other (Enter custom entry):
[!NOTE] If you enter a custom app/IDE name under "Other" that does not exist on your system, the wizard's built-in path validation checker will instantly display a warning at the bottom:
⚠ App/IDE "mycustomide" was not found on your system.
Once selections are confirmed, Chronicle automatically resolves uvx paths on your system, writes the MCP server configuration into each selected app, and presents a live environment dashboard summary:
── Chronicle Environment Live ──────────────────────────────────
✓ Storage Folder : /Users/username/universal-chats
✓ Auto-Saved Configs for: [Cursor, Antigravity IDE]
How to run the server manually:
$ uvx --from chronicle-mcp-server chronicle
recalled in <1ms · 100% local · zero cloud
────────────────────────────────────────────────────────────────
When run without subcommands, the chronicle command behaves contextually:
It accepts options like --chats-folder to configure custom storage directories, and exposes the subcommands add and split.
The CLI implements path resolution logic using Python's sys.platform and pathlib.Path to match standard OS conventions for user directories:
~/Library/Application Support/.%APPDATA% environment variable, falling back to ~/AppData/Roaming/ if the variable is not set.~/.config/.The CLI wrapper provides out-of-the-box support for leading AI-assisted development tools and editors:
~/.cursor/mcp.json.~/.claude.json.~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json%APPDATA%/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json~/Library/Application Support/Trae/mcp.json%APPDATA%/Trae/mcp.json~/.config/Trae/mcp.json~/.<app_name>/mcp.json). If that directory is missing, it creates the app-specific configuration in the standard application support folder for the respective platform (e.g. ~/Library/Application Support/<app_name>/mcp.json on macOS).Host clients (like Claude Desktop or Cline) spawn MCP servers within isolated subprocesses that often do not inherit the user's login shell environment variables (such as custom paths defined in .bashrc or .zshrc).
To solve this, the chronicle add utility uses Python's shutil.which("uvx") to scan the host machine path during configuration. It resolves the absolute system path of uvx (such as /opt/homebrew/bin/uvx or /usr/local/bin/uvx) and writes this absolute path directly to the IDE's JSON configuration file.
Users downloading conversational archives from ChatGPT or Claude are often provided with a single monolithic JSON file (such as conversations.json) containing hundreds of distinct threads.
The chronicle split subcommand parses these large payloads and splits them into individual JSON files:
title, name, and chat_title)./, \, *, ?, :, ", <, >, and |) and limits length.chronicle split /path/to/conversations.json --out /path/to/output_directory
By default, Chronicle stores processed archives in ~/.chronicle/chats. You can configure a custom global storage folder using the --chats-folder parameter:
chronicle --chats-folder /path/to/custom/chats
This saves the target path to a local settings file (~/.chronicle_settings.json), allowing you to centralize your archives across multiple development environments.
Chronicle consolidates its behaviors into 6 versatile, parameterized tools. This design avoids cognitive overhead for client AI models while preserving the server's complete feature set.
search_historyquery (str, default: ""): The search query string or keywords list.method (str, default: "semantic"): Search methodology. Supported options:
semantic: Standard semantic retrieval using Okapi BM25 scoring with exponential temporal decay.keyword: Exact string matching against terms in files.date_range: Filters files modified within a date interval (requires start_date and end_date).related: Finds archives semantically close to a reference file.keywords (list of strings, optional): Optional list of keywords for keyword search.start_date (str, optional): Start date string (YYYY-MM-DD) for date range filtering.end_date (str, optional): End date string (YYYY-MM-DD) for date range filtering.limit (int, default: 50): Maximum result count for keyword or date range searches.top_k (int, default: 10): Maximum matches for semantic or related chat searches.client (str, default: "default"): Subfolder client identifier.file_name (str, optional): Reference chat filename for related search.get_chat_logschat_id (str, optional): Filename of the target chat. If omitted, lists all available files.view_type (str, default: "content"): The type of information to retrieve. Supported options:
content: Message text slice within specified index ranges.metadata: File statistics including message counts and modification dates.summary: Structural summary highlighting the opener and closer context.start_msg (int, default: 1): Message slice start index (1-indexed).end_msg (int, default: 20): Message slice end index.max_msg_len (int, default: 1000): Character limit for messages to prevent token inflation. Set to 0 for unlimited.summarize_code (bool, default: True): Summarizes markdown code blocks into metadata headers.page (int, default: 1): Page index for folder listing (used when chat_id is omitted).per_page (int, default: 50): Page result limit for folder listing.client (str, default: "default"): Subfolder client identifier.sync_workspace_datasource_type (str): Source type identifier. Supported options:
raw_content: Direct JSON import from text buffers or clipboard paste.local_path: Copies a JSON file from a local path on disk.agent_transcripts: Syncs transcripts (JSON, JSONL, MD) from configured third-party client folders.cursor_agent_transcripts: Deprecated. Scans Cursor workspace project transcript folders.payload (str, dict, or list, optional): Input data payload (raw JSON text, file path on disk, or folder path).title (str, optional): Target file name or title for imports.source_dir (str, optional): Override folder directory for scanning transcripts.limit (int, default: 50): Maximum files to synchronize.client (str, default: "default"): Subfolder client identifier.compile_project_insightsinsight_type (str): Compilation format. Supported options:
action_items: Extract todos, checkboxes, and task lists.knowledge_index: Rebuild or list the topic-categorized index of files.compare_chats: Analyze and detail shared and unique terms across two files.project_brief: Synthesize summaries and action items from multiple chats into one markdown document.target_chats (list of strings, optional): List of target chat filenames for briefs or comparisons.file_name (str, optional): Target chat filename for action item extraction.file_name_a (str, optional): First chat filename for comparison.file_name_b (str, optional): Second chat filename for comparison.brief_title (str, default: "Project Brief"): Title header for compiled briefs.rebuild (bool, default: False): Re-scans all files to update the knowledge index.summary_only (bool, default: False): Returns topic file counts instead of full file lists in index lookup.client (str, default: "default"): Subfolder client identifier.maintain_storageop_type (str): Maintenance operation name. Supported options:
compress: Compresses historical archives older than a set age using Gzip.deduplicate: Content-hash based search and deletion of duplicate logs.configure: Updates auto-save message limits, paths, and transcripts.capabilities: Returns server meta-capabilities and client configurations.settings (dict, optional): Settings payload dict (for configure).days_old (int, optional): Cutoff threshold age in days for compression.dry_run (bool, default: True): Lists duplicates without performing deletions.client (str, default: "default"): Subfolder client identifier.manage_session_stateaction (str): Operation to perform. Supported options:
save: Commits active messages list to storage.register_auto_save: Registers the session for auto-saving on connection termination.trigger_auto_save: Instantly flushes pending sessions to disk.watch_folder: Reports file changes since the last execution.merge: Appends new messages to an existing chat archive.export_markdown: Converts a JSON transcript to a Markdown document.delete: Permanently deletes an archive file (requires confirm=True).conversation_name (str, optional): Active conversation name.messages (list of dicts, optional): Message list payload.force_save (bool, default: False): Saves the chat session even if below message limit thresholds.file_name (str, optional): Target file name.confirm (bool, default: False): Confirms deletion.new_messages (list of dicts, optional): Message list to merge.client (str, default: "default"): Subfolder client identifier.save_handoff_receipttouched_files (list of strings): Paths to files modified during the run.open_promises (list of strings): List of unresolved commitments or tasks left open.skipped_checks (list of strings): List of tests or validation tasks skipped.next_safe_action (str): A clear, direct prompt instructing the next agent on exactly what to do next.client (str, default: "default"): Subfolder client identifier.Install the package directly from PyPI and run the interactive setup wizard to configure your storage paths and editor integrations automatically:
pip install chronicle-mcp-server
chronicle setup
mcp (Model Context Protocol SDK).setuptools (for installation as a package).git clone https://github.com/Leviathan0x0/Chronicle-MCP.git
cd Chronicle-MCP
python3 -m venv venv
source venv/bin/activate
pip install -e .
Since editors (like Cursor or VS Code) do not notify MCP servers when a chat window or tab is closed, Chronicle implements a multi-step solution to ensure your conversation history is saved automatically:
The Chronicle server includes an exit handler registered via Python's atexit module. When you close a chat tab or close the editor, the editor terminates the stdio connection, shutting down the Chronicle process. Upon receiving this shutdown trigger, the server automatically flushes the registered pending session to the local chats folder.
For this flush to succeed, the active chat session must be registered during the conversation. Chronicle handles this setup automatically: upon server startup, it checks the active project workspace root directory and automatically creates or appends the required rules to all major rule files (such as .cursorrules, .clinerules, .windsurfrules, .clauderules, etc.).
This ensures that the AI agent is automatically instructed to register the session at the start of the chat. The generated rule states:
At the beginning of the chat session, you must call the "manage_session_state" tool with action="register_auto_save" to register this conversation. Provide a descriptive title based on the user's initial prompt. As the conversation progresses, periodically update the registration payload to keep it current.
This ensures that the chat history is registered dynamically, and Chronicle will write the complete history to your storage folder as soon as the editor terminates the connection.
Chronicle contains unit and integration tests to verify platform path resolution, parsing logic, and tool compatibility:
To execute the suite of unit tests verifying core business logic:
python3 -m unittest test_chat_connector.py
To test all 27 tools against the live storage connector:
python3 test_all_tools.py
| Features | Chronicle MCP | Mem0 | Raw RAG / Naive VecDB |
|---|---|---|---|
| Cloud Dependency | Local first (Zero Cloud dependencies) | Cloud-reliant | Cloud or complex local setup |
| Token Savings | Up to 40% reduction (Smart code folding and pruning) | None (transfers full history) | None |
| Setup Complexity | 1-click CLI installer (chronicle add) | Requires API keys and database configs | High (VecDB setups and loaders) |
| Auto-Save Support | Native via workspace rules and exit hooks | Requires manual application integration | None |
| Local Resources | Minimal CPU and RAM (light TF-IDF) | Heavy | High (vector indexing overhead) |
We welcome community contributions. To get started:
test_chat_connector.py.python3 -m unittest test_chat_connector.py
python3 test_all_tools.py
Planned future features and enhancements for Chronicle:
General & Setup Inquiries
Q: What is the benefit of the new Interactive Setup Wizard?
A: It completely automates the configuration process. In less than 10 seconds, it configures your storage directory, partitions raw monolithic conversation logs, checks system environments, validates custom paths, and injects configurations into all target applications.
Q: Why does the setup wizard use a purple theme?
A: Chronicle is designed to feel premium and state of the art. The setup wizard uses a vibrant, highly readable purple/magenta theme (
\033[1;35m) with custom cursor pointers (❯) and status checks ([✓]) for an optimized terminal experience.
Q: What happens if a custom app directory is not found on my system?
A: The interactive selector prevents invalid configurations. If you type a custom name under "Other" whose configuration directory cannot be resolved, an alert appears inline at the bottom:
⚠ App/IDE "<name>" was not found on your system.. You can easily backspace and edit the input without losing other selections.
Q: How does the Automatic Session Saving work?
A: Chronicle generates workspace rule files (e.g.
.cursorrules,.clinerules) instructing your AI agent to register the session at startup. On tab or editor shutdown, the server's process exit hooks trigger an automatic flush to write the transcripts to your storage folder.
This project is licensed under the MIT License. See the LICENSE file for details.
Be the first to review this server!
by Modelcontextprotocol · Developer Tools
Web content fetching and conversion for efficient LLM usage
by Modelcontextprotocol · Developer Tools
Read, search, and manipulate Git repositories programmatically
by Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.