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

garnet-mcp

作者:tarazou9バージョン 0.1.2i★ –iパソコンで動く
レジストリ名io.github.tarazou9/garnet-mcp

インストール

概要

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

RAG memory for LLM agents over Garnet Vector Sets: store text as embeddings, recall by meaning.

PopNx MCPの3つの柱

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

できること

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

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

インストール

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

インストールの前に

  • 基本チェック:1項目中1項目に合格
  • あなたのパソコンで、あなたのユーザーと同じ権限(ファイル、ネットワーク、アプリ)で動きます。
  • 自分で入力するもの: Garnet__Host, Garnet__Port, Embeddings__Provider, Embeddings__Endpoint, Embeddings__DeploymentName, Embeddings__Dimensions

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

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

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

{
  "mcpServers": {
    "garnet": {
      "command": "dnx",
      "args": [
        "GarnetMcp.Server",
        "--yes"
      ],
      "env": {
        "Garnet__Host": "your-value",
        "Garnet__Port": "your-value",
        "Embeddings__Provider": "your-value",
        "Embeddings__Endpoint": "your-value",
        "Embeddings__DeploymentName": "your-value",
        "Embeddings__Dimensions": "your-value"
      }
    }
  }
}

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

claude mcp add garnet --env Garnet__Host=your-value --env Garnet__Port=your-value --env Embeddings__Provider=your-value --env Embeddings__Endpoint=your-value --env Embeddings__DeploymentName=your-value --env Embeddings__Dimensions=your-value -- dnx GarnetMcp.Server --yes

動かす前に、空欄の値を入力してください。

Cursorで開く

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

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

{
  "mcpServers": {
    "garnet": {
      "command": "dnx",
      "args": [
        "GarnetMcp.Server",
        "--yes"
      ],
      "env": {
        "Garnet__Host": "your-value",
        "Garnet__Port": "your-value",
        "Embeddings__Provider": "your-value",
        "Embeddings__Endpoint": "your-value",
        "Embeddings__DeploymentName": "your-value",
        "Embeddings__Dimensions": "your-value"
      }
    }
  }
}

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

VS Codeで開く

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

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

{
  "servers": {
    "garnet": {
      "type": "stdio",
      "command": "dnx",
      "args": [
        "GarnetMcp.Server",
        "--yes"
      ],
      "env": {
        "Garnet__Host": "your-value",
        "Garnet__Port": "your-value",
        "Embeddings__Provider": "your-value",
        "Embeddings__Endpoint": "your-value",
        "Embeddings__DeploymentName": "your-value",
        "Embeddings__Dimensions": "your-value"
      }
    }
  }
}

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

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

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

自分で入力する値

  • Garnet__Host env
  • Garnet__Port env
  • Embeddings__Provider env
  • Embeddings__Endpoint env
  • Embeddings__DeploymentName env
  • Embeddings__Dimensions env

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

できること

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

基本チェックi

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

  • ✓ 合格

    作者とリポジトリが一致

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

  • … 未チェック

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

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

  • … 未チェック

    ライセンスがある

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

  • – 対象外

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

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

  • – 対象外

    OAuthでサインイン

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

  • … 未チェック

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

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

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

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

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

よくある質問

garnet-mcpは安全ですか?

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

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

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

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

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

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

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

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

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

代わりに使えるものは?

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

代わりの候補

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

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

Context7

作者:upstash

Up-to-date docs for AI agents

パソコンでもクラウドでも★ 64,224MIT昨日更新
インストール

Codebase Memory

作者:DeusData

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

パソコンで動く★ 48,148MIT21 日前更新
インストール

Exa

作者:exa-labs

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

クラウドで動く★ 5,213MIT2 か月前更新
インストール

作者のREADME

READMEを開く

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

Garnet Vector Memory MCP Server

