AM

alioshr/memory-bank-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

920 stars 87 forks 质量 77 趋势 22MIT

一个基于Cline内存银行管理的模型上下文协议(MCP)服务器实现,灵感来自Cline内存银行。

概览

一个基于Cline内存银行管理的模型上下文协议(MCP)服务器实现,灵感来自Cline内存银行。 内存银行MCP服务器将传统的基于文件的内存存储库转变为一种集中式服务,能够: - 通过MCP协议远程访问内存库文件 - 支持多项目内存库管理 - 保持文件结构一致和验证 - 确保项目内存库之间的适当隔离 - 项目专用目录 - 文件结构强制执行 - 路径遍历防止 - 项目列表功能 - 每个项目的文件列表 - 完整的MCP协议实现 - 类型安全操作 - 正确的错误处理 - 通过项目隔离实现安全 - - 读/写/更新内存库文件 - 列出可用项目 - 列表项目内文件 - 项目存在验证 - 安全的只读操作 通过Smithery自动安装Claude Desktop的Memory Bank Server: 这将设置MCP服务器配置......

概述(AI 翻译)

一个基于Cline内存银行管理的模型上下文协议(MCP)服务器实现,灵感来自Cline内存银行。

概述

内存银行MCP服务器将传统的基于文件的内存存储库转变为一种集中式服务,能够:

  • 通过MCP协议提供对内存银行文件的远程访问
  • 支持多项目内存库管理
  • 保持文件结构和验证一致
  • 确保项目内存银行之间的适当隔离

特色

  • 多项目支持

  • 项目专用目录

  • 文件结构强制执行

  • 路径穿越预防

  • 项目列表功能

  • 按项目列出文件列表

  • 远程可达性

  • 完整的MCP协议实现

  • 类型安全操作

  • 正确的错误处理

  • 通过项目隔离实现安全

  • 核心操作

  • 读写/更新内存库文件

  • 可参与项目列表

  • 项目内的列表文件

  • 项目存在验证

  • 安全的只读操作

安装

通过Smithery自动安装Claude Desktop的Memory Bank Server:

这样会自动设置MCP服务器配置。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Memory Bank MCP Server

A Model Context Protocol (MCP) server implementation for remote memory bank management, inspired by Cline Memory Bank.

Overview

The Memory Bank MCP Server transforms traditional file-based memory banks into a centralized service that:

  • Provides remote access to memory bank files via MCP protocol
  • Enables multi-project memory bank management
  • Maintains consistent file structure and validation
  • Ensures proper isolation between project memory banks

Features

  • Multi-Project Support

    • Project-specific directories
    • File structure enforcement
    • Path traversal prevention
    • Project listing capabilities
    • File listing per project
  • Remote Accessibility

    • Full MCP protocol implementation
    • Type-safe operations
    • Proper error handling
    • Security through project isolation
  • Core Operations

    • Read/write/update memory bank files
    • List available projects
    • List files within projects
    • Project existence validation
    • Safe read-only operations

Installation

To install Memory Bank Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @alioshr/memory-bank-mcp --client claude

This will set up the MCP server configuration automatically. Alternatively, you can configure the server manually as described in the Configuration section below.

Quick Start

  1. Configure the MCP server in your settings (see Configuration section below)
  2. Start using the memory bank tools in your AI assistant

Using with Cline/Roo Code

The memory bank MCP server needs to be configured in your Cline MCP settings file. The location depends on your setup:

  • For Cline extension: ~/Library/Application Support/Cursor/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
  • For Roo Code VS Code extension: ~/Library/Application Support/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/mcp_settings.json

Add the following configuration to your MCP settings:

{
  "allpepper-memory-bank": {
    "command": "npx",
    "args": ["-y", "@allpepper/memory-bank-mcp"],
    "env": {
      "MEMORY_BANK_ROOT": ""
    },
    "disabled": false,
    "autoApprove": [
在 GitHub 查看完整 README

安装

npx -y @allpepper/memory-bank-mcp
新手?先看 mcpskill.org 教程 →