プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。レビューとアカウント機能は今後のステップで始まります。
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

Context Mem

作者:JubaKitiashviliバージョン 3.2.1i★ –iパソコンで動く
レジストリ名io.github.JubaKitiashvili/context-mem

インストール

概要

作者による説明(英語の原文)

Persistent memory for AI agents — 98%+ retrieval recall, 99% token savings, 44 tools

PopNx MCPの3つの柱

この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。

できること

このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。

  • 接続方法: パソコンで動く
  • トランスポート: stdio
  • カテゴリ: 検索・AIの記憶

インストール

使っているAIアプリを選んで、設定をコピーしてください。

インストールの前に

  • 基本チェック:1項目中1項目に合格
  • あなたのパソコンで、あなたのユーザーと同じ権限(ファイル、ネットワーク、アプリ)で動きます。
  • レジストリには、入力が必要なキーは載っていません。

必要なもの

  • npmNode.jsのインストール(npxコマンドに必要)

どのアプリを使っていますか?

上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。

Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます

{
  "mcpServers": {
    "context-mem": {
      "command": "npx",
      "args": [
        "-y",
        "context-mem"
      ]
    }
  }
}

ターミナルでこれを実行します

claude mcp add context-mem -- npx -y context-mem

Cursorで開く

または、設定を自分でコピーする

プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます

