Skip to main content
Glama
Roo Code Memory Bank MCP Server

Roo Code Memory Bank MCP Server

RooコードメモリバンクMCPサーバー

このプロジェクトは、Roo Code Memory Bankシステムのコア機能をモデルコンテキストプロトコル(MCP)サーバーとして実装します。これにより、AIアシスタントは構造化されたMCPツールを使用してファイルベースのメモリバンクとやり取りすることで、セッション間でプロジェクトのコンテキストを維持できるようになります。

特徴

この MCP サーバーは次のツールを提供します。

  • initialize_memory_bank : 初期テンプレートを使用して、 memory-bank/ディレクトリと標準.mdファイル ( productContext.md 、 activeContext.md 、 progress.md 、 decisionLog.md 、 systemPatterns.md ) を作成します。

    • 入力: (オプション) { "project_brief_content": string }

    • 出力: { "status": "success" | "error", "messages"?: string[], "message"?: string }

  • check_memory_bank_status : memory-bank/ディレクトリが存在するかどうかを確認し、その中の.mdファイルを一覧表示します。

    • 入力: {}

    • 出力: { "exists": boolean, "files": string[] }

  • read_memory_bank_file : 指定されたメモリ バンク ファイルの完全な内容を読み取ります。

    • 入力: { "file_name": string }

    • 出力: { "content": string }またはエラー オブジェクト。

  • append_memory_bank_entry : 指定されたファイルに、タイムスタンプ付きの新しいエントリを追加します。オプションで、特定のマークダウンヘッダーを付けて追加します。ファイルが存在しない場合は作成します。

    • 入力: { "file_name": string, "entry": string, "section_header"?: string }

    • 出力: { "status": "success" | "error", "message": string }

Related MCP server: ai-memory-mcp

前提条件

  • Node.js (v18以降を推奨)

  • npm (通常はNode.jsに含まれています)

  • MCP サーバーを管理および起動できる MCP クライアント環境 (Cline で使用されるものなど)。

インストール

  1. リポジトリをクローンします。

    git clone https://github.com/IncomeStreamSurfer/roo-code-memory-bank-mcp-server.git
    cd roo-code-memory-bank-mcp-server
  2. 依存関係をインストールします:

    npm install
  3. プロジェクトをビルドします。

    npm run build

    これにより、TypeScript コードがdist/ディレクトリ内の JavaScript にコンパイルされます。

構成(Cline MCP クライアント用)

このサーバーを AI アシスタント (Cline など) で使用できるようにするには、その構成を MCP 設定ファイル (例: cline_mcp_settings.json ) に追加する必要があります。

設定ファイルでmcpServersオブジェクトを見つけて、次のエントリを追加します。

{
  "mcpServers": {
    // ... other server configurations ...

    "roo-code-memory-bank-mcp": {
      "autoApprove": [
        "initialize_memory_bank",
        "check_memory_bank_status",
        "read_memory_bank_file",
        "append_memory_bank_entry"
      ],
      "disabled": false,
      "timeout": 60,
      "command": "node", // Or "cmd.exe" with "/c node ..." on Windows if needed
      "args": [
        // IMPORTANT: Replace this path with the actual absolute path
        // to the compiled index.js file on your system
        "/path/to/your/cloned/repo/roo-code-memory-bank-mcp-server/dist/index.js"
      ],
      "env": {},
      "transportType": "stdio"
    }

    // ... other server configurations ...
  }
}

重要: /path/to/your/cloned/repo/リポジトリをクローンしたマシンへの正しい絶対パスに置き換えてください。パス区切り文字がオペレーティングシステムに合っていることを確認してください(例:Windowsではバックスラッシュ「 \を使用)。

サーバーの実行

通常、サーバーを手動で起動する必要はありません。MCPクライアント(Clineなど)は、ツールのいずれかが初めて呼び出されたときに、設定ファイルに指定されたcommandとargsを使用してサーバーを自動的に起動します。

手動でテストしたい場合は、プロジェクトディレクトリからnpm startを実行できます。

