
ExternalBrain
by bejranonda
External Brain: Self-Improving, Self-Hosted AI Coding Memory Across Every Tool, Project, and Team
<img width="1416" height="320" alt="image" src="https://github.com/user-attachments/assets/74d9c69c-145a-452d-aead-b00f8447025c" /> <p> <a href="https://github.com/bejranonda/ExternalBrain/actions/workflows/ci.yml"><img alt="GitHub Workflow CI build status" src="https://github.com/bejranonda/ExternalBrain/actions/workflows/ci.yml/badge.svg"></a> <a href="https://github.com/bejranonda/ExternalBrain/stargazers"><img alt="GitHub Stars count" src="https://img.shields.io/github/stars/bejranonda/ExternalBrain?style=flat&color=gold"></a> <a href="https://github.com/bejranonda/ExternalBrain/network/members"><img alt="GitHub Forks count" src="https://img.shields.io/github/forks/bejranonda/ExternalBrain?style=flat&color=blue"></a> <a href="https://github.com/bejranonda/ExternalBrain/issues"><img alt="GitHub Open Issues" src="https://img.shields.io/github/issues/bejranonda/ExternalBrain?style=flat&color=red"></a> <a href="./LICENSE"><img alt="MIT License" src="https://img.shields.io/badge/license-MIT-blue.svg"></a> <img alt="TypeScript strict mode" src="https://img.shields.io/badge/TypeScript-strict-3178C6.svg"> <img alt="Model Context Protocol native support" src="https://img.shields.io/badge/Model_Context_Protocol-native-6E56CF.svg"> <img alt="Self-hosted via Docker Compose" src="https://img.shields.io/badge/self--hosted-Docker_Compose-2496ED.svg"> </p>Your AI's memory is trapped in one tool, one project, one person. Claude Code doesn't share with Cursor, a lesson learned on one repo doesn't carry to the next, and your teammates each start from zero. External Brain is one shared, self-hosted knowledge layer across every MCP tool, project, and team. A skill learned once applies everywhere it's relevant, you can inspect and edit what it knows, and answers cite your own work. Best of all, it improves on its own: after each session it proposes new skills from what you did, so every project gets sharper without anyone hand-writing rules. Built for teams and enterprise, on your own infrastructure.
External Brain is a self-hosted MCP (Model Context Protocol) server + webapp that gives AI coding agents persistent, long-term memory. It ingests your coding sessions, extracts durable knowledge (skills, rules, recipes, anti-patterns), retrieves it by semantic meaning when you start a new task, and answers questions about your own codebase through a grounded Oracle — every answer cited back to the sessions and skills that support it.
Unlike the memory built into each AI tool, that store is one shared, inspectable layer across every MCP client — it stays on your own infrastructure instead of sitting in a separate black box locked inside each tool.
Provider-agnostic (Google Gemini, GLM, OpenAI, Anthropic Claude), runs on a single VM with Docker Compose, and MIT-licensed — fork it and build your own.

Why Use External Brain? — One Memory Across Every Tool, Project, and Team
Modern AI coding tools have memory now. The real problem is where that memory lives and how far it reaches:
- Siloed — per tool, per project, per person. Claude Code doesn't share with Cursor or Copilot; a lesson learned on one repo doesn't carry to the next; and your teammates each start from zero. Knowledge that should compound stays stuck in one place.
- A black box. You can't see what it kept, fix it when it's wrong, or curate it. You just hope it remembered the right thing.
- Not yours. It's locked inside one vendor's cloud, tied to that one tool. You can't inspect it, move it, or share it on your terms.
External Brain is the missing **knowledge layer that spans every
Related servers

n8n
by n8n-io
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

@modelcontextprotocol/server-everything
OfficialMCP server that exercises all the features of the MCP protocol

@modelcontextprotocol/server-filesystem
OfficialMCP server for filesystem access