{
  "mcpServers": {
    "context-mem": {
      "command": "npx",
      "args": [
        "-y",
        "context-mem"
      ]
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

VS Codeで開く

または、設定を自分でコピーする

プロジェクトの .vscode/mcp.json に貼り付けます

{
  "servers": {
    "context-mem": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "context-mem"
      ]
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。

選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月9日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント JubaKitiashvili で確認済みです

  • … 未チェック

    今もメンテナンスされている

    このリポジトリはまだGitHubから読み取っていません

  • … 未チェック

    ライセンスがある

    このリポジトリはまだGitHubから読み取っていません

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

検索・AIの記憶のほかのサーバーとの比較i

  • このカテゴリのほかの5754件のうち0%よりスターが多い
  • このカテゴリのほかの5754件のうち10%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの5754件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

Context Memは安全ですか?

当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は–、最新バージョン(3.2.1)がレジストリに届いたのは7 か月前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。

代わりに使えるものは?

同じカテゴリには:Context7, Codebase Memory, Exa

代わりの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

Context7

Up-to-date docs for AI agents

作者:upstash広く使われている↓ 97.3万/週★ 6.4万3 日前更新

パソコンでもクラウドでも

Codebase Memory

Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.

作者:DeusData広く使われている↓ 1.8万/週★ 4.8万23 日前更新

パソコンで動く

Exa

Connect AI agents to Exa for web search, content fetching, and multi-step research.

作者:exa-labs広く使われている★ 52132 か月前更新

クラウドで動く✓ exa.ai

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

Context Mem

Memory + context infrastructure for AI agents. Remembers everything. Compresses everything. Fully local.

-gold)


The Problem

Two problems with today's AI tooling that no one has solved together in a single package.

Your AI forgets. Every new session starts from zero. The architecture decisions you settled on last Thursday, the bug you spent four hours tracing to a misconfigured environment variable, the preferences you stated three times — none of it carries forward. You spend the first ten minutes of every session re-explaining context that already existed. Multiply this by every developer on your team, every project, every day.

Your context explodes. Long coding sessions blow past the context window. A typical session with 50 tool outputs accumulates 365 KB of raw text — stack traces, test output, file reads, shell commands. Every token costs money or slows the model. Naive truncation drops the exact evidence the model needs. Keeping everything makes responses slower and inference cost climb fast.

These two problems compound each other. The solution to forgetting (keep everything) is the opposite of the solution to context explosion (discard everything). The result is a false tradeoff most tools force on you: either your AI forgets everything, or your costs balloon. context-mem solves both simultaneously by building an indexed, compressed, retrievable memory store rather than dumping raw history into the context window.


The Solution — one tool, two pillars

Pillar 1: Memory (LLM Wiki)

Every tool call is automatically ingested, summarized, and written into a navigable markdown vault — a living wiki your AI maintains about your project. Entities get their own pages with backlinks. Topics get synthesis pages. Sessions become browseable source documents. Decisions accumulate into a reconstructible trail.

The vault lives at .context-mem/vault/ and syncs continuously from the underlying SQLite store. Read it in Obsidian, grep it from the terminal, or query it through 45+ MCP tools using hybrid BM25 + vector + optional LLM judge search. The raw SQLite store is the authoritative record; the markdown vault is the derived, human-readable layer.

This is a reference implementation of Andrej Karpathy's LLM Wiki pattern — three layers (raw sources / wiki / schema), with automatic ingest from tool calls that no other system provides.

Pillar 2: Compression (14 summarizers)

Every observation passes through a content-aware summarizer before storage. A stack trace is not treated the same way as a JSON config file. Shell output from a build is compressed differently from TypeScript compiler errors. The system applies the right compression for the content type.

The result: a full coding session with 50 tool outputs goes from 365 KB to 3.2 KB — 99.1% token savings, verified. Compression is adaptive: recent high-importance observations stay verbatim; older low-importance ones compress progressively. Pinned entries never compress regardless of age.


One Command

npm i context-mem && npx context-mem init

init auto-detects your editor and writes the right config files:

EditorConfig written
Claude Code.mcp.json + 8 hooks + CLAUDE.md
Cursor.cursor/mcp.json + .cursor/rules/context-mem.mdc
Windsurf.windsurf/mcp.json + .windsurf/rules/context-mem.md
VS Code / Copilot.vscode/mcp.json + .github/copilot-instructions.md
Cline.cline/mcp_settings.json + .clinerules/context-mem.md
Roo Code.roo-code/mcp_settings.json + .roo/rules/context-mem.md
Aider.aider.conf.yml (MCP block)
Continue.continue/config.json (MCP block)
JetBrains AI.idea/mcp.json

No API keys. No cloud account. No data leaves your machine.


Dual-pillar in 60 seconds

[ placeholder: GIF or video — Claude Code session with split view showing Obsidian graph updating in real time alongside the context-mem dashboard token savings chart ]


Architecture (reference implementation of Karpathy's LLM Wiki pattern)

                    ┌─────────────────────────────────────────┐

│ Raw Sources (immutable) │ │ tool calls · observations · file reads │ └──────────────────┬──────────────────────┘ │ ▼ ┌─────────────────────────────────────────┐ │ Observation Pipeline │ │ │ │ PrivacyEngine (9 detectors) │ │ → 14 content-aware summarizers │ │ → entity extraction (100+ aliases) │ │ → topic detection │ │ → importance scoring (0.0–1.0) │ │ → adaptive compression tier │ └────────────────┬────────────────────────┘ │ ┌─────────────────┴───────────────────┐ │ │ ▼ ▼ ┌──────────────────────────┐ ┌─────────────────────────────┐ │ SQLite (primary) │ │ Markdown Vault (derived) │ │ │ │ │ │ observations │──────▶│ .context-mem/vault/ │ │ entities + graph │ sync │ index.md │ │ knowledge │ │ log.md │ │ events │ │ sources/ .md │ │ FTS5 index │ │ entities/ .md │ │ vector embeddings │ │ topics/ .md │ └──────────────────────────┘ │ knowledge/ .md │ │ └─────────────────────────────┘ │ ▼ ┌──────────────────────────────────────────────────────────────┐ │ Hybrid Retrieval │ │ │ │ BM25 (8 strategies + synonym expansion) │ │ + Vector (nomic-embed-text-v1.5, 768-dim) │ │ + Trigram + Levenshtein │ │ → Fusion (intent-adaptive weights, IDF reranker) │ │ → Optional LLM judge (Haiku, 50/50 blend, 100% R@5) │ └──────────────────────────────────────────────────────────────┘

Three layers (per Karpathy):

  • Raw sources — your tool call outputs, file reads, shell commands, observations. Written once, never modified. The permanent record.
  • The wiki — LLM-maintained markdown vault (.context-mem/vault/). Auto-synced from SQLite. Human-readable, Obsidian-compatible, grep-friendly. Entity pages, topic pages, session pages, knowledge pages, index, event log.
  • Schema — docs/llm-wiki-schema.md governs page structure, linking conventions, agent workflow recipes, and interop contract. Public spec — other tools can emit conforming wikis.

The distinction from most memory systems: context-mem is not replacing SQLite with markdown. SQLite is authoritative — it is where observations are stored, searched, and indexed. The vault is the browseable, linkable, diffable surface on top of it — the layer a human or LLM can navigate without a database client. If you delete the vault directory, you lose nothing that matters. If you edit a vault page manually, those edits are preserved and not overwritten on the next sync.

This is the Karpathy three-layer model applied to a running AI development environment: immutable inputs, a maintained synthesis layer, and a public schema that governs the synthesis. The vault can be used independently of the MCP tools — it is just a directory of markdown files. Open it in any editor. Put it in git. Diff it across commits. Use it as long-form context by copy-pasting pages into a new conversation. The MCP tools are the automated path; the markdown vault is the portable, durable, human-readable path.


Retrieval benchmarks (honest methodology)

All scores are session-level retrieval recall: did any correct evidence session appear in the top-k results? This is different from end-to-end QA accuracy (retrieve + generate + judge), which is harder and lower for every system. Both measurements are published here.

Pure local (zero API calls, fully free)
BenchmarkRetrieval RecallE2E QA AccuracyQuestionsSessions
LongMemEval97.8% R@5_published post-v3.4_500~53/conv
LoCoMo98.1% R@10_published post-v3.4_1,97719-35/conv
MemBench98.0% R@5—500—
ConvoMem97.7% R@10—250—
With optional LLM reranking (~$1 per 500 queries)
BenchmarkRetrieval Recall
LongMemEval100.0% R@5 (500/500)

The LLM judge (Claude Haiku) scores the top-N BM25+vector candidates 0–10 and blends 50/50 with the retrieval score. Activates when ai_curation.enabled = true. Adds ~$0.002 per query at Haiku pricing.

Methodology notes:

  • A "hit" is scored if any correct evidence session appears in top-k. Not end-to-end QA.
  • LoCoMo benchmark appends dataset-provided metadata (session_summary, observation, event_summary) to session documents — the production system applies equivalent enrichment via summarizers and entity extraction.
  • Synonym expansions: core query-builder includes general-vocabulary synonyms (movie → film, sibling → brother). Results without any synonym expansion are ~1-2% lower.
  • All benchmark code is open and runnable: npm run bench. See benchmarks/.

_Full methodology: docs/benchmarks/methodology.md (published with v3.4)._


Compression benchmarks (verified)

ScenarioRawCompressedSavings
Typical coding session (50 tool outputs)365 KB3.2 KB99.1%

Per-summarizer breakdown:

SummarizerCompression ratio
Log output97%
Errors95%
Shell / CLI~95%
Code92%
JSON89%
TS compiler errors~88%
Tests~85%
Build output~94%
Git logs~90%
HTML~92%
Markdown~75%
CSV~80%
Network responses~88%
Binary (hex dumps)~98%

Compression is lossless at the semantic level for high-importance observations (DECISION, MILESTONE, PROBLEM flags) — those stay verbatim regardless of age. Compression applies to routine tool output.


Core features

Memory
  • LLM Wiki substrate — markdown vault at .context-mem/vault/, auto-synced from SQLite. Entity pages, topic pages, session source pages, knowledge pages, index.md, log.md. Obsidian-compatible, grep-friendly.
  • **14 content

冒頭だけを表示しています。続きはリポジトリで読めます

PopNxに聞く