The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Backstory: search your data exports locally listing page.
Search all your data exports in one place. It runs entirely on your own computer, and nothing ever leaves your PC.
You can download your data from Google, Telegram, and most other services. The problem is what you get back: a pile of JSON and CSV files that are nearly impossible to read. Backstory pulls those exports into one local database and lets you search across all of them at once. You can search from the command line or connect it to an AI assistant over MCP.
Nothing is sent to the cloud. Your data stays in a SQLite file on your machine. That is the main reason this tool exists, since this is the most personal data you have.
Each source is a small adapter that turns an export into events. Here is what works today and what each one pulls in.
| Source | What it imports | How to export it |
|---|---|---|
| Google Takeout | Search history, YouTube history, saved places, location history | backstory fetch google |
| Telegram | Messages, contacts | backstory fetch telegram |
| Spotify | Listening history, podcasts, searches | backstory fetch spotify |
| Direct messages, posts, comments, searches | backstory fetch instagram |
Adding a new source means writing one adapter. Nothing else changes.
You need the .NET 10 SDK. It runs on Linux, macOS, and Windows.
Install as a global tool:
Or build from source today:
Get your data in. Backstory shows you how to export it, then imports it for you when it lands in your Downloads folder:
You can also point it at a file or zip yourself. Takeout zips are unpacked for you, including the multi-part ones:
Then search:
Backstory speaks MCP, so any MCP client (Claude and others) can query your timeline. Start the server:
Register it with one command:
Or add it to your MCP config directly:
Now you can ask the agent things like "what was that ramen place I looked up in Tokyo?" and it searches across both your Google and Telegram data to answer.
Every export format is messy in its own way, so a small adapter handles each one and converts it into the same shape: events on a timeline, plus the people and places they mention. From there everything works the same. Storage is SQLite with a full-text index for keywords and a vector index for meaning. A search runs both and combines the results.
There is a full technical writeup at magna-nz.github.io/backstory and in SPEC.md.
| Command | What it does |
|---|---|
fetch google|telegram|spotify|instagram | Show how to export your data, and open the page |
watch [--dir <path>] | Import exports automatically as they download to ~/Downloads |
import <path> | Import an export (file, folder, or Takeout zip) |
search "<query>" | Search the timeline. Filters: --from --to --source --limit |
timeline | List events in time order, with the same filters |
entity "<name>" | Look up a person or place |
stats | Counts by source and type, and the embedder in use |
serve | Run the MCP server |
model fetch | Download the semantic search model (optional, one time) |
eval | Run the benchmark |
The database lives at $BACKSTORY_DB, or ~/.backstory/backstory.db by default.
There are two ways to turn text into vectors, and you can switch between them:
backstory model fetch once (about 90 MB) and Backstory uses it automatically. This is what lets a search for "japan vacation" find a message about a "flight to Tokyo".You can measure the difference yourself with backstory eval. It loads sample data and reports two numbers: how much of the data was parsed, and how often the right event shows up in the top five search results.
| Embedder | Data parsed | Right answer in top 5 |
|---|---|---|
| Hashing (default) | 100% | 87.5% |
| ONNX MiniLM | 100% | 100% |
| Tool | What it returns |
|---|---|
search_timeline | Ranked events for a natural-language query |
get_events | Full event records by id, including a pointer to the source |
lookup_entity | A person or place by name |
summarize_period | Every event in a date range, for the agent to summarize |
list_sources | The sources imported and how many events each has |
Everything runs locally and there is no telemetry. The only time Backstory touches the network is when you run backstory model fetch to download the search model, and that step is optional. Your data never leaves your machine. The .gitignore is set up so a database or an export can't be committed by accident.
MIT. See LICENSE. Built on the ModelContextProtocol SDK, ONNX Runtime, and all-MiniLM-L6-v2.