Skip to main content
Glama
Memory Bank MCP Server

Memory Bank MCP Server

by t3ta

存储库 MCP 服务器

一个记忆库实现,用于使用模型上下文协议 (MCP) 跨会话管理项目文档和上下文。该服务器帮助像 Claude 这样的 AI 代理通过以结构化 JSON 格式存储的全局和特定分支记忆库来保持一致的项目知识。

该项目的灵感来自nickbaumann98/cline_docs存储库中的Cline Memory Bank 。

套餐

此存储库是一个由 Yarn Workspaces 管理的 monorepo。它包含以下软件包:

  • packages/mcp :MCP 服务器的核心实现。包含处理内存条操作、MCP 工具执行以及服务器启动的主要逻辑。

  • packages/schemas :定义用于记忆库文档的 JSON 模式(例如, memory_document_v2 )。

  • packages/vscode-extension :VSCode 扩展,提供与 Memory Bank MCP 服务器的集成(详情待定)。

Related MCP server: Memory MCP Server

入门

先决条件

  • Node.js(请参阅.tool-versions了解推荐版本)

  • Yarn(v1.x)

安装

从根目录克隆存储库并安装依赖项:

git clone https://github.com/t3ta/memory-bank-mcp-server.git
cd memory-bank-mcp-server
yarn install

运行 MCP 服务器

您可以直接从 monorepo 运行 MCP 服务器:

# From the monorepo root directory
yarn workspace @memory-bank/mcp start --docs /path/to/your/docs

将/path/to/your/docs替换为项目文档目录的实际路径( global-memory-bank和branch-memory-bank将驻留或创建的位置)。

有关运行服务器及其选项的更多详细信息,请参阅packages/mcp/README.md 。

发展

  • 构建所有包: yarn build

  • 对所有包运行测试: yarn test

  • 棉绒代码: yarn lint

请参阅每个包目录中的 README 文件,了解特定于包的开发说明。

执照

本项目遵循 MIT 许可证。详情请参阅 LICENSE 文件。

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server for Claude Desktop that provides structured memory management across chat sessions, allowing Claude to maintain context and build a knowledge base within project directories.
      7
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A persistent memory server for Claude Code that captures session context and tool outputs to inject relevant history into future sessions. It enables long-term recall through semantic search and automatic context management, allowing for more consistent and context-aware coding interactions.
      253
      AGPL 3.0