Exam-scored knowledge brains for AI agents: paste a docs URL, get a searchable brain over MCP with a measured score and known gaps. AGPL.
git clone https://github.com/egorfedorov/mozg{
"mcpServers": {
"mozg": {
"command": "node",
"args": ["/path/to/mozg/dist/index.js"]
}
}
}Resumen de MCP Servers
<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.
**Exam-scored knowledge brains for AI coding agents.**
Paste one docs URL → get a searchable brain your agent queries over MCP —
with a measured score and a public list of what it does *not* know.
[](LICENSE)
[](https://github.com/egorfedorov/mozg/actions)
[](https://mozg.sh)
[](https://learn.mozg.sh)
[](https://mozg.sh/connect)
[Start here](https://mozg.sh/start) · [Catalogue](https://mozg.sh/explore) ·
[Why not a context file](https://mozg.sh/vs) · [Self-host guide](docs/SELFHOST.md) · [Roadmap](docs/ROADMAP.md)
</div>
---
Your agent answers from memory, and memory has a date on it. Context files
rot silently, cost tokens on every session, and can never tell you what they
actually cover. mozg is built on one mechanism applied everywhere:
> **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
```mermaid
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
```
- **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.
- **The collective mind.** A search that returns nothing becomes an exam
question. Corrections agents file become owner-reviewed notes. Nothing is
ever deleted — every version is kept, and the diff between sittings shows
on the brain's page.
- **learn.** Any brain doubles as a spaced-repetition course for humans at
[learn.mozg.sh](https://learn.mozg.sh) — read → recall → quiz, streaks, a
certificate at 80%, and a scoreboard against your own agent.
- **Injection-hardened.** Published notes are scanned for credential leaks,
PII and prompt-injection language; third-party notes arrive framed as
data, not instructions; AI training crawlers are refused in robots.txt.
## Run your own, in one command
```bash
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](docs/SELFHOST.md).
## Cloud, or your own metal
| | [mozg.sh](https://mozg.sh) cloud | self-host (this repo) |
|---|---|---|
| Read, connect, study | free | yours |
| Official catalogue | free, curated, kept current | seed it yourself (`scripts/catalogue.ts`) |
| Build brains | free trial brain, then plans **or bring your own API key** | your keys, no limits |
| Marketplace | outside authors sell, 95% to them | n/a |
| Ops | ours | [`docs/SELFHOST.md`](docs/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`.
## 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.
178 tests, CI on every push.
## Contributing
Bug reports with reproduction beat everything; `brain_feedback` reports from
real use beat those. Small PRs welcome — see [CONTRIBUTING.md](CONTRIBUTING.md).
New catalogue packs are data entries, not code.
## License
[AGPL-3.0](LICENSE). 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.
Lo que la gente pregunta sobre mozg
¿Qué es egorfedorov/mozg?
+
egorfedorov/mozg es mcp servers para el ecosistema de Claude AI. Exam-scored knowledge brains for AI agents: paste a docs URL, get a searchable brain over MCP with a measured score and known gaps. AGPL. Tiene 5 estrellas en GitHub y se actualizó por última vez today.
¿Cómo se instala mozg?
+
Puedes instalar mozg clonando el repositorio (https://github.com/egorfedorov/mozg) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.
¿Es seguro usar egorfedorov/mozg?
+
egorfedorov/mozg aún no ha sido auditado por nuestro agente de seguridad. Revisa el repositorio original en GitHub antes de usarlo en producción.
¿Quién mantiene egorfedorov/mozg?
+
egorfedorov/mozg es mantenido por egorfedorov. La última actividad registrada en GitHub es de today, con 0 issues abiertos.
¿Hay alternativas a mozg?
+
Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.
Despliega mozg en tu cloud
Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.
¿Mantienes este repo? Añade un badge a tu README
Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.
[](https://claudewave.com/repo/egorfedorov-mozg)<a href="https://claudewave.com/repo/egorfedorov-mozg"><img src="https://claudewave.com/api/badge/egorfedorov-mozg" alt="Featured on ClaudeWave: egorfedorov/mozg" width="320" height="64" /></a>Más MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
The fastest path to AI-powered full stack observability, even for lean teams.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!