Skip to content
MCP server

Memory Bridge (忆桥)

Local-first knowledge and memory layer with sentence-level citations and audit trail

Runs locally

Memory Bridge (忆桥) is an open-source MCP server for knowledge and memory. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
Self-hosted, Linux, macOS
Runs
Locally
What it can do
Can change data (1 tool)
Version
1.0.1

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add mcp-memory-bridge --env MEMORY_BRIDGE_MCP_TOKEN='<MEMORY_BRIDGE_MCP_TOKEN>' -- docker run -i --rm -e MEMORY_BRIDGE_MCP_TOKEN ghcr.io/yanglinfeng/memory-bridge:1.0.1

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

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "mcp-memory-bridge": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MEMORY_BRIDGE_MCP_TOKEN",
        "ghcr.io/yanglinfeng/memory-bridge:1.0.1"
      ],
      "env": {
        "MEMORY_BRIDGE_MCP_TOKEN": "<MEMORY_BRIDGE_MCP_TOKEN>"
      }
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "mcp-memory-bridge": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MEMORY_BRIDGE_MCP_TOKEN",
        "ghcr.io/yanglinfeng/memory-bridge:1.0.1"
      ],
      "env": {
        "MEMORY_BRIDGE_MCP_TOKEN": "<MEMORY_BRIDGE_MCP_TOKEN>"
      }
    }
  }
}

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

Claude Desktop setup guide

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "mcp-memory-bridge": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MEMORY_BRIDGE_MCP_TOKEN",
        "ghcr.io/yanglinfeng/memory-bridge:1.0.1"
      ],
      "env": {
        "MEMORY_BRIDGE_MCP_TOKEN": "<MEMORY_BRIDGE_MCP_TOKEN>"
      }
    }
  }
}

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

Cursor setup guide

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "mcp-memory-bridge": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MEMORY_BRIDGE_MCP_TOKEN",
        "ghcr.io/yanglinfeng/memory-bridge:1.0.1"
      ],
      "env": {
        "MEMORY_BRIDGE_MCP_TOKEN": "<MEMORY_BRIDGE_MCP_TOKEN>"
      }
    }
  }
}

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

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add mcp-memory-bridge --env MEMORY_BRIDGE_MCP_TOKEN='<MEMORY_BRIDGE_MCP_TOKEN>' -- docker run -i --rm -e MEMORY_BRIDGE_MCP_TOKEN ghcr.io/yanglinfeng/memory-bridge:1.0.1

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.mcp-memory-bridge]
command = "docker"
args = ["run", "-i", "--rm", "-e", "MEMORY_BRIDGE_MCP_TOKEN", "ghcr.io/yanglinfeng/memory-bridge:1.0.1"]
env = { MEMORY_BRIDGE_MCP_TOKEN = "<MEMORY_BRIDGE_MCP_TOKEN>" }

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "mcp-memory-bridge": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MEMORY_BRIDGE_MCP_TOKEN",
        "ghcr.io/yanglinfeng/memory-bridge:1.0.1"
      ],
      "env": {
        "MEMORY_BRIDGE_MCP_TOKEN": "<MEMORY_BRIDGE_MCP_TOKEN>"
      }
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "mcp-memory-bridge": {
          "command": "docker",
          "args": [
            "run",
            "-i",
            "--rm",
            "-e",
            "MEMORY_BRIDGE_MCP_TOKEN",
            "ghcr.io/yanglinfeng/memory-bridge:1.0.1"
          ],
          "env": {
            "MEMORY_BRIDGE_MCP_TOKEN": "<MEMORY_BRIDGE_MCP_TOKEN>"
          }
        }
      }
    }

    Or run: gemini mcp add -s user -e MEMORY_BRIDGE_MCP_TOKEN='<MEMORY_BRIDGE_MCP_TOKEN>' mcp-memory-bridge docker -- run -i --rm -e MEMORY_BRIDGE_MCP_TOKEN ghcr.io/yanglinfeng/memory-bridge:1.0.1

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "mcp-memory-bridge": {
          "command": "docker",
          "args": [
            "run",
            "-i",
            "--rm",
            "-e",
            "MEMORY_BRIDGE_MCP_TOKEN",
            "ghcr.io/yanglinfeng/memory-bridge:1.0.1"
          ],
          "env": {
            "MEMORY_BRIDGE_MCP_TOKEN": "<MEMORY_BRIDGE_MCP_TOKEN>"
          }
        }
      }
    }

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

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "mcp-memory-bridge": {
          "command": "docker",
          "args": [
            "run",
            "-i",
            "--rm",
            "-e",
            "MEMORY_BRIDGE_MCP_TOKEN",
            "ghcr.io/yanglinfeng/memory-bridge:1.0.1"
          ],
          "env": {
            "MEMORY_BRIDGE_MCP_TOKEN": "<MEMORY_BRIDGE_MCP_TOKEN>"
          }
        }
      }
    }

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

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "mcp-memory-bridge": {
          "command": "docker",
          "args": [
            "run",
            "-i",
            "--rm",
            "-e",
            "MEMORY_BRIDGE_MCP_TOKEN",
            "ghcr.io/yanglinfeng/memory-bridge:1.0.1"
          ],
          "env": {
            "MEMORY_BRIDGE_MCP_TOKEN": "<MEMORY_BRIDGE_MCP_TOKEN>"
          }
        }
      }
    }

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

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "mcp-memory-bridge": {
          "command": "docker",
          "args": [
            "run",
            "-i",
            "--rm",
            "-e",
            "MEMORY_BRIDGE_MCP_TOKEN",
            "ghcr.io/yanglinfeng/memory-bridge:1.0.1"
          ],
          "env": {
            "MEMORY_BRIDGE_MCP_TOKEN": "<MEMORY_BRIDGE_MCP_TOKEN>"
          }
        }
      }
    }

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

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "mcp-memory-bridge": {
          "command": "docker",
          "args": [
            "run",
            "-i",
            "--rm",
            "-e",
            "MEMORY_BRIDGE_MCP_TOKEN",
            "ghcr.io/yanglinfeng/memory-bridge:1.0.1"
          ],
          "env": {
            "MEMORY_BRIDGE_MCP_TOKEN": "<MEMORY_BRIDGE_MCP_TOKEN>"
          }
        }
      }
    }

    The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "mcp-memory-bridge": {
          "command": "docker",
          "args": [
            "run",
            "-i",
            "--rm",
            "-e",
            "MEMORY_BRIDGE_MCP_TOKEN",
            "ghcr.io/yanglinfeng/memory-bridge:1.0.1"
          ],
          "env": {
            "MEMORY_BRIDGE_MCP_TOKEN": "<MEMORY_BRIDGE_MCP_TOKEN>"
          }
        }
      }
    }

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

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "mcp-memory-bridge": {
          "command": "docker",
          "args": [
            "run",
            "-i",
            "--rm",
            "-e",
            "MEMORY_BRIDGE_MCP_TOKEN",
            "ghcr.io/yanglinfeng/memory-bridge:1.0.1"
          ],
          "env": {
            "MEMORY_BRIDGE_MCP_TOKEN": "<MEMORY_BRIDGE_MCP_TOKEN>"
          }
        }
      }
    }

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

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • MEMORY_BRIDGE_USER_IDTrusted local principal the stdio session acts as. The image defaults it to 'default'; the server refuses to start when both this and MEMORY_BRIDGE_MCP_TOKEN are absent.
  • MEMORY_BRIDGE_MCP_TOKENAccount credential used to resolve the startup principal. Alternative to MEMORY_BRIDGE_USER_ID.
  • MEMORY_BRIDGE_OLLAMA_URLBase URL of the Ollama runtime used for generation and embeddings. Inside a container this is usually http://host.docker.internal:11434.

