Myco Brain logo

Myco Brain

Self-hosted Postgres memory for AI agents with source-traced facts, search, graph context, and configurable review.

Install Myco Brain

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "myco-brain": {
      "command": "npx",
      "args": [
        "-y",
        "-p",
        "@mycobrain/mcp-server",
        "mycobrain-ingest"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y -p @mycobrain/mcp-server mycobrain-ingest

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The myco-brain MCP server gives AI agents persistent, source-traceable memory backed by your own Postgres database. It exposes tools for ingesting documents, searching and recalling information, inspecting provenance, navigating related entities, and managing proposed facts. Local full-text search, semantic search, and graph extraction can run without API keys; an Anthropic key is optional for graph accuracy. Reach for it when agents need shared memory across sessions, auditable sources, private memories, or isolated client workspaces.

Use cases

  • Share memory across agents and sessions
  • Trace answers back to source documents
  • Import repository or conversation data
  • Separate client workspaces with Postgres row-level security
  • Review proposed facts before graph promotion

Key features

  • Source-traced facts and audited supersession history
  • Postgres-backed persistent memory
  • Full-text and local semantic search
  • Knowledge graph with dynamic schema proposals
  • Private memories and workspace isolation
  • Configurable human review and confidence promotion

Tools15

What Myco Brain lets your agent do. Expand a tool for its parameters.

Self-reported~58 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

17/17 checks healthy over the last 84d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 10d ago via OSV.dev · @mycobrain/mcp-server (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars8Stargazers on the source repository.
npm downloads317Package downloads in the last 30 days.
Last commit1mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed15Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Myco Brain works

What myco-brain MCP server does

The myco-brain MCP server provides a persistent memory layer for AI agents using a self-hosted Postgres database. It stores information from repositories, folders, imported conversation histories, and other documents, then makes that information available through MCP tools. The design keeps source documents and their relationships with extracted facts so an agent can inspect where a claim came from instead of relying on an untraceable summary.

Memory can be shared within a workspace, while documents marked private are restricted to the agent that created them. Separate workspaces can support client isolation when the application uses the supplied least-privilege brain_app role and Postgres row-level security. The default quickstart role is a superuser, so it is not the role to use when relying on multi-tenant isolation.

How it works

A local stack can be started with Docker Compose, including Postgres, the MCP server, and an extraction worker. Documents are ingested with the mycobrain-ingest command, and agents connect through the published MCP package. The server also sends usage guidance through MCP instructions so connected agents know to retrieve context before a task, save durable decisions, and use provenance tools when citing information.

The extraction process proposes entities, relationships, and facts. Deterministic rules decide what enters the canonical graph. In the default mode, confident facts can be promoted automatically, while unfamiliar schema types wait for review. Strict review can be enabled with BRAIN_REQUIRE_HUMAN_REVIEW=1; new schema types can instead be auto-promoted after corroboration from enough distinct source documents with BRAIN_SCHEMA_AUTO_PROMOTE=1.

Independent documents agreeing with a fact increase its confidence. A strong contradiction for a single-valued relationship supersedes the earlier fact without deleting it, and the change remains in an audited claims history. This gives myco-brain a visible record of confidence changes and superseded claims.

Setup and configuration

The documented quickstart is:

  • Clone the repository and run docker compose up -d.
  • Ingest a repository or folder with npx -y -p @mycobrain/mcp-server mycobrain-ingest github:your-org/your-repo.
  • Configure an MCP client to connect to the server.

An Anthropic key is optional when higher graph-extraction accuracy is desired. Review pending entities, relationships, and types with mycobrain review, then approve or reject individual items by ID.

Tools and capabilities

The 13 MCP tools are:

  • brain_context_pack for assembling relevant context.
  • brain_search for finding stored information.
  • brain_why for examining source provenance, confidence trends, and superseded history.
  • brain_neighbors and brain_get_related for exploring connected knowledge.
  • brain_propose_fact and brain_annotate for proposing or adding structured information.
  • brain_save_memory and brain_recall_memory for durable memory operations.
  • brain_stats for inspecting memory and schema status.
  • brain_set_mode for selecting operating behavior.
  • brain_self_check for checking the system.

The myco-brain MCP server supports compounding confidence based on distinct source documents rather than repeated mentions in one document. Its catalog can also discover new entity and relationship types, which may remain workspace-scoped and pending review until promoted.

Limitations and notes

Isolation guarantees depend on using the least-privilege brain_app role. Postgres superusers bypass row-level security, including the superuser role used by the zero-configuration quickstart. Strict human review and automatic schema promotion are configuration choices, not simultaneous default behavior.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Myco Brain

myco-brain is an MCP server that connects AI agents to a self-hosted Postgres memory layer. Its main tools ingest documents, search and recall memories, assemble context, inspect source provenance, navigate related entities, propose facts, manage annotations, report statistics, set modes, and run self-checks. Local operation needs no API key.

Start the repository stack with Docker Compose, then configure an MCP client to use the published server package. The documented commands clone the repository, run `docker compose up -d`, and use `npx -y -p @mycobrain/mcp-server mycobrain-ingest` to ingest a repository or folder.

Yes, myco-brain lists Cursor among its compatible clients. Cursor can connect to the MCP server and use its tools for shared memory, search, context retrieval, and source inspection.

No, the local search and graph features can run without an API key. Full-text search, semantic search with local embeddings, and local graph extraction have no hosted dependency; an Anthropic key is optional for the most accurate graph extraction.

It records the source document for extracted facts and exposes `brain_why` to inspect provenance. The tool can show distinct source counts, confidence changes over time, and superseded history instead of silently replacing contradictory claims.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMyco Brain AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/myco-brain?style=directory)](https://allmcps.com/mcp/myco-brain)
HTML Embed
<a href="https://allmcps.com/mcp/myco-brain"><img src="https://allmcps.com/api/badge/myco-brain?style=directory" alt="Myco Brain on AllMCPs" /></a>