What is Myco Brain?
Myco Brain is a persistent, source-traceable memory server for AI agents, self-hosted on your own Postgres database. It uses MCP (Model Context Protocol) to give agents shared memory that traces every fact back to its source document, with trust that compounds from corroboration and supersession. Built for dev teams, agencies, and anyone who wants their AI assistant to remember across sessions without hosted dependencies.
How to use Myco Brain?
Clone the repository, run docker compose up -d to boot Postgres, the MCP server, and the extraction worker. Then ingest documents with npx -y -p @mycobrain/mcp-server mycobrain-ingest github:your-org/your-repo. Connect any MCP client (Claude, Cursor, Windsurf, Continue, Zed) and the agent automatically knows to pull context before a task, save durable decisions, and cite sources using the built-in usage contract. Tune the trust dial via environment variables like BRAIN_REQUIRE_HUMAN_REVIEW or BRAIN_SCHEMA_AUTO_PROMOTE.
Key features of Myco Brain
- Source-traceable: every fact links to its document (
brain_why)
- Trust that compounds: corroboration raises confidence, contradiction supersedes (audited)
- Keyless & local-first: full-text + semantic search and knowledge graph run with zero hosted dependencies
- Dynamic schema: new entity/relationship types are proposed and promoted per workspace
- One isolated workspace per client, enforced by Postgres row-level security
- 11 MCP tools; works with multiple agent clients and a read-only HTTP REST API
Use cases of Myco Brain
- Dev teams running agents that need one shared memory across sessions
- Agencies needing hard per-client isolation with a shared playbook
- Anyone who wants their AI assistant to remember across sessions by importing ChatGPT or Claude history
- Multi-agent teams where documents marked private are readable only by the agent that created them
评论