使用法

AIアシスタントは定義されたツールを使用してサーバーとやり取りします。典型的なワークフローは以下のとおりです。

  1. メモリバンクのステータスを確認しています ( check_memory_bank_status )。

  2. 必要に応じて初期化します ( initialize_memory_bank )。

  3. コンテキストを取得するために関連ファイルを読み取ります ( read_memory_bank_file )。

  4. 決定が下されるか、進捗が発生すると、エントリを追加します ( append_memory_bank_entry )。

サーバー プロセスが開始されるディレクトリと同じディレクトリにmemory-bank/ディレクトリが作成されます (MCP クライアント構成を介して起動された場合、このプロジェクト ディレクトリのルートになります)。

カスタム指示

これらの指示をRoo内で設定します

必要に応じてMCPを使用する必要があります

特定の MCP フローがあります:

context7 を使用して、このプロセスに必要な関連ドキュメントを見つけます。関連する知識は、関連するサブタスクに必ずフィードしてください。不明な点がある場合は、常に context7 を使用して重要なドキュメントを調査してください。+ を検索するには、Google マップの MCP を使用します。これにより、タスクを実行するために必要な基本的なビジネスを見つけることができます。Brave Search MCP を使用して、スクレイピングする URL を検索します。fetch_txt および fetch_markdown で fetch mcp を使用して、ページ上のテキストと画像を検索し、JSON ファイルに変換して詳細な情報を作成します。openrouter 検索を使用して、トピックやレビューなどの一般的な感情を検索します。

roo-code-memory-bank-mcpサーバーを利用してプロジェクト コンテキストを維持します。

  • タスクまたは重要なサブタスクの開始時に、 check_memory_bank_status使用します。

  • メモリ バンクが存在する場合 ( exists: true )、関連ファイル (例: productContext.md 、 activeContext.md ) に対してread_memory_bank_fileを使用して、現在のプロジェクト コンテキストを読み込みます。

  • この意味深いコンテキストを計画と実行に組み込みます。

  • 重要な決定、進捗状況の更新、またはアーキテクチャの変更を行う場合は、 append_memory_bank_entryを使用して適切なファイル ( decisionLog.md 、 progress.mdなど) に情報を記録し、コンテキストの永続性を確保します。

  • メモリ バンクが存在しない場合は、プロジェクトに適している場合は、 initialize_memory_bank使用を検討してください。

Available Tools

4 tools
append_memory_bank_entryC

Appends a new, timestamped entry to a specified file, optionally under a specific markdown header.

Inputs: entry (required), file_name (required), section_header.

check_memory_bank_statusA

Checks if the memory-bank directory exists and lists the .md files within it.

Inputs: no named parameters.

initialize_memory_bankB

Creates the memory-bank directory and standard .md files with initial templates.

Inputs: project_brief_content.

read_memory_bank_fileC

Reads the full content of a specified memory bank file.

Inputs: file_name (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: append adds entries, check verifies directory status, initialize sets up the structure, and read retrieves content. There is no overlap in functionality, making it easy for an agent to select the correct tool without confusion.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern (e.g., append_memory_bank_entry, check_memory_bank_status), with clear and descriptive verbs. There are no deviations in naming conventions, ensuring predictability and readability.

    Tool Count5/5

    With 4 tools, the server is well-scoped for managing a memory bank system. Each tool serves a distinct and necessary function (setup, verification, reading, writing), and the count is neither too sparse nor excessive for the domain.

    Completeness4/5

    The tools cover core CRUD-like operations for a memory bank: initialize (create), check (status), read (retrieve), and append (update/add). A minor gap is the lack of a delete or modify tool for removing or editing entries, but agents can work around this with append for updates.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to retain memory across sessions by storing conversations locally in Markdown files, allowing personalization and continuity without external servers.
      MIT
    • F
      license
      Not graded
      quality
      F
      maintenance
      Persistent memory for MCP-powered coding agents, allowing LLMs to remember preferences, project context, and decisions across sessions via Markdown files.
      6 npm
      -