Escriba

Giving an AI read access to my meetings, without sending them anywhere

I wanted to ask my AI assistant things like “what did we agree in Tuesday’s product sync?” or “what did I promise Ana last week?” and get an answer drawn from what was actually said.

Most tools that do this put a bot in your call, upload the audio and answer from their own cloud. I took another route, in two parts:

  1. Escriba, a Chrome extension that reads the captions Google Meet already generates and saves each meeting as a Markdown file on your computer. No bot, no audio, no network requests. It is on the Chrome Web Store.
  2. escriba-mcp, a local Model Context Protocol server that gives any MCP client (Claude Code, Claude Desktop, Cursor, VS Code…) read-only access to those files, over stdio, with no network involved.
claude mcp add escriba --env ESCRIBA_SELF_NAME="Your Name" -- npx -y escriba-mcp

I wrote about the extension side (automating a UI you don’t own) in a previous article. This one is about the AI side: what it takes to give a model good, safe access to personal data.

Why tools and not RAG

The usual answer to “let an LLM answer questions over my documents” is RAG: chunk the text, embed it, store the vectors, retrieve the nearest chunks for each question.

I didn’t need any of that here, and I think it’s worth saying why:

If this had to work over thousands of hours of meetings across a company, retrieval would come back into the picture. For a personal archive, plain tools over files are simpler and give better answers.

Designing tools for a model, not for a person

The server exposes three tools:

Tool Returns
list_meetings({from?, to?, participant?}) Meetings, newest first, with their metadata
search_transcripts({query, from?, to?, participant?}) Matching paragraphs, with meeting, speaker and time
read_meeting({file}) One meeting’s metadata and its whole transcript

They map to how you’d look for something yourself: browse, search, read. A few decisions made them work much better with a model.

Descriptions are prompts

The model picks a tool and fills its arguments from the description and the schema, so those are written for it:

server.registerTool(
  'search_transcripts',
  {
    description:
      'Searches what was said in the saved meetings, ignoring case and accents. Returns the ' +
      'matching paragraphs with file, title, date, speaker and time. `capped` is true when ' +
      'there were more matches than the ones returned: narrow the search.',
    inputSchema: { query: z.string().trim().min(1).describe('Text to look for'), ...filter },
    annotations: { readOnlyHint: true, openWorldHint: false },
  },
  (args) => json(searchTranscripts(options, args)),
);

Dates are validated with a regex in the Zod schema (YYYY-MM-DD), so a malformed argument fails with a message the model can correct, instead of silently matching nothing. readOnlyHint and openWorldHint: false tell the client these tools change nothing and touch nothing outside the machine, so it can call them without alarming the user.

Protect the context window, and say so

A search for a common word across a year of meetings can return thousands of paragraphs. Dumping them all would fill the model’s context and bury the answer. The search stops at 50 hits and returns capped: true, and the description tells the model what to do about it: narrow the search. In practice it adds a date range or a participant and tries again, which is exactly what you’d want.

A silent limit would be worse than no limit: the model would think it had seen everything.

Match the way people (and models) type names

Meetings in Spanish are full of names like Ibáñez or Muñoz. Users type them without accents and models sometimes do too. Every comparison folds case and accents first:

const fold = (text) => text.normalize('NFD').replace(/\p{M}/gu, '').toLowerCase();

so ibanez finds Ibáñez.

Resolve “me”

Meet labels your own speech as “You” or “Tú”, depending on its language. That breaks the most useful question of all: “what did I commit to?”. With ESCRIBA_SELF_NAME set, the server replaces those labels with your name in every result and filter, without touching the files.

Data boundaries

“Local” is easy to claim and easy to get wrong, so these are the rules the server keeps:

// A bare file name cannot leave the folder; anything with a directory part is refused.
const bare = path.basename(file) === file && file.endsWith('.md');

And one honest caveat, which is also in the README: the server keeps your data on your machine, but the AI app you connect it to receives what it reads. If that app is a cloud assistant, the transcript text goes to its provider. Giving people the full picture matters more than a nicer-sounding privacy claim.

Why stdio and not HTTP

MCP has two transports: stdio, where the client starts the server as a child process and they talk through its standard input and output, and Streamable HTTP, where the server listens on a URL. A lot of MCP examples reach for HTTP. For this server it would have been the wrong choice:

HTTP is the right transport when the server is shared or remote: one server for a team, a hosted product, or a web client like claude.ai that can’t start local processes. Each of those means the transcripts live on, or travel to, someone else’s machine, which is the thing this project exists to avoid. The cost of stdio is that each user needs Node.js installed, and npx keeps that to one line of configuration.

One parser, two runtimes

The extension has a strict rule: no build step and no runtime dependencies. Every file is a classic browser script that declares one global. The transcript parser (transcript.js, Markdown in and out, including the Spanish field names older versions wrote) lives there.

The MCP server is a Node ES module with real dependencies (the MCP SDK and Zod). I didn’t want a second parser that could drift from the first, and I didn’t want to add a bundler to the extension to share one.

So the server loads the extension’s parser the same way the browser does, as a classic script, with Node’s vm module:

const transcript = vm.runInThisContext(fs.readFileSync(parserFile, 'utf8') + '\ntranscript', {
  filename: parserFile,
});

In the repository it reads ../src/shared/transcript.js directly. For npm, a prepack script copies the file into the package. One source of truth, no build step on either side, and the server’s dependencies stay out of the extension.

Finding the Downloads folder is harder than it sounds

The extension saves into the browser’s Downloads folder, and the server has to find it with no help from the browser. “~/Downloads” is wrong more often than you’d think:

The lookup takes the system as a parameter (platform, home, env, readFile, run), so unit tests can feed it a fake registry or a fake user-dirs.dirs for each case, and anything that can’t be detected falls back to the default and can be overridden with ESCRIBA_DIR.

Testing what users actually install

The server has three layers of tests:

  1. Unit tests for the search, filters and folder lookup, using only node: modules, so they run without installing anything.
  2. An end-to-end test that starts the real server as a child process and talks to it through the MCP SDK’s own client over stdio, against a folder of sample transcripts, the same way Claude or Cursor would.
  3. The published package. CI runs npm pack, installs the tarball in a temporary folder away from the repository, and runs the end-to-end test against that installed copy. That catches the classic mistake of a package that works in the repo but is missing a file once published (like the copied parser).

All of it runs on Ubuntu, Windows and macOS in GitHub Actions, since the folder lookup is different on each.

The part underneath: making the data reliable

An AI layer is only as good as the data it reads, and here the data comes from scraping a UI I don’t control. A few things on the extension side exist so the transcripts can be trusted:

Escriba is about 1,500 lines of plain JavaScript for the extension and about 350 for the server, with type checking from JSDoc, unit tests, Playwright end-to-end tests against a fake Meet page, and CI on every push.

What I’d do next

Try it

I’m a software engineer in Guatemala, building backend and AI integration work. If you’re working on something similar, or hiring for it, I’d like to hear from you.