About Memory Bridge (忆桥)

Memory Bridge is aimed at internal document question answering where it matters which file and which passage a statement came from. Answers bind each sentence to its source, every recall carries a replayable traceId, and the README says it will decline to answer when the corpus has no support. Arithmetic and date maths go to code tools instead of the model.

Documents have version chains, so a revised policy supersedes the old one in default retrieval while history stays auditable. Users, namespaces and scopes isolate departments, and all operations are audited. Search combines full-text, dense vectors, concept index and a cross-encoder reranker. By default models run through local Ollama, so data stays on the machine unless a remote endpoint is configured.

The MCP server exposes seven memory tools and three solver tools. It also ships an HTTP API, an OpenAI-compatible interface and an admin console. Apache-2.0 licensed; the author says ingestion and delivery services are offered commercially.

Tools this server provides (10)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 1 of 10 tools changes data; 7 names don't say.

From the server's own tool labels and tool names; not verified by us.

memory_remember
Store a memory.
memory_recall
Recall memories with sources.
memory_get_contextName suggests: reads
Get context for a query.
memory_updateName suggests: changes
Correct a memory.
memory_forget
Forget a memory.
memory_listName suggests: reads
List memories.
memory_stats
Show memory statistics.
answer_calculator
Deterministic arithmetic.
answer_date_diff
Difference between dates.
answer_date_shift
Shift a date by an interval.

What it does

Cited answers
Sentence-level source bindings and replayable trace IDs.
Version chains
Revised documents supersede older ones in default search.
Namespace isolation
Separate users, namespaces and scopes per department.
Hybrid retrieval
Full-text, vectors, concepts and a reranker.
Local by default
Uses local Ollama unless you point it elsewhere.
Audit and doctor
Operation logs and a read-only health check for duplicates and conflicts.

Good for

  • Answer policy and contract questions with exact sources
  • Keep an agent's long-term memory with a correction trail
  • Isolate department knowledge bases
  • Run a document Q&A stack on an internal network

Pricing

Open source

Memory Bridge (忆桥) FAQ

Does data leave my network?

By default models run on local Ollama; a remote endpoint sends prompts and context there.

How do I run Memory Bridge (忆桥)?

With the published Docker image over stdio, or from source with Node 24+.

What identity does the server need?

MEMORY_BRIDGE_USER_ID or MEMORY_BRIDGE_MCP_TOKEN; it refuses to start without one.

Is Memory Bridge (忆桥) free?

Yes. Memory Bridge (忆桥) is open source, so you can use and self-host it for free.

How do I add Memory Bridge (忆桥) to Claude Code?

Run this command in your terminal: claude mcp add mcp-memory-bridge --env MEMORY_BRIDGE_MCP_TOKEN='<MEMORY_BRIDGE_MCP_TOKEN>' -- docker run -i --rm -e MEMORY_BRIDGE_MCP_TOKEN ghcr.io/yanglinfeng/memory-bridge:1.0.1

What are the best alternatives to Memory Bridge (忆桥)?

The closest alternatives to Memory Bridge (忆桥) 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.

How AIPoweredBot checks servers