chron
A timestamped audit trail for every AI conversation — stored locally, owned by you.
README
<div align="center"> <img src="assets/chron-icon-png-transperent.png" alt="Chron" width="96" /> <h1>Chron</h1> <p>A timestamped audit trail for every AI conversation — stored locally, owned by you.</p> </div>
AI tools show when you sent a message. Chron logs when the AI responded too — and keeps a permanent, queryable record of every exchange across every tool you use.
Works with Claude Desktop, Claude Code, Cursor, Windsurf, and any MCP-compatible AI tool.
Why
AI tools produce no audit trail by default. You cannot answer:
- What did the AI say, and when exactly?
- How long did the AI take to respond?
- What was the full conversation that produced this output?
- What did I ask Claude last week about this codebase?
Chron fixes that. Every exchange is logged with a precise local datetime (including timezone offset) to a SQLite file you own. No cloud, no vendor lock-in, no data leaving your machine.
Install
Add to your AI tool's MCP config:
{
"mcpServers": {
"chron": {
"command": "npx",
"args": ["-y", "chron-mcp"]
}
}
}
First run creates ~/.chron/chron.db automatically. No database setup, no env vars, no migrations.
What it logs
Every exchange is recorded with precise local timestamps — user message when received, assistant response when sent:
[user: 2026-05-08 14:32:11 +02:00 | assistant: 2026-05-08 14:32:43 +02:00]
The main risks of deploying this contract are...
The gap between user and assistant timestamps is real generation time. Both are stored in your local SQLite DB with full timezone offset.
Config by tool
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"chron": {
"command": "npx",
"args": ["-y", "chron-mcp"]
}
}
}
Claude Code
claude mcp add chron -- npx -y chron-mcp
Then add the skill hook to ~/.claude/settings.json:
{
"hooks": {
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "cat ~/.chron/chron.skill.md"
}
]
}
]
}
}
Cursor
Edit ~/.cursor/mcp.json:
{
"mcpServers": {
"chron": {
"command": "npx",
"args": ["-y", "chron-mcp"]
}
}
}
Windsurf
Edit ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"chron": {
"command": "npx",
"args": ["-y", "chron-mcp"]
}
}
}
Companion skill file
Chron ships with skills/chron.skill.md — a plain-text instruction file that tells the AI how to use the MCP tools automatically. Load it into your AI tool once. After that, the AI:
- Creates or resumes a named session at the start of every conversation
- Logs your message before it starts responding (captures the real user timestamp)
- Logs its response after composing it (captures the real assistant timestamp)
- Shows
[user: YYYY-MM-DD HH:MM:SS ±HH:MM | assistant: YYYY-MM-DD HH:MM:SS ±HH:MM]at the top of every response - Retrieves prior session history so context is never lost across conversations
MCP Tools
| Tool | Description |
|---|---|
start_session |
Create or resume a named audit session |
log_message |
Record a single message with the current local datetime |
log_exchange |
Log a user/assistant pair atomically (for batch imports) |
list_sessions |
List all sessions ordered by most recently active |
get_session_history |
Retrieve the full timestamped log for a session |
verify_session |
Verify the tamper-evident hash chain — detects any post-log edits |
Tamper-evident hash chaining
Every message is linked to the previous one via a SHA-256 chain:
content_hash = SHA256(session_id | role | content | created_at | prev_hash)
verify_session walks the chain and returns:
valid: true— no messages were modified after loggingvalid: false, first_break: <id>— exact row ID of the first tampered message
This turns your local log into a verifiable audit artifact. Any edit to a stored message — content, timestamp, or role — breaks the chain and is detected immediately.
Configuration
| Env var | Default | Description |
|---|---|---|
CHRON_DB_PATH |
~/.chron/chron.db |
Path to SQLite database file |
CHRON_TRANSPORT |
stdio |
Set to http to enable HTTP+SSE mode |
CHRON_API_KEY |
(none) | Bearer token for HTTP mode |
PORT |
3001 |
Port for HTTP mode |
HTTP+SSE mode (team / self-hosted)
For teams or remote use, run Chron as an HTTP server:
CHRON_TRANSPORT=http CHRON_API_KEY=your-key PORT=3001 npx chron-mcp
Point your MCP config at the URL:
{
"mcpServers": {
"chron": {
"url": "https://your-server/mcp",
"headers": {
"Authorization": "Bearer your-key"
}
}
}
}
Your data
Your audit log lives at ~/.chron/chron.db — a single SQLite file on your machine. Query it directly with any SQLite tool:
sqlite3 ~/.chron/chron.db \
"SELECT s.title, m.role, m.content, m.created_at
FROM messages m JOIN sessions s ON s.id = m.session_id
ORDER BY m.created_at"
No cloud, no telemetry, no data leaving your machine. Change the location with CHRON_DB_PATH.
License
Copyright (c) 2026 Nivaya. All rights reserved.
Source code is public for transparency only. Cloning, forking, modification, and redistribution are not permitted without explicit written permission. See LICENSE for full terms.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。