JM

j3k0/mcp-brain-tools

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

20 stars 8 forks 品質 60 トレンド 0

弾性検索による知識グラフを使用した強力なMCPメモリ

概要

内蔵の鮮度追跡とスペースの繰り返しでAIエージェントの持続的なメモリを与えるMCPサーバー。 Elasticsearch のバックアップ シンプルで重要なメモリストアとは異なり、mcp-brain-tools は、それぞれの知識の古い部分を追跡し、レビューが必要なものをフラグ付けし、エージェントが情報を検証し、新しいインスピレーションを得られるようにします。 - — 各エンティティティティティティティティティティティティティティティは、検証を2倍にするレビューの間隔を持っています(365日かかる)。 機密ラベル(fresh/normal/aging/stale/archival)は、信頼するエージェントに伝えます。 - — クエリは、最初に新鮮な結果を返します。必要に応じて、古いデータを含むように自動的に広まっています。 -———各観察は独自の鮮度ライフサイクルを取得します。そのため、「ビルドは壊れています」(1日レビュー)と「2015年に設立されました」(365日レビュー)は独立しています。 - プロジェクト、チーム、ドメインによる知識を分離します。 - - - - - オプションの Groq 統合は、関連する検索結果を取得します.

概要(AI 翻訳)

内蔵の鮮度追跡とスペースの繰り返しでAIエージェントの持続的なメモリを与えるMCPサーバー。 Elasticsearch のバックアップ

シンプルで重要なメモリストアとは異なり、mcp-brain-tools は、それぞれの知識の古い部分を追跡し、レビューが必要なものをフラグ付けし、エージェントが情報を検証し、新しいインスピレーションを得られるようにします。

##特徴

  • スペースド繰り返しの鮮度 — それぞれの実体は、検証を2倍にするレビュー間隔を持っています(365日かかる)。 機密ラベル(fresh/normal/aging/stale/archival)は、信頼するエージェントに伝えます。
  • 積極的な検索 — クエリは、最初に新鮮な結果を返す、必要に応じてのみ古いデータを含むように自動的に幅が広い。
  • 企業としての観察 — 各観察は、独自の鮮度ライフサイクルを取得しているため、「ビルドは壊れています」(1日レビュー)および「2015年に設立」(365日レビュー)は独立しています。 -メモゾーン - プロジェクト、チーム、ドメインによる知識を分離します。 -AI搭載のフィルタリング — 関連する検索結果の検索オプション
  • DRY by design — ツールの説明は、コード、git、またはdocsに既にあるものを格納しないガイドエージェントを指しています。

セットアップ

前提条件

  • ノード.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

mcp-brain-tools

An MCP server that gives AI agents persistent memory with built-in freshness tracking and spaced repetition. Backed by Elasticsearch.

Unlike simple key-value memory stores, mcp-brain-tools tracks how old each piece of knowledge is, flags what needs review, and lets agents verify information to keep it fresh — inspired by how spaced repetition helps humans retain knowledge.

Features

  • Spaced repetition freshness — each entity has a review interval that doubles on verification (capped at 365 days). Confidence labels (fresh/normal/aging/stale/archival) tell agents what to trust.
  • Progressive search — queries return fresh results first, automatically widening to include older data only when needed.
  • Observations as entities — each observation gets its own freshness lifecycle, so “build is broken” (1-day review) and “founded in 2015” (365-day review) age independently.
  • Memory zones — isolate knowledge by project, team, or domain.
  • AI-powered filtering — optional Groq integration scores search results by relevance.
  • DRY by design — tool descriptions guide agents not to store what’s already in code, git, or docs.

Setup

Prerequisites

  • Node.js >= 18
  • Docker (for Elasticsearch) or a remote Elasticsearch instance

Install and build

npm install
npm run build

Start Elasticsearch

npm run es:start

Or point to your own instance via ES_NODE environment variable.

Configure your MCP client

Add to your Claude Code, Claude Desktop, or other MCP client config:

{
  "mcpServers": {
    "memory": {
      "command": "node",
      "args": ["/path/to/mcp-brain-tools/dist/index.js"],
      "env": {
        "ES_NODE": "http://localhost:9200",
        "GROQ_API_KEY": "your-key-here"
      }
    }
  }
}

GROQ_API_KEY is optional — enables AI-powered search filtering and zone relevance scoring.

Install the auto-memory hook (Claude Code only)

The memory hook runs on every user message and automatically injects relevant context — no agent cooperation needed.

Add to ~/.claude/settings.json:

{
  "hooks": {
    "UserPromptSubmit": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "node /path/to/mcp-brain-tools/dist/memory-hook.js"
          }
        ]
      }
    ]
  }
}

The hook uses the same ES_NODE, AI_API_KEY/GROQ_API_KEY, AI_API_BASE, and AI_MODEL env vars (set them in the env block of your settings, or export them in your shell profile).

AI_API_BASE defaults to Groq’s endpoint but accepts any OpenAI-compatible API URL.

How it works

Entities and observations

Entities represent anything worth remembering — people, projects, decisions, facts. Each entity has:

  • A name and type
  • Spaced repetition fields: verifiedAt, reviewInterval, nextReviewAt
  • A confidence label computed from freshness: 1 - (daysSinceVerified / reviewInterval)
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "memory": { "command": "node", "args": ["/path/to/mcp-brain-tools/dist/index.js"], "env": { "ES_NODE": "http://localhost:9200", "GROQ_API_KEY": "your-key-here" } } } }