Memory Bank MCP Server
メモリバンクMCPサーバー
Cline Memory Bankにヒントを得た、リモート メモリ バンク管理用の Model Context Protocol (MCP) サーバー実装。
概要
メモリ バンク MCP サーバーは、従来のファイルベースのメモリ バンクを、次のような機能を備えた集中型サービスに変換します。
MCPプロトコルを介してメモリバンクファイルへのリモートアクセスを提供します
マルチプロジェクトのメモリバンク管理を可能にする
一貫したファイル構造と検証を維持
プロジェクトメモリバンク間の適切な分離を確保
Related MCP server: agent-context-substrate
特徴
複数プロジェクトのサポート
プロジェクト固有のディレクトリ
ファイル構造の強制
パストラバーサル防止
プロジェクト一覧機能
プロジェクトごとのファイルリスト
リモートアクセシビリティ
完全なMCPプロトコル実装
型安全な操作
適切なエラー処理
プロジェクトの分離によるセキュリティ
コアオペレーション
メモリバンクファイルの読み取り/書き込み/更新
利用可能なプロジェクトの一覧
プロジェクト内のファイルを一覧表示する
プロジェクトの存在検証
安全な読み取り専用操作
インストール
Smithery経由で Claude Desktop 用の Memory Bank Server を自動的にインストールするには:
npx -y @smithery/cli install @alioshr/memory-bank-mcp --client claudeこれにより、MCPサーバーの設定が自動的に行われます。または、以下の「設定」セクションの説明に従って、手動でサーバーを設定することもできます。
クイックスタート
設定でMCPサーバーを構成します(以下の構成セクションを参照)
AIアシスタントのメモリバンクツールを使い始めましょう
構成
メモリバンクMCPサーバーは、Cline MCP設定ファイルで設定する必要があります。場所は設定によって異なります。
Cline 拡張機能の場合:
~/Library/Application Support/Cursor/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.jsonRoo Code VS Code 拡張機能の場合:
~/Library/Application Support/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/mcp_settings.jsonClaude デスクトップ アプリの場合:
~/Library/Application Support/Claude/claude_desktop_config.json
MCP 設定に次の構成を追加します。
{
"allpepper-memory-bank": {
"command": "npx",
"args": ["-y", "@allpepper/memory-bank-mcp"],
"env": {
"MEMORY_BANK_ROOT": "<path-to-bank>"
},
"disabled": false,
"autoApprove": [
"memory_bank_read",
"memory_bank_write",
"memory_bank_update",
"list_projects",
"list_project_files"
]
}
}構成の詳細
MEMORY_BANK_ROOT: プロジェクトのメモリバンクが保存されるディレクトリ(例:/path/to/memory-bank)disabled: サーバーを有効にするにはfalseに設定しますautoApprove: 明示的なユーザー承認を必要としない操作のリスト:memory_bank_read: メモリバンクファイルを読み取るmemory_bank_write: 新しいメモリバンクファイルを作成するmemory_bank_update: 既存のメモリバンクファイルを更新するlist_projects: 利用可能なプロジェクトを一覧表示するlist_project_files: プロジェクト内のファイルを一覧表示する
カーソル用
カーソルの場合は、設定を開き、機能 -> MCP サーバーを追加 -> 以下を追加します。
env MEMORY_BANK_ROOT=<path-to-bank> npx -y @allpepper/memory-bank-mcp@latestカスタムIA指示
このセクションには、Cline、Claude、Cursor、またはその他のMCPクライアントのAIカスタムインストラクションに貼り付ける指示が含まれています。これらのルールをコピー&ペーストしてください。これらのルールはcustom-instructions.mdに記載されていますので、ご参照ください。
発達
基本的な開発コマンド:
# Install dependencies
npm install
# Build the project
npm run build
# Run tests
npm run test
# Run tests in watch mode
npm run test:watch
# Run the server directly with ts-node for quick testing
npm run devDockerで実行する
Docker イメージをビルドします。
docker build -t memory-bank-mcp:local .テスト用に Docker コンテナを実行します。
docker run -i --rm \ -e MEMORY_BANK_ROOT="/mnt/memory_bank" \ -v /path/to/memory-bank:/mnt/memory_bank \ --entrypoint /bin/sh \ memory-bank-mcp:local \ -c "ls -la /mnt/memory_bank"MCP 構成を追加します (Roo Code の例)。
"allpepper-memory-bank": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "MEMORY_BANK_ROOT", "-v", "/path/to/memory-bank:/mnt/memory_bank", "memory-bank-mcp:local" ], "env": { "MEMORY_BANK_ROOT": "/mnt/memory_bank" }, "disabled": false, "alwaysAllow": [ "list_projects", "list_project_files", "memory_bank_read", "memory_bank_update", "memory_bank_write" ] }
貢献
貢献を歓迎します!以下の手順に従ってください。
リポジトリをフォークする
機能ブランチを作成する (
git checkout -b feature/amazing-feature)変更をコミットします(
git commit -m 'Add amazing feature')ブランチにプッシュする (
git push origin feature/amazing-feature)プルリクエストを開く
開発ガイドライン
すべての新しいコードにTypeScriptを使用する
コードベース全体で型の安全性を維持する
新機能のテストを追加する
必要に応じてドキュメントを更新する
既存のコードスタイルとパターンに従う
テスト
新しい機能のユニットテストを書く
複数プロジェクトのシナリオテストを含める
エラーケースを徹底的にテストする
型制約を検証する
ファイルシステム操作を適切にモックする
ライセンス
このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細についてはLICENSEファイルを参照してください。
謝辞
このプロジェクトは、Cline Memory Bankで最初に文書化されたメモリ バンクの概念を実装し、リモート機能とマルチ プロジェクト サポートを追加して拡張します。
Available Tools
5 toolslist_project_filesA
List all files within a specific project
Inputs: projectName (required).
list_projectsB
List all projects in the memory bank
Inputs: no named parameters.
memory_bank_readB
Read a memory bank file for a specific project
Inputs: fileName (required), projectName (required).
memory_bank_updateC
Update an existing memory bank file for a specific project
Inputs: content (required), fileName (required), projectName (required).
memory_bank_writeC
Create a new memory bank file for a specific project
Inputs: content (required), fileName (required), projectName (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool targets a distinct resource and action: listing projects, listing files within a project, reading a file, creating a file, and updating a file. There is no overlap or ambiguity between tools.
Names mix two conventions: 'list_projects' and 'list_project_files' use verb-first snake_case, while 'memory_bank_read', 'memory_bank_write', and 'memory_bank_update' use object-first with a modifier. The pattern is inconsistent but still readable.
Five tools is well-scoped for a memory bank server, covering the essential operations without unnecessary bloat. The count feels right for the domain.
The server covers list, read, create, and update of memory bank files, but it is missing a delete operation. This is a notable gap in CRUD coverage, though agents can work around it by archiving or overwriting files.
Maintenance
Related MCP Connectors
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
A MCP server built for developers enabling Git based project management with project and personal…
One MCP server for all your MCP servers: code mode, per-tool permissions, approvals and audit.
Remote MCP service for evidence-backed work memory and continuity.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP server for MongoDB-powered memory bank management with multi-project isolation, version control, and real-time statistics.2MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to maintain and query project memory independently of the underlying model, with versioned, auditable storage and multi-stage retrieval through a single MCP gateway.MIT
- AlicenseCqualityBmaintenanceProvides a deterministic MCP server that orchestrates projects across web, backend, games, AI, payments, fiscal, and infrastructure domains, with safe file writing, audit logging, and framework-aware context routing.88MIT
- AlicenseNot gradedqualityCmaintenanceEnables multiple MCP-compatible AI clients to share persistent, versioned project knowledge across sessions with conflict-safe updates, provenance, hybrid retrieval, stale-memory handling, and context-budgeted recall.MIT
Appeared in Searches
- MCP server for remembering key project decisions, tracking framework and settings
- Information about memory banks
- A tool for managing or utilizing cache
- A memory-efficient MCP server with vectorized memory bank synchronization
- File system requirements: mounted directory, persistent state, and full R/W access