An MCP (Model Context Protocol) server that gives LLM agents a retrieval-augmented (RAG) memory backed by [Garnet](https://github.com/microsoft/garnet) Vector Sets. Agents store text as embeddings and later retrieve the most semantically relevant snippets by meaning to ground their responses — persisting across sessions, not just within a single conversation. This is application-layer semantic recall (RAG): it augments the model's prompt with retrieved context, and is distinct from inference-layer KV-cache reuse (e.g. LMCache). It runs against a local or self-hosted OSS Garnet (or any Redis-compatible endpoint that supports Vector Sets), with bring-your-own embeddings.

Tools

The server exposes five tools over the MCP stdio transport (HTTP is also supported):

ToolDescription
store_memoryPersist a fact or piece of text to long-term memory. Returns a memory id.
recall_memorySemantic search over stored memories; returns the closest matches with scores.
forget_memoryDelete a stored memory by its id.
list_indexesList the vector-set memory indexes that currently exist.
index_infoShow metadata (metric, dimensions, size) for a memory index key.

Prerequisites

  • [.NET 10 SDK](https://dotnet.microsoft.com/download/dotnet) — required so clients can launch the server with the dnx command (ships with the .NET 10 SDK). The package itself targets net9.0.
  • A Garnet server started with Vector Sets enabled. Vector Sets are currently a Garnet preview feature and must be turned on explicitly with --enable-vector-set-preview. Any Redis-compatible endpoint exposing the V* vector commands also works.
  • Embeddings (optional but recommended). Set Embeddings__Provider=AzureOpenAI and point it at an Azure OpenAI embedding deployment (keyless auth via DefaultAzureCredential / az login). Without it, the server falls back to a deterministic Fake provider that requires no external calls — useful for local demos and tests, but not for meaningful semantic recall.

Install (from NuGet)

The server is published as a .NET tool package that MCP clients run via dnx. Add it to your client's MCP config, e.g. .vscode/mcp.json for VS Code / GitHub Copilot:

{

"servers": { "garnet-mcp": { "type": "stdio", "command": "dnx", "args": ["GarnetMcp.Server@0.1.0", "--yes"], "env": { "GarnetHost": "127.0.0.1", "GarnetPort": "6379", "EmbeddingsProvider": "AzureOpenAI", "EmbeddingsEndpoint": "https://YOUR-RESOURCE.openai.azure.com/", "EmbeddingsDeploymentName": "text-embedding-3-small", "EmbeddingsDimensions": "1536" } } } }

To run the fully offline demo, drop the Embeddings__* entries (or set Embeddings__Provider=Fake).

Recommended agent instructions

The server already sends usage guidance to any MCP client at connect time (via the server's ServerInstructions), so most agents will use the tools appropriately on their own. If you want to make an agent use the memory proactively, add something like the following to that agent's custom-instructions (e.g. .github/copilot-instructions.md in *your* project, a Claude/Cursor rules file, etc.):

Before answering anything about the user — their preferences, facts, decisions, or past statements — FIRST call recall_memory, even if the answer seems to be in the current chat (memories persist across sessions). Whenever the user states a durable fact about themselves or asks you to remember something, call store_memory to persist it, then briefly confirm what you saved.

Configuration

All settings are read from configuration / environment variables. In environment-variable form, use __ (double underscore) as the section separator.

SettingEnv varDefaultNotes
Garnet hostGarnet__Host127.0.0.1Blank is treated as the default.
Garnet portGarnet__Port6379
Key prefixGarnet__KeyPrefixmemPrefix for memory index keys.
Log Redis commandsGarnet__LogRedisCommandsfalseSet true to log the equivalent redis-cli command at Debug (troubleshooting).
Log levelLogging__LogLevel__DefaultInformationDefault is a quiet startup line + warnings/errors. Set Debug for per-call tool tracing. Logs go to stderr on the stdio transport.
Embedding providerEmbeddings__ProviderFakeAzureOpenAI or Fake.
Azure OpenAI endpointEmbeddings__Endpoint—Required when provider is AzureOpenAI.
Deployment nameEmbeddings__DeploymentNametext-embedding-3-small
DimensionsEmbeddings__Dimensions1536 (AOAI) / 8 (Fake)Must match the embedding model.
API keyEmbeddings__ApiKey—Optional; prefer keyless DefaultAzureCredential.
Memory ownerMemory__UserdefaultPins the memory owner so store and recall always agree.
TransportTransportStdioStdio (local) or Http (hosted).

Embedding providers

Two providers ship out of the box:

  • `AzureOpenAI` — real embeddings; the only production-quality option. Keyless via DefaultAzureCredential (or an API key).
  • `Fake` — deterministic, offline, hash-seeded vectors. Useful for local runs and tests, but not semantically meaningful — don't use it for real recall.

Embedding generation sits behind the IEmbeddingProvider abstraction (EmbedAsync / EmbedBatchAsync, plus ModelName and Dimensions). The rest of the system — GarnetMemoryStore, the vector client, and the tools — depends solely on this interface, so additional backends (for example OpenAI, a local model served via Ollama, or Hugging Face) can be introduced without touching that code. To add one, implement IEmbeddingProvider and register it in Program.cs (ConfigureDomain) under the corresponding Embeddings__Provider value.

Memory ownership (single-tenant by design)

The memory owner is pinned by configuration (Memory__User, default default) for the lifetime of the server process — the model cannot choose it per call. Both store_memory and recall_memory are scoped to that owner (recall filters on the stored user attribute), so store and recall always agree across chats and sessions.

This suits the shipped model: a personal, single-owner server launched over stdio by your own client — the process *is* the user. Letting the model supply the user per call is deliberately avoided because it would let store and recall drift apart (models are inconsistent) and would let one caller read or overwrite another owner's memories.

For a hosted, multi-tenant deployment (the Http transport serving many people), the correct source of the owner is the authenticated caller's identity (from the auth token/headers) — never a value chosen by the model. That is a deliberate future enhancement, not something to wire through the tool arguments.

Build and run from source

# Build + test the solution (integration tests self-skip when Garnet/AOAI are unreachable).

dotnet test src/GarnetMcp.slnx

Run the server directly over stdio.

dotnet run --project src/GarnetMcp.Server

Optional: interactive console to try store/recall/forget by hand (dev only; not part of the package).

dotnet run --project src/GarnetMcp.Demo

Start a local Garnet with Vector Sets enabled before exercising the memory tools:

garnet --enable-vector-set-preview true

Caveats

  • Preview MCP SDK. This project pins ModelContextProtocol 2.0.0-preview.2. The SDK's API surface may change between preview releases.
  • Garnet Vector Sets are preview. Start Garnet with --enable-vector-set-preview, or memory tools return a clear "Vector Sets are not enabled" error.
  • `list_indexes` on a multi-node cluster. Index enumeration uses SCAN on the connected node, so against a self-hosted multi-node Garnet cluster it returns only that node's keys (partial results). Single-node / self-hosted setups are unaffected, and store_memory / recall_memory / forget_memory are unaffected either way (they operate on specific keys).

License

MIT © Tara Zou

PopNxに聞く