Chronicle
Allows reading Gmail messages with read-only permission (gmail.readonly).
Provides read-only access to Google services such as Gmail and Google Calendar via delegated permissions.
Allows reading Google Calendar events with read-only permissions (calendar.events.readonly).
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Chronicle search my archive for vacation plans"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Chronicle
Chronicle is a local-first, provenance-preserving personal archive with a read-only Model Context Protocol (MCP) gateway. It preserves files and supported AI conversation exports, derives evidence-linked candidate memories with local models, and retrieves only the context needed for a particular question.
Chronicle is an early-stage research prototype. It is not a backup replacement, medical system, or authority on a person's identity.
Why Chronicle exists
Long-term AI memory must retain useful detail without sending an entire digital life to every model on every request. Chronicle separates the work:
Original inputs are archived with hashes, timestamps, and provenance.
Apple's on-device model performs fast routing when available.
Qwen through LM Studio proposes detailed, evidence-cited memories.
Deterministic validators reject unsupported, malformed, or unsafe claims.
A read-only MCP gateway provides bounded search-then-fetch retrieval.
Derived claims remain reviewable candidates linked to their original evidence; model output does not automatically become an authoritative profile.
Related MCP server: Engram
Current capabilities
Content-addressed local archive with SHA-256 integrity checks
Immutable versions when source files change
SQLite full-text search and provenance metadata
Lossless import of supported Claude conversation exports
Deterministic, turn-preserving conversation windows
Apple Foundation Models routing on compatible Macs
Resumable Qwen candidate extraction through LM Studio
Exact evidence-quote and speaker-authority validation
Sensitive-topic escalation and identifier blocking
Progress reporting and repeated-failure quarantine
Page-aware PDF memory with bounded retrieval
Read-only MCP overview, search, and exact-fetch tools
Optional delegated Google and Microsoft read connectors
Chronicle contains no send, delete, shell, or computer-control MCP tools.
Requirements
Core:
Python 3.11 or newer
uvfor installationmacOS, Linux, or Windows for the archive and MCP gateway
Reference configuration matching the original development machine:
Apple-silicon Mac with Apple Intelligence enabled
macOS with the Foundation Models framework available
Xcode/Swift toolchain capable of building the helper package
LM Studio local server on
127.0.0.1:1234qwen/qwen3-14b, MLX 4-bit, with an 8,192-token context
The Apple helper is optional. It checks SystemLanguageModel.default at runtime.
Chronicle does not access Siri's private system-wide index.
Installation
git clone https://github.com/The-Sequence/chronicle.git
cd chronicle
uv sync --extra dev
cp .env.example .env
./chronicle system-statusThe chronicle wrapper uses the project virtual environment. You may use
uv run personal-context-archive instead.
Build the optional Apple helper
cd apple-helper
swift build -c release
cd ..
./chronicle system-statusIf unavailable, confirm that the device supports Apple Intelligence, it is enabled, and its model has finished downloading.
Configure LM Studio
Install LM Studio.
Download
qwen/qwen3-14bin MLX 4-bit format.Load the model with context length
8192.Open Developer → Local Server.
Use port
1234; leave Serve on Local Network disabled.Start the server.
Use these .env values:
PCG_LM_BASE_URL=http://127.0.0.1:1234/v1
PCG_LM_MODEL=qwen/qwen3-14b
PCG_LM_API_KEY=lm-studio
PCG_TRIAGE_MAX_CHARS=24000The placeholder key is used because the compatible request format expects one. If LM Studio authentication is enabled, use a real local token and never commit it.
Safe first run
Do not begin with a home directory. Test a small disposable folder:
./chronicle scan "/absolute/path/to/small-test-folder"
./chronicle work-status
./chronicle search "sample topic"Private runtime data defaults to ./personal-archive. That directory, .env,
exports, caches, and model artifacts are excluded from Git.
Before using valuable data:
use FileVault or another encrypted volume;
back up
chronicle.sqlite3and theobjectsdirectory;keep LM Studio bound to localhost;
explicitly allowlist source folders;
never configure an entire home directory as a local root.
Import an AI conversation
./chronicle import-conversations "/path/to/conversation.json"
./chronicle conversation-status
./chronicle search-conversations "topic or decision"Build and route deterministic windows:
./chronicle plan-conversation 1 --limit 12
./chronicle build-conversation-windows 1
./chronicle route-conversation 1 --limit 10
./chronicle conversation-route-status 1Run bounded detailed extraction:
./chronicle preview-extraction 1
./chronicle extract-conversation 1 --max-segments 1
./chronicle extraction-progress 1
./chronicle candidate-status 1
./chronicle candidates 1 --limit 100partial means valid candidates were checkpointed while other proposals were
rejected. After three validation failures, a segment is visibly quarantined so
later segments can continue; it is not silently treated as successful.
Run the read-only MCP gateway
uv run personal-context-gatewayDevelopment inspection:
uv run mcp dev src/context_gateway/server.pyRemote deployment requires HTTPS and per-client OAuth authorization in front of
/mcp. Give each client an independent, revocable credential. Never put bearer
secrets in URLs.
Optional provider access
Start read-only with delegated permissions:
Gmail:
gmail.readonlyGoogle Calendar:
calendar.events.readonlyOutlook mail:
Mail.ReadMicrosoft Calendar:
Calendars.ReadIdentity:
openid profile offline_access User.Read
Teams is deferred because school and workplace tenants often require administrator approval. Chronicle does not bypass tenant policy.
Privacy model
The public repository contains no archive, extracted memories, conversations, OAuth tokens, model files, machine-specific paths, or private Git history.
Source text is untrusted data, never model instructions.
Filesystem reads are restricted to explicit roots.
Symlink escapes, traversal, oversized files, and disallowed extensions fail.
MCP responses are bounded and provenance-rich.
Raw sources remain authoritative.
Derived memories retain evidence and extraction-version metadata.
Sensitive identifiers are blocked from derived memory.
Failures remain visible, retryable, or quarantined.
See SECURITY.md.
Tests
uv run pytest -qTests use synthetic fixtures only and require no personal files or accounts.
Status
Chronicle is under active development. Planned work includes candidate review, contradiction-aware consolidation, compact low-token retrieval summaries, authenticated remote MCP deployment, and additional approved importers.
Attribution
Chronicle is independent and is not affiliated with Apple, Anthropic, LM Studio, Qwen, Sentient OS, OpenAI, OpenClaw, or the MCP maintainers.
Publicly documented local-first and staged-memory patterns—particularly Sentient OS—informed the architecture. Chronicle's code, prompts, schemas, and tests were independently implemented. See ACKNOWLEDGMENTS.md and THIRD_PARTY_NOTICES.md.
License
Released under the MIT License.
Available Tools
7 toolsfetchARead-only
Fetch one exact item returned by search. Never accepts raw paths or URLs.
Inputs: id (required).
fetch_document_sectionARead-only
Fetch one exact detailed memory section returned by search_document_memory.
Inputs: section_id (required).
get_document_memoryBRead-only
Get a compact overview. Sections are excluded by default and always strictly capped.
Inputs: record_id (required), section_limit, include_sections.
list_sourcesARead-only
List enabled sources and whether each is ready.
Inputs: no named parameters. Returns: result
searchBRead-only
Search selected sources. Returns bounded snippets with provenance and stable IDs.
Inputs: query (required), limit, sources. Returns: result
search_document_memoryBRead-only
Search detailed page-cited memories. Returns at most 10 bounded section summaries.
Inputs: query (required), limit, record_id. Returns: result
search_insightsARead-only
Search locally generated keep-only summaries. Use record_id with fetch to inspect evidence.
Inputs: query (required), limit. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
The tools target distinct resources (sources, insights, document memory, sections) with clear action verbs. Search and search_document_memory could be confused, but descriptions specify different targets, making the separation mostly clear.
All tool names use snake_case and follow a mostly predictable verb_noun pattern (list_sources, search_insights). A few names like 'search' and 'fetch' lack an explicit object, which creates minor inconsistency, but the style is uniform.
With 7 tools, the count is well within the ideal range and each tool seems purposefully designed to cover a distinct operation in the search/retrieval workflow, earning its place.
The set covers listing sources, searching multiple data types, and fetching specific items or sections, which is complete for a read-only retrieval system. A minor gap is the lack of a way to browse all memory sections without searching, but it's not a major dead end.
Related MCP Connectors
Persistent, verbatim, searchable memory for AI assistants — one memory across every MCP client.
Private-by-default, local-first memory/context/task orchestrator for MCP apps and agents.
Local-first long-term memory for AI agents, with byte-recomputable signed verification receipts.
Self-hosted AI workspace: semantic RAG document search, long-term memory, and AI chat via MCP.
Related MCP Servers
- AlicenseAqualityDmaintenanceA local-first personal RAG memory system that turns AI conversation history into a searchable, retrievable knowledge base via MCP, enabling LLMs to semantically search past conversations.29AGPL 3.0
- AlicenseNot gradedqualityDmaintenanceA local-first memory MCP server that enables storing, searching, and managing personal memories with hybrid keyword and semantic recall, all on-device.MIT
- AlicenseAqualityDmaintenanceA local-first, privacy-first MCP server that passively indexes personal digital activity (screenshots, clipboard, notes, downloads, links) into a local database, enabling LLMs like Claude to access your context without cloud storage.41MIT
- AlicenseNot gradedqualityDmaintenanceA local-first file intelligence engine that indexes documents, code, and email on your machine using on-device models, and exposes that memory to any AI assistant over MCP for semantic search and structured fact retrieval.10Business Source 1.1