lifedb-mcp
LifeDB exposes your local SQLite life-timeline (GPS, workouts, health, photos, timeline) to any MCP-capable AI agent through seven read-mostly tools — no arbitrary SQL, nothing leaves your machine.
Inspect the library —
lifedb_stats: schema version, per-modality/source counts, and time coverage; call this first after connecting.Read a month —
lifedb_query_month: full cross-modal timeline for a month like2026-10, returned as unified event rows (ts_start ascending) with limit/offset paging.Zoom into a moment —
lifedb_around: all cross-modal events within a window (30m/2h/1d) around any timestamp, answering "what happened then."Pull raw GPS —
lifedb_geo_track: point sequence[ts, lat, lon, alt, speed]for a window, uniformly decimated when truncated — ideal for map/track rendering (deck.gl, Manim).Export a map pack —
lifedb_export_atlas: one-shot bundle of decimated track + events (optionally modality-filtered) + geotagged photos for a time window.Import data (only write path) —
lifedb_ingest_jsonl: idempotent JSONL ingestion (sha256 payload-hash dedupe), dry-run by default, writes only whendry_run=false.Discover plugins —
lifedb_adapters: list installed data-source adapters (name/modality/mode/idempotency) from their manifests.
Imports Apple Health export data, including sleep, workout routes, ECG, and health metrics, into LifeDB for agent queries and timeline analysis.
Imports Google Timeline location history, including stays and segments, into LifeDB for agent querying, cross-modal timeline reconstruction, and map rendering.
Provides an automated periodic download pipeline that syncs data from iCloud into LifeDB for local storage and agent access.
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., "@lifedb-mcp what was I doing around 9am on October 13th?"
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.
LifeDB
Your life, one SQLite file — and any AI agent can read it.
“一切你无法喂给AI的数据,都是白做的。” —— 孙哥
中文 · English · Product Vision
A 32-second movie generated by one command from 295,135 GPS points, 1,668 photos and 125 workouts. Full video →
The problem
You generate more personal data every day than any generation before you — location history, photos, workouts, sleep, heart rate, notes. And it's all stranded: locked in separate apps, on someone else's server, unreachable by the one thing that could actually make sense of it.
Your AI agent can't see any of it. So all of it is wasted.
Google just deleted the Timeline web viewer for billions of users. Your location history shouldn't live on a server that can turn it off tomorrow.
Related MCP server: agent-graph-mcp
Two promises
🤖 Bring Your Own Agent
LifeDB is not an app. It's a local MCP server — a database your AI agent can actually use.
{ "mcpServers": { "lifedb": { "command": "lifedb-mcp" } } }That's the entire integration. Claude, or any MCP-capable agent, instantly gains seven tools over your life: what happened that day, where was I that week, build me a map of 2024, how far did I commute. Seven indexed queries — no arbitrary SQL, no full-table scans.
The demos below aren't a product roadmap. They're examples — proof of what agents can build on this contract. The demo layer is yours to extend: connect the MCP, write your app, done.
🔒 Bring Your Own Data
Nothing leaves your machine. No cloud, no account, no telemetry, no upload. One SQLite file you own, back up, and delete.
Import adapters are plugins — a manifest + a script. The kernel defines one contract; the community builds the connectors. (Want your app supported? See the wanted list below — PRs welcome.)
Open format. It's just SQLite. Query it with
sqlite3today, forever. No lock-in, by design.
What people build with it
Every one of these is a demo, not a walled garden. All data flows through the same seven MCP tools listed below.
Quick start
pip install lifedb # or: pipx install lifedblife-db init # create your timeline.db
life-db ingest events.jsonl # unified JSONL contract, idempotent
life-db query 2026-10 # one month, every modality
life-db around 2026-10-13T09:00 --window 2h # what happened around then
life-db stats # coverage & countsConnect your agent (Claude Desktop / Claude Code / any MCP client):
{
"mcpServers": {
"lifedb": {
"command": "lifedb-mcp",
"env": { "LIFEDB_DB": "/path/to/timeline.db" }
}
}
}MCP tool surface (v0.1)
Tool | What it gives your agent |
| Schema version, modality counts, time coverage |
| Full timeline for a month |
| Cross-modal events around any moment |
| Raw GPS track for any window (map rendering) |
| One-stop pack: track + events + photos |
| The only write path — idempotent, dry-run by default |
| Discover installed data-source plugins |
Tools only grow, never change or disappear — that's the contract.
Data sources
Adapters are plugins: one JSON manifest + one script, discovered automatically. Currently supported:
Source | Data | Mode |
Phone GPS tracks | 11 years of second-level points | periodic |
训记 (xunji) | Strength workouts: sets, volume, movements | periodic |
Apple Health export | Sleep, workout routes, ECG, metrics | manual |
Google Timeline | Stays & segments | manual |
Photo libraries | EXIF GPS → photo layer | manual |
iCloud sync | Automated download pipeline | periodic |
Wanted — PRs welcome: Hevy / Strong / Strava CSV · GPX / FIT · Google Takeout (new Records.json) · Obsidian vault · Keep / Mi Fitness / Huawei Health · Garmin export. See docs/PRODUCT.md §3.3 for the interface contract — a manifest and a script is all it takes.
Architecture
Your agent Claude / Cursor / anything that speaks MCP
⬇ stdio (localhost only)
MCP server lifedb-mcp — the contract (7 tools, no arbitrary SQL)
⬇
Kernel SQLite timeline.db + unified JSONL import layer + CLI
⬇
Your data phone GPS · workouts · health · photos · timelineDocs
Product vision & roadmap — architecture, wanted adapters, phases
⭐ Star it
If your AI agent can finally see your life — star the repo. It's the only distribution a local-first, zero-marketing project gets.
Want an adapter that's missing? Open an issue or grab one from the wanted list above — a manifest and a script is all it takes.
License
MIT — see LICENSE.
Available Tools
7 toolslifedb_adaptersA
列出全部数据源 adapter (adapters/*.manifest.json): 名称/模态/模式/幂等机制。 manifest 即插件契约, 见 docs/PRODUCT.md §3。
Inputs: no named parameters. Returns: result
lifedb_aroundB
跨模态事件窗: ts 前后 window (如 '30m'/'2h'/'1d') 内发生的所有事件。 三分支 UNION, 全索引 seek。用于'那一刻发生了什么'。
Inputs: ts (required), limit, window. Returns: result
lifedb_export_atlasB
一站式打包某时间窗的 atlas 数据: {track(抽稀GPS), events(逗号分隔的模态 名可选过滤), photos(带坐标照片)}。地图类应用 (Life Atlas/vlog) 的数据源。
Inputs: end (required), start (required), max_points, modalities. Returns: result
lifedb_geo_trackA
原始 GPS 点序列 [ts(epoch秒), lat, lon, alt, speed]。 start/end 为 ISO 时间或 epoch 秒。轨迹渲染 (deck.gl TripsLayer / Manim) 喂这个。 limit 截断时按均匀抽稀前置 (取首尾), 避免只截头部。
Inputs: end (required), start (required), limit. Returns: result
lifedb_ingest_jsonlA
导入统一 JSONL 事件文件 (每行一个 JSON, ts_start/modality/source 必填)。 幂等: payload_hash=sha256(source|payload_ref|ts_start)[:16] 去重, 重复跑零副作用。 默认 dry_run=True 只报预览; 明确传 dry_run=false 才写入。
Inputs: path (required), dry_run. Returns: result
lifedb_query_monthC
某月时间线。month 形如 '2026-10'。返回统一 schema 事件行 (ts_start 升序)。
Inputs: month (required), limit, offset. Returns: result
lifedb_statsA
库自检: schema 版本、各模态/来源计数、时间覆盖。应用接入后先调这个。
Inputs: no named parameters. 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
Most tools have a clear distinct intent: stats (metadata self-check), query_month (monthly timeline), around (ts-window union), geo_track (GPS-only points), export_atlas (bundled atlas for an app), ingest_jsonl (write), adapters (plugin listing). There is mild overlap between around, geo_track, and export_atlas since all read time-windowed event/GPS data, but the granularity (point vs month vs track vs bundle) keeps them separable.
All names share the lifedb_ prefix, giving a strong consistent identity. However the verb_noun pattern is not uniform: query_month, geo_track, export_atlas, ingest_jsonl follow it, while stats, around, and adapters are bare noun/adverb forms.
Seven tools is well-scoped for a personal life-database server: four read/query tools, one export, one ingest, and one metadata/introspection tool. Each tool appears to earn its place without redundancy.
The read surface covers timelines, point windows, GPS tracks, and atlas bundles, and ingest is idempotent, but there is no update/delete or prune operation for events, no fetch-by-id, and no free-form range or modality/text search beyond month windows and the atlas export. These gaps force workarounds for correction and targeted retrieval.
Maintenance
Related MCP Connectors
Private-by-default, local-first memory/context/task orchestrator for MCP apps and agents.
Governed personal world model and memory for your AI agent. Pair once, connect over MCP.
Persistent, inspectable memory for AI agents with lineage, correction, and a hosted MCP endpoint.
Agent-native notes, tasks, dev-docs, vaults, sync & handoffs. MCP + OpenAPI dual surface.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceProvides MCP tools to read and update a local-first personal OS for goals, tasks, habits, food, workouts, and check-ins. Enables assistants to manage daily life data and interact with an evidence-grounded AI coach.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to store, query, and trace a time-aware memory graph of nodes and edges in a single SQLite file, supporting weighted recall, temporal queries, and provenance-aware writes over MCP.1MIT

DayDreamofficial
AlicenseNot gradedqualityBmaintenanceA native macOS app with a read-only stdio MCP server for searching a local work timeline by app, document, optional Chrome page context and time. Requires Apple silicon and macOS 15+; it runs on the user’s Mac, rather than in Docker or as a hosted endpoint.12MIT- AlicenseNot gradedqualityCmaintenanceEnables AI agents to store and recall durable facts, decisions, and lessons over MCP using hybrid semantic and keyword search, typed memories, graph relations, sessions, and time-travel queries. Runs locally with no server process or API key, persisting everything to files that both agents and a CLI can share.28 npmMIT