PluginBench
MCP Server
Active
AGPL-3.0

mozg MCP Server

sh.mozg/mozg

Exam-scored knowledge brains for AI agents—measured, honest about gaps, and attributing sources.

What is the mozg MCP server?

mozg is an MCP server that lets AI agents query curated knowledge bases ("brains") that are scored by automated exams and transparent about their limitations. Each brain is built from documentation, measured for accuracy, and exposes gaps publicly so agents know what they don't know before searching.

mozg inverts the architecture of large language models: instead of one opaque memory that swallows everything, it offers many small, owned, and measured knowledge bases. Each brain is examined by control questions, gaps are listed publicly, and readers can propose corrections without corrupting the source. Agents query over MCP with zero-context hybrid search, and working state can be handed off between sessions.

How to install mozg

Copy-paste configuration for popular MCP clients.

transport: http
Config generated by PluginBench — verify against the source before use.
Environment / auth
  • Authorization
    secret

    Bearer token from https://mozg.sh/settings/tokens — e.g. "Bearer mzg_...". Clients that speak MCP OAuth can leave this empty and sign in instead.

~/.cursor/mcp.json
{
  "mcpServers": {
    "mozg": {
      "url": "https://mozg.sh/mcp"
    }
  }
}

Tools & capabilities

Tools this server exposes to the agent.

  • brain_list — List available brains
  • brain_brief — Get a brief summary of a brain
  • brain_search — Search a brain with hybrid retrieval and reranking
  • brain_read — Read full content from a brain
  • brain_verify — Verify information against a brain's exam score and gaps
  • brain_handoff — Carry working state to the next session
  • brain_write — Write a note to a brain
  • brain_write_batch — Write multiple notes to a brain
  • brain_feedback — Submit feedback or corrections to a brain
  • brain_create — Create a new brain from a docs URL
  • brain_add_source — Add a source URL to an existing brain
  • brain_refresh — Refresh a brain's content and re-run its exam
  • library_add — Add a brain to your library
  • library_remove — Remove a brain from your library

Use cases

  • Query curated knowledge bases with confidence scores and transparent gap lists
  • Build domain-specific brains from documentation URLs and measure their accuracy with automated exams
  • Contribute corrections and new information to shared brains without risking data corruption
  • Hand off working context between agent sessions or tools using brain_handoff
  • Study brain content as a spaced-repetition course for humans at learn.mozg.sh

mozg MCP server FAQ

What is mozg?

mozg is an MCP server that provides exam-scored knowledge bases ("brains") for AI agents. Each brain is built from documentation, measured by control questions, and transparent about what it doesn't know.

How do I use mozg with Claude or Cursor?

Connect the remote MCP server at https://mozg.sh/mcp, or self-host it with Docker. The Claude Code plugin adds slash commands like /mozg:train for building brains.

Is mozg free?

mozg.sh cloud offers free reading and a free trial brain; building additional brains requires a paid plan, your own API key, or a Claude Code subscription. Self-hosting is free and open-source (AGPL-3.0).

How are brains measured?

Each brain sits an automated exam of ~30 control questions derived from its goal. The exam score and list of failed questions are public, so agents know the brain's gaps before searching.

Can I contribute to a brain?

Yes—agents can submit proposals for new information or corrections. Proposals are pending and invisible to search until the brain's owner reviews and accepts them, preventing corruption.

What authentication is required?

Cloud use requires a mozg.sh account (free to create). Self-hosting requires ANTHROPIC_API_KEY and BETTER_AUTH_SECRET in .env.

README (reference)

Source of truth, from the repository.

<div align="center"> <img src="public/brand/devto-cover.jpg" alt="mozg — a brain assembled from notes, stamped with a passing grade" width="720" />

mozg.

Knowledge with an owner, a score, and a meter. Brains your AI agents query over MCP — measured by an exam they did not write, honest about their gaps, and paying whoever filled them.

License: AGPL-3.0 CI Cloud Gallery Learn MCP

Manifesto · Start here · Catalogue · Status · Self-host · Roadmap

</div>

We are building one memory for the whole species. Everything anyone wrote down goes in; what comes out is fluent, instant, and detached from every person it came from. Three things follow from that shape, and none of them is a bug:

  • it dissolves the author — it can work in your manner and cannot tell you your name;
  • it does not know your particular world — not the decision your team made in March;
  • it cannot say where it stops — what it learned and what it is inventing sound identical.

It knows what we know. It cannot tell you who taught it.

mozg is the opposite architecture: not one memory that swallows everything, but many, each of which still belongs to someone — examined, honest about its edge, and metered. One mechanism holds it together:

Knowledge must be measured.

<p align="center"> <img src="public/brand/demo.svg" alt="Terminal: connecting mozg to Claude Code, then an agent answering an Expo question from the brain with a cited source and exam score" width="820" /> </p>

The loop

flowchart LR
    A[one docs URL] --> B[crawler<br/>github tree · llms.txt · sitemap]
    B --> C[atomic notes<br/>+ embeddings]
    C --> D{{the exam<br/>~30 questions from the goal}}
    D -->|score + failed questions| E[focused re-read<br/>chases the gaps]
    E --> C
    F[agents querying over MCP] -->|zero-hit searches| D
    F -->|corrections| G[owner review] --> C
    F -->|proposals from readers| G
  • The exam is the product. The brain's goal becomes control questions, re-sat after every ingest. Trained 92% is a fact, not a claim — and the failures are listed publicly, so agents are told the gaps before they search. Anti-bluff questions verify it refuses what it doesn't know.
  • Zero-context search. Retrieval is server-side (hybrid + reranker). A brain can hold 3,000 notes; an answer costs the three it needed.
  • Readers contribute, and cannot corrupt. An agent that works something out on a brain it only reads can hand it back — it arrives as a proposal: pending, attributed, invisible to search and absent from the exam until the owner takes it. Contribution without the power to break anything. Zero-hit searches become exam questions on their own.
  • The baton between sessions. brain_handoff carries working state to the next session — this agent tomorrow, or a different tool entirely. A PreCompact hook reminds an agent to leave one at the moment context is about to be lost.
  • learn. Any brain doubles as a spaced-repetition course for humans at learn.mozg.sh — read → recall → quiz, streaks, a certificate at 80%, and a scoreboard against your own agent.
  • Injection-hardened. Notes are scanned for credential leaks, PII and prompt-injection language; proposals from strangers are scanned again at the door they arrive through; third-party notes reach agents framed as data, not instructions; AI training crawlers are refused in robots.txt.

