
Backstory: search your data exports locally
io.github.magna-nzPublished by GitHub account magna-nzv1.1.0Updated Oct 24, 2026
Search your Google, Telegram, Spotify and Instagram exports locally. Fully offline.
Overview
A local MCP server that indexes your Google, Telegram, Spotify and Instagram data exports into a searchable timeline an assistant can query.
- What you can do
- Search the unified timeline by keyword or meaning, with date, source and limit filters, and list events in time order with the same filters (search_timeline). Retrieve full event records by id, including a pointer back to the source (get_events). Look up a person or place by name across sources (lookup_entity). Pull every event in a date range so the assistant can summarize it (summarize_period). List imported sources and their event counts (list_sources).
- When to use it
- Useful when you have downloaded personal data exports and want an assistant to answer questions across them, such as when you last messaged someone or which place you looked up on a trip, without uploading the data anywhere.
- Requirements
- Runs as a local process on your machine via the .NET 10 SDK, installed as a global dotnet tool or built from source; Linux, macOS and Windows are supported. Exports must be imported first with the command-line tool. The database lives at the BACKSTORY_DB path or in a default folder under your home directory. Optional semantic search needs a one-time model download of about 90 MB.
Installation
In SourceWeft
- Open Backstory: search your data exports locally in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
Backstory
Search all your data exports in one place. It runs entirely on your own computer, and nothing ever leaves your PC.
[CI] [NuGet] [Downloads] [.NET] [MCP] [Glama] [Platforms] [License: MIT] [Docs]
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.
Contents
- What it can do
- Sources
- Quick start
- Use it from an AI agent
- How it works
- Commands
- Search quality
- MCP tools
- Privacy
- License
What it can do
- Import exports from Google, Telegram, Spotify, and Instagram.
- Search everything as one timeline, by meaning or by keyword.
- Match the same person or place across different sources.
- Answer questions from an AI agent, like "when did I last message Sarah about dinner?".
- Show you how to export your data, then import it automatically when it finishes downloading.
- Report a benchmark so you can see how well the search actually works.
Sources
Each source is a small adapter that turns an export into events. Here is what works today and what each one pulls in.
Adding a new source means writing one adapter. Nothing else changes.
Quick start
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:
Use it from an AI agent
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.
How it works
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.
Commands
The database lives at $BACKSTORY_DB, or ~/.backstory/backstory.db by default.
Search quality
There are two ways to turn text into vectors, and you can switch between them:
- Hashing (default). No setup, fully offline, matches on the words that appear. Good enough to get started.
- ONNX MiniLM. Real semantic search that matches on meaning. Run
backstory model fetchonce (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.
MCP tools
Privacy
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.
License
MIT. See LICENSE. Built on the ModelContextProtocol SDK, ONNX Runtime, and all-MiniLM-L6-v2.
Source: README.md at commit 9822d4f
Tools
0Version history
1- v1.1.0LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
