Live connector or database on disk for a personal knowledge base

APIKeyClaudeFree · Updated 2026-11-22 · 8 min read

Bookshelf next to a desk with an external drive
Your archive can stay with the vendor or live on your own disk.

Many reading and note-taking services now offer an MCP server so AI clients can search your library directly. At the same time, plenty of users prefer a different route: export everything into a local SQLite database or folder of Markdown files and let a coding agent or script index it. Both approaches work. They differ in freshness, search quality, token cost, privacy and how much control you keep when the vendor changes something.

This comparison is for people with a sizeable personal archive, hundreds or thousands of saved articles, highlights or notes, who want an AI to answer questions across it. You will get a clear view of the trade-offs and a decision rule, plus a minimal example of the local approach.

Frequently asked questions

What is an MCP connector for a notes app?

It is a server, run by the vendor or locally, that exposes tools such as search, get document and list highlights through the Model Context Protocol. An AI client calls those tools during a conversation and receives results as text.

How does a local export differ from a connector?

With a local export, you download your data once or on a schedule and store it on your machine. Search and retrieval run locally, and the AI sees only what your own code chooses to send it.

Which gives better search results?

It depends on the search behind each. A vendor connector uses whatever search the service offers, which may be basic keyword matching. A local database lets you add full-text search, embeddings or both, tuned for your own archive.

Which is cheaper in tokens?

A local pipeline is usually cheaper because you control how much text is returned. Connectors add tool definitions to every request and may return long documents in full, which inflates context.

Is a vendor MCP server less private?

Your data already lives with the vendor, so the connector adds little new exposure there. The difference is in what the AI client and model provider see: with either approach, the passages you retrieve go to the model, so the model's data policy matters equally.

What happens if the vendor's MCP server is still in beta?

Beta servers can change tool names, rate limits or behaviour without much notice. That is fine for exploring, risky for a workflow you depend on daily. A local export does not break when the vendor updates its server.

Can I combine both approaches?

Yes. Many people use the connector for fresh items saved in the last few days and a local index for the full back catalogue, refreshing the export weekly.

Can a free model do the answering step?

For summarising a handful of retrieved passages, a mid-sized model such as free-ai is often adequate. Synthesising many long sources into a nuanced answer is where frontier models clearly perform better.

The two approaches in one paragraph each

A connector keeps your data where it is. You add the service's MCP server to your AI client, authorise it, and the model calls tools like search or get_document as needed. Nothing to maintain, always current, but you accept the vendor's search quality, tool design and limits.

A local export copies your data to your machine. You run a script that pulls everything through the vendor's export feature or API, store it in SQLite or files, and build your own retrieval. More setup, but full control over search, chunking and what the model sees, and it keeps working if the connector changes.

Who usually prefers the connector

People who want answers from recent material with minimal setup, use one AI client consistently and are happy with the vendor's search.

Who usually prefers the export

People with large archives, specific search needs, a preference for working in a terminal or code editor, or a wish to use several models without reconfiguring each one.

Freshness and maintenance

The connector wins on freshness by design. An article saved a minute ago is searchable immediately. A local export is only as fresh as your last sync, so you need a scheduled job, and someone has to notice when it fails.

On maintenance, the picture reverses over time. The connector needs nothing from you until the vendor changes it, and then you may need to update your client, re-authorise or adapt prompts to new tool names. The local export needs a small, stable script that rarely changes once written.

Incremental sync is easy to add

Most export APIs accept an "updated since" parameter. Store the timestamp of your last sync and fetch only new or changed items. A nightly run then takes seconds rather than minutes.

Keep the raw export too

Store the original export files next to the database. If you later change how you split or index documents, you can rebuild from the raw files instead of downloading everything again, and you keep a backup that does not depend on the vendor staying in business.

Footbridge leading to a shed across a river
A connector gives instant access to current items.

Search quality and retrieval control

This is often the deciding factor. Connector tools expose whatever search the vendor built. If that is plain keyword search, questions phrased differently from the original text will miss relevant items. You cannot tune it, add synonyms or change ranking.

Locally, you can layer several techniques. SQLite's built-in FTS5 full-text search handles keyword queries well and supports ranking. You can add embeddings for semantic search, filter by tags or dates, and return only the most relevant paragraphs rather than whole articles. This precision improves answers and cuts token use at the same time.

Snippets instead of full documents

The snippet() function returns only the matching region. Sending five snippets to the model costs a fraction of sending five full articles, and the answer is usually just as good.

import sqlite3

db = sqlite3.connect("library.db")
db.execute("CREATE VIRTUAL TABLE IF NOT EXISTS docs USING fts5(title, url, body)")

