BERESTA

Help

AI assistants (MCP)

Connect Beresta to your AI assistant — Claude, for example — and ask it about your books in plain words: what you are reading, what you have marked, what sits on your shelves. The assistant finds the answer in your library. It cannot change anything there: the Beresta server only reads and never goes online.

Why you might want this

Highlights pile up over the years, and scrolling no longer finds the one you need. The assistant does the searching for you: through the quotes, through the notes you wrote beside them, through tags and through the text of the books themselves. It can turn what it finds into a draft note, retell a section or count how many books you have finished.

A few things you could ask:

  • “What am I reading right now, and how far have I got?”
  • “Find everything about attention in my highlights.”
  • “Show my highlights from ‘…’ tagged ‘…’.”
  • “Draft a note from my highlights of the past month.”
  • “Which of my books talk about a second brain?” — the assistant searches the text of the books themselves.
  • “Read the third section of this book and sum it up.”
  • “What is in my daily review?”
  • “What is on the Inbox shelf?”
  • “How many books have I finished this year?”
  • “Which authors do I read most?”

How it works

The assistant talks to Beresta through MCP, a common way for AI assistants to use programs on your computer. The assistant starts a small Beresta program by itself and asks it questions: which books cover this topic, which highlights carry this tag. The program answers from your library, and the assistant turns the answers into ordinary text. The rest of this page calls that program the server.

What reaches the assistant’s cloud

Your library stays on your device. But whatever the server tells the assistant, the assistant sends to its own cloud, just like any question you type: that is how Claude and most other assistants work. Any book or highlight it quotes ends up there too. If a book or a highlight must not go there, do not ask about it.

Where it works

The server comes with Beresta for Windows and with both Linux packages, Flatpak and AppImage. A server for the Mac is in the works: it is not part of the app yet. On iPhone, iPad and Android an assistant cannot be connected at all: the library lives inside the app’s sandbox, where no outside program can reach it. That is how the system is built, and there is no way around it.

Setting up on Windows

Open Settings → AI assistants (MCP). The command for your installation is already there, with a “Copy command” button, and below it is a ready piece of settings for Claude Desktop. Copy what you need and go on to the section about assistants.

Where the program itself lives, in case you need it:

  • Installer (beta): next to Beresta — %LOCALAPPDATA%\Programs\Beresta\beresta-mcp.exe, or in C:\Program Files\Beresta\ if it was installed for all users.
  • MSIX package (for the Microsoft Store): the command is the beresta-mcp.exe alias in %LOCALAPPDATA%\Microsoft\WindowsApps. The package folder changes with every version, but the alias stays put, so the assistant’s settings survive updates untouched.

Setting up on Linux

Linux has no separate program: the server is Beresta itself, started with the --mcp option. The command for your package is in Settings → Browser clippings → the “AI assistants (MCP)” group, next to a “Copy command” button.

  • AppImage: /path/to/Beresta-<version>-x86_64.AppImage --mcp
  • Flatpak: flatpak run page.beresta.Beresta --mcp

Started this way, Beresta opens no window, and the server reads the same library the window would. To connect a different library, add the path to its beresta.sqlite file after --mcp.

Connecting your assistant

Claude Code. Type claude mcp add beresta -- in a terminal, add a space and paste the copied command. For example, on Linux with Flatpak:

claude mcp add beresta -- flatpak run page.beresta.Beresta --mcp

To check that Claude Code sees the server, run claude mcp list.

Claude Desktop. Open its settings file claude_desktop_config.json (on Windows it is in %APPDATA%\Claude\) and paste the piece shown on the AI assistants (MCP) page:

{
  "mcpServers": {
    "beresta": {
      "command": "C:\\Users\\…\\beresta-mcp.exe"
    }
  }
}

Then restart Claude Desktop.

Other assistants. Any MCP client that starts a server with a local command (the stdio transport) will do. Give it the same command.

If something goes wrong

The server never fails silently: it says in words what happened. For now its messages are in Russian; here is what they mean.

No library at the path — the server could not find the library file. Open Beresta so that it creates one, or give the path to the beresta.sqlite file in the command.

The database is newer than this server — a newer version of Beresta has already written to the library. Update Beresta on this computer: the server updates with it.

The database format is not up to date — open Beresta, it will update the format by itself, then ask again.

No device record in this library — Beresta has not opened this library on this computer yet. Open the app and ask again.

If the assistant does not see Beresta at all, check that the whole command was pasted and restart the assistant. Still nothing — write on the forum.

In detail: what the server can do

The server has seventeen tools. The assistant sees their names by itself, so there is nothing to memorise — just ask in plain words. The table is for the curious.

ToolWhat it answers
search_librarybooks and articles by words from the title and author
book_carda book’s card: authors, where the file is, shelves, number of highlights
book_highlightsthe highlights of one book, optionally filtered by tag
recent_highlightsrecent highlights across the whole library
search_highlightssearch through the text of highlights — both the quote and your thought
highlight_tagshighlight tags and how many highlights each has
reading_statsa reading summary: by year, what is being read now, volume, speed
daily_reviewthe daily review — the same highlights Beresta shows today
due_for_reviewthe review queue
shelvesshelves and how many books each holds
shelf_bookswhat is on a shelf
where_i_stoppedthe book read last and how much of it is read
search_inside_bookssearch through the text of the books: which book and which section
book_passagethe text of one section of a book — to read and quote word for word
authorsthe library’s authors and how many books each has
reading_listsreading lists and how much is left in each
feedsfeed subscriptions

In detail: what the server does not do

  • It does not change the library. No tags, no shelves, no highlights. The library is opened read-only, and the database itself rejects any attempt to write. This is not caution for its own sake. Every change in Beresta goes into a journal, and that journal is what syncs the library between devices. A change made around the journal would never reach your other devices, and search would fall behind the data. If writing ever comes, it will go through the same journal the app uses.
  • It does not go online. The server talks to the assistant over a local channel on your computer and contacts nothing by itself.
  • It does not create a library. If Beresta has never opened the library, the server refuses and says why.

Updated 20261124.