# Mushroomdb

> Mushroomdb is a free MCP server for databases. Embedded graph database where declared rules derive, score and retract edges. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/matthewsherlin/mushroomdb
- **MCP Registry name:** io.github.MatthewSherlin/mushroomdb
- **Categories:** [databases](https://ai-powered.com/categories/databases), [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory)
- **Listing updated:** 2026-11-23

## About

A relationship in mushroomdb is a rule you declare once: for example, connect every Person to every Org whose skills overlap by at least half. After that, each insert or property change evaluates the rule incrementally, writing the edge with a score and retracting it in the same write that makes it untrue, so there is no re-index step or batch job.

For agents, the MCP tools include remember, recall and forget for memory, plus explain_association, which names the rule, score and shared values behind a link, edges_at for past dates or commits, and what_if for previewing a change without writing it. Queries bound to a role see only what that role may see, and vector search and graph walks both obey it.

The README describes Cypher and the Bolt protocol, transactions, full-text and vector search, and queryable history. It runs embedded as a directory on disk or as an HTTP server in Docker. It is a pre-1.0 alpha, not hosted, one writer at a time, with the working graph in memory.

## Features

- **Declared rules:** Six predicate kinds derive edges automatically and can be combined.
- **Explainable edges:** Each edge can show the rule, score and values behind it.
- **Time travel:** Reads edges as of a past date or commit.
- **What-if preview:** Computes edges a change would add or remove without writing.
- **Role-scoped access:** Queries only see what the bound role may see.
- **Agent memory:** Offers remember, recall and forget tools over MCP.

## Good for

- Give a coding agent persistent memory
- Restrict an AI assistant's retrieval by role
- Match people to projects by overlapping skills
- Audit why two entities are linked

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add mushroomdb -- npx -y mushroomdb
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "mushroomdb": {
      "command": "npx",
      "args": [
        "-y",
        "mushroomdb"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mushroomdb": {
      "command": "npx",
      "args": [
        "-y",
        "mushroomdb"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mushroomdb": {
      "command": "npx",
      "args": [
        "-y",
        "mushroomdb"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "mushroomdb": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mushroomdb"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add mushroomdb -- npx -y mushroomdb
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.mushroomdb]
command = "npx"
args = ["-y", "mushroomdb"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "mushroomdb": {
      "command": "npx",
      "args": [
        "-y",
        "mushroomdb"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user mushroomdb npx -- -y mushroomdb

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "mushroomdb": {
      "command": "npx",
      "args": [
        "-y",
        "mushroomdb"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "mushroomdb": {
      "command": "npx",
      "args": [
        "-y",
        "mushroomdb"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "mushroomdb": {
      "command": "npx",
      "args": [
        "-y",
        "mushroomdb"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mushroomdb": {
      "command": "npx",
      "args": [
        "-y",
        "mushroomdb"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "mushroomdb": {
      "command": "npx",
      "args": [
        "-y",
        "mushroomdb"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "mushroomdb": {
      "command": "npx",
      "args": [
        "-y",
        "mushroomdb"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "mushroomdb": {
      "command": "npx",
      "args": [
        "-y",
        "mushroomdb"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mushroomdb": {
      "command": "npx",
      "args": [
        "-y",
        "mushroomdb"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 6 tools reads data; 5 names don't say. From the server's own tool labels and tool names; not verified by us.

- `remember`: Store a memory
- `recall`: Retrieve stored memory
- `forget`: Remove a memory
- `explain_association` (name suggests: reads): Name the rule, score and shared values behind a relationship
- `edges_at`: Edges a node had on a past date or commit
- `what_if`: Edges a property change would gain and lose, without writing

## FAQ

### Is Mushroomdb production ready?

The README labels it a pre-1.0 alpha whose APIs and formats may change between minor versions.

### Does Mushroomdb need a server?

No. Embedded, it is a directory on disk; it can also run as an HTTP server with optional Bolt.

### Is Mushroomdb a vector database?

No. It has vector rules and an HNSW index, but you bring the embeddings.

### What are the concurrency limits?

One writer at a time, snapshot-isolated transactions, and the working graph lives in memory.

### Is Mushroomdb free?

Yes. Mushroomdb is free to use.

### How do I add Mushroomdb to Claude Code?

Run this command in your terminal: claude mcp add mushroomdb -- npx -y mushroomdb

### What are the best alternatives to Mushroomdb?

The closest alternatives to Mushroomdb are Codebase Memory, XERJ, Claude Code Ultimate Guide, Nautilus Compass Memory and Myco: Agent-First Cognitive Substrate.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Nautilus Compass Memory](https://ai-powered.com/mcp/nautilus-compass-memory): Nautilus Compass Memory is an open-source MCP server for knowledge and memory.
- [Myco: Agent-First Cognitive Substrate](https://ai-powered.com/mcp/myco-agent-first-cognitive-substrate): Myco: Agent-First Cognitive Substrate is an open-source MCP server for knowledge and memory.
- [Source Library](https://ai-powered.com/mcp/source-library): Source Library is an open-source MCP server for knowledge and memory.
- [keepplain-plugin](https://ai-powered.com/mcp/keepplain-plugin): keepplain-plugin is a freemium MCP server for knowledge and memory.
- [Second Brain](https://ai-powered.com/mcp/second-brain-2): Second Brain is a freemium MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/mushroomdb