# After importing your export into the docs table:
def search(query: str, limit: int = 5):
    rows = db.execute(
        "SELECT title, url, snippet(docs, 2, '', '', ' ... ', 40) "
        "FROM docs WHERE docs MATCH ? ORDER BY rank LIMIT ?",
        (query, limit),
    ).fetchall()
    return rows

for title, url, snip in search("spaced repetition"):
    print(title, url, snip, sep="\n", end="\n\n")

Token cost per question

Every connector adds its tool definitions to every request in the session, whether or not you use them. A server with many tools and long descriptions can add thousands of tokens per turn. Then each tool result enters the context; if get_document returns a full long-read, that can be tens of thousands of tokens at once.

Teams comparing several MCP servers often want a simple way to measure this. The reliable method is to send the same prompt with and without each server enabled and compare the reported prompt tokens. The article on why token counts differ between models describes the measurement in detail.

Local pipelines send only what you choose

With your own retrieval, the request contains your question, a short instruction and a few snippets. No tool definitions, no full documents unless you decide to include one. Per-question cost stays small and predictable.

Context windows set a hard ceiling

With smaller windows, such as 32,000 tokens, a connector returning full documents can overflow quickly. Snippet-based retrieval fits comfortably even on modest models.

Open card catalogue drawer
A local index lets you tune search to your own material.

Privacy and data flow

In both approaches, the retrieved text goes to whichever model answers the question. That part is identical, so the model provider's data policy matters in both cases. What differs is the path. A vendor connector may route through the vendor's servers and then through your AI client's backend. A local pipeline sends only the snippets, directly from your machine to the model API you choose.

For the most sensitive archives, a local pipeline also enables a fully offline setup with a local model. A connector, by definition, involves the vendor's server on every query.

Check the connector's scopes

When you authorise a connector, see what it can do. A read-only search tool is low risk. One that can also delete or edit items deserves more caution, since a confused model could act on it. The article on connecting to public MCP servers covers this further.

Portability across AI clients and models

A connector works in clients that support MCP and that the vendor supports. If you move to a different editor, a different chat app or a custom script, you depend on MCP support being there and working the same way.

A local database works everywhere. Any script, any model API and any client that can run a command can use it. You can ask one model today and another tomorrow with the same retrieval, which also makes fair comparisons between models straightforward.

Exposing your local index as a tool

If you like the convenience of tool calls but want local search, you can wrap your SQLite search function in a tiny MCP server of your own. The client then sees one compact search_library tool backed by retrieval you control, which combines the strengths of both approaches.

Fair model comparisons

Because the snippets are fixed for a given question, you can send exactly the same context to two models and compare their answers side by side. With a connector, each model may call tools differently and see different material, which muddies the comparison.

  • Connector: best inside one MCP-capable client.
  • Local export: works with scripts, notebooks, terminals and any API.
  • Connector: tool behaviour defined by the vendor.
  • Local export: retrieval behaviour defined by you, versioned in your repo.
Paper slip beside a thick book
Sending snippets instead of whole documents saves tokens.

A side-by-side summary

Neither option is universally better. The table below in list form condenses the trade-offs discussed above so you can match them against your priorities.

A simple decision rule

If your archive is small and you mostly ask about recent items, use the connector. If your archive is large, you care about search quality or token cost, or you switch models often, build the export. If unsure, start with the connector and add a local index once its limits bother you.

  • Setup effort: connector low, export moderate.
  • Freshness: connector instant, export as recent as your last sync.
  • Search quality: connector fixed by vendor, export tunable.
  • Token cost: connector higher and variable, export low and predictable.
  • Stability: connector may change during beta, export stable once built.
  • Offline use: connector no, export yes with a local model.

Answering questions with a free or paid model

Once retrieval returns a handful of snippets, the answering step is a short prompt: here are passages, answer the question, cite the titles. Mid-sized models handle this well. The keyless endpoint on this site serves free-ai, an independent open-weight model of about 35B parameters; it is not Claude, and this site is not affiliated with Anthropic. Point a script at https://api.apikeyclaudefree.com/v1 and send the snippets with your question.

If your questions require weighing many sources, spotting contradictions or writing a long synthesis, a frontier model such as Claude, through your own key from the official console, will produce noticeably better results. The retrieval layer does not care which model you use, which is one more argument for building it yourself.

Cite sources in every answer

Ask the model to name the title or URL of each snippet it relies on. You can then open the original and check, which matters because models occasionally blend passages or overstate what a source says.

Key ring on a wooden table
Owning the retrieval layer lets you switch models freely.
Try the free API

Send a test prompt to the keyless free-ai endpoint from the chat box on the home page, no sign-up or key required.

Read also