Styles: the other kind of brain

A brain can hold facts — or a way of working. A style brain is read by a different extractor entirely: not "what is depicted" but "what would I have to do to draw the next one", and it insists on measurements. Hex values and which one dominates. Outline weight, and whether it varies along a stroke. How shading is achieved, and at what density. The nevers — because anyone can copy a palette, and what gives an imitation away is the gradient the original would never use.

<p align="center"> <img src="public/brand/generate.gif" alt="Typing a prompt into a style's page on gallery.mozg.sh and getting an illustration back in that artist's style" width="820" /> </p>

That is the answer to style theft that pays the artist. Cloaking tools promised to make styles untrainable and each has been broken within months. The other road: the style becomes a licensed, exam-scored product. A buyer's own agents read the rules over MCP, or they generate right on gallery.mozg.sh — 25¢ an image, 10¢ of it to the artist, every time. Unlike a fine-tune on somebody's disk, access is revocable: a LoRA in the wild is forever, a licence is not.

Run your own, in one command

git clone https://github.com/egorfedorov/mozg.git && cd mozg
cp .env.selfhost.example .env     # fill ANTHROPIC_API_KEY + BETTER_AUTH_SECRET
docker compose -f docker-compose.selfhost.yml up

Postgres with pgvector, the embedder, the app and the worker come up together; the schema migrates itself before the app starts. Open http://localhost:3300, create an account, paste a docs URL.

First boot downloads ~2.2 GB of embedding weights into a volume — that is the slow part, and it happens once. Full operational detail, including production deploys behind nginx, lives in docs/SELFHOST.md.

Cloud, or your own metal

mozg.sh cloudself-host (this repo)
Read, connect, studyfreeyours
Official cataloguefree, curated, kept currentseed it yourself (scripts/catalogue.ts)
Build brainsfree trial brain, then plans or bring your own API keyyour keys, no limits
Marketplaceoutside authors sell, 95% to themn/a
Style generation25¢/image, 10¢ to the artistneeds an image-capable API key
Opsoursdocs/SELFHOST.md

The deal is honest: building brains spends model tokens. On the cloud you either pay a plan (we spend), set your own API key in settings (you spend), or teach through a Claude Code subscription with the plugin's /mozg:train.

What an agent gets

Fourteen MCP tools. The descriptions tell it when to reach for each, which is the difference between a brain that gets used and one that sits there.

brain_list · brain_brief · brain_search · brain_read · brain_verify · brain_handoff · brain_write · brain_write_batch · brain_feedback · brain_create · brain_add_source · brain_refresh · library_add · library_remove

The Claude Code plugin adds slash commands and two offline hooks — one names your shelf at session start, one reminds you to leave a baton before the context is compacted.

Stack

Next.js 16 · Postgres 14 + pgvector (HNSW) · pg-boss (queue in Postgres) · better-auth · bge-m3 embeddings + bge-reranker (self-hosted FastAPI) · Playwright render service for JS-shell docs sites · esbuild-bundled worker. 211 tests, CI on every push, public status page.

The manifesto

This is built by one person from the Sakha Republic — three million square kilometres, a million people, and the coldest inhabited places on earth. About 450,000 people speak Sakha. Ask any frontier model something in it and watch: total confidence, and wrong, because there was never enough of us online to be worth learning properly.

Not enough of us to be learned. Enough of us to teach.

That is where most of the world already stands — not only languages, but trades, regions, and the part of every craft that lives in people rather than in indexed pages. What is not in the training data does not exist to the machine, and the machine is fast becoming how everything gets looked up.

The alternative to being scraped is not being ignored. It is being licensed.

A confident wrong answer is worse than silence, and nearly everything built so far is optimised to produce one.

Read the whole thing → — what I am actually claiming, in five lines, and why a knowledge base should have to sit an exam.

Contributing

Bug reports with reproduction beat everything; brain_feedback reports from real use beat those. Small PRs welcome — see CONTRIBUTING.md. New catalogue packs are data entries, not code.

License

AGPL-3.0. Run it, change it, self-host it; host it for others and your changes stay open. The hosted cloud at mozg.sh sells convenience and inference — never locks.

Related MCP servers

Real-time corroborated news events + 5-year archive, for agents. Free tier, no key.

1
JavaScript
MIT
View repository →

Public file storage for AI agents. Upload files and get a permalink back.

0
JavaScript
View repository →

Ask your AI about bank accounts, spending, debts, holdings, and investment activity.

0
MIT
View repository →
SHsh.opencapital/mcp logo

Give your AI deep fundamentals on US public companies — metrics, segments, peers. Free.

0
MIT
View repository →
REReleases logo

Releases

Active

An agent-friendly API for product changelogs. A unified registry via CLI, API, or MCP.

5
TypeScript
Apache-2.0
View repository →

Analytics for founders: traffic, search, ad spend, revenue and retention per product.