MemoryIndexer.Sdk 0.40.0

dotnet add package MemoryIndexer.Sdk --version 0.40.0
                    
NuGet\Install-Package MemoryIndexer.Sdk -Version 0.40.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MemoryIndexer.Sdk" Version="0.40.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MemoryIndexer.Sdk" Version="0.40.0" />
                    
Directory.Packages.props
<PackageReference Include="MemoryIndexer.Sdk" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MemoryIndexer.Sdk --version 0.40.0
                    
#r "nuget: MemoryIndexer.Sdk, 0.40.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MemoryIndexer.Sdk@0.40.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MemoryIndexer.Sdk&version=0.40.0
                    
Install as a Cake Addin
#tool nuget:?package=MemoryIndexer.Sdk&version=0.40.0
                    
Install as a Cake Tool

Memory Indexer SDK

Long-term memory management for LLM applications via MCP (Model Context Protocol).

Features

  • Semantic Search: Vector-based similarity search with hybrid BM25 + embedding retrieval
  • Storage Backends: InMemory, SQLite-vec (extensible via IMemoryStore)
  • Embedding Providers: Inject your own via IEmbeddingService (OpenAI, Azure, local ONNX, etc.)
  • Multi-Tenant Support: Complete tenant isolation with CTE-based pre-filtering
  • Security: PII detection and prompt injection defense
  • Observability: Built-in OpenTelemetry tracing and metrics
  • Evaluation: LoCoMo benchmark evaluation for memory retrieval quality
  • MCP Integration: Ready-to-use MCP tools for Claude and other LLM clients

Quick Start

using MemoryIndexer.Interfaces;       // IEmbeddingService
using MemoryIndexer.Sdk.Extensions;
using MemoryIndexer.Sdk.Observability; // AddMemoryIndexerOtlpObservability
using Microsoft.Extensions.Hosting;

var builder = Host.CreateApplicationBuilder(args);

// Register your embedding service BEFORE AddMemoryIndexer()
builder.Services.AddSingleton<IEmbeddingService>(myEmbeddingService);

// Add Memory Indexer with SQLite-vec storage (sized from your service's Dimensions)
builder.Services.AddMemoryIndexer().WithSqliteVec();

// Optional: Add OpenTelemetry observability
builder.Services.AddMemoryIndexerOtlpObservability("http://localhost:4317");

// Add MCP server
builder.Services.AddMcpServer()
    .WithMemoryTools();

var host = builder.Build();
await host.RunAsync();

Configuration

{
  "MemoryIndexer": {
    "Storage": {
      "ConnectionString": "memories.db"
    },
    "Embedding": {
      "CacheEnabled": true
    },
    "Search": {
      "DefaultLimit": 10,
      "MinimumScore": 0.5
    }
  }
}

Note: Embedding service must be registered externally via DI before calling AddMemoryIndexer().

MCP Tools

The SDK provides these MCP tools:

  • memory_store: Store new memories with semantic embeddings
  • memory_recall: Retrieve relevant memories using semantic search
  • memory_get: Get a specific memory by ID
  • memory_list: List memories with filtering
  • memory_update: Update memory content or importance
  • memory_delete: Delete memories (soft or hard delete)
  • memory_kg_extract: Extract knowledge graph entities
  • memory_kg_query: Query the knowledge graph
  • memory_context_optimize: Optimize context window usage
  • memory_pii_detect: Detect PII in content
  • memory_sanitize: Sanitize content for security

Requirements

  • .NET 10.0 or later
  • For local embeddings: ONNX Runtime compatible system

License

MIT License

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on MemoryIndexer.Sdk:

Package Downloads
IronHive.Cli.Core

IronHive CLI Core - Agent loop, tools, session management, and provider integrations for building AI-powered CLI tools

IronHive.Host.Core

IronHive Host Core - Agent loop, tools, session management, and provider integrations for building reusable AI agent hosts (CLI, server, embedded)

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.40.0 236 10/17/2026
0.39.0 111 10/17/2026
0.38.0 110 10/16/2026
0.37.1 112 10/16/2026
0.37.0 107 10/16/2026
0.36.0 116 10/16/2026
0.35.0 124 10/15/2026
0.34.0 121 10/13/2026
0.33.0 126 10/12/2026
0.32.0 113 10/11/2026
0.31.0 122 10/7/2026
0.30.0 114 10/7/2026
0.29.0 106 10/7/2026
0.28.0 113 10/7/2026
0.27.0 120 10/6/2026
0.26.1 113 10/5/2026
0.26.0 106 10/5/2026
0.25.0 167 10/5/2026
0.24.0 119 10/5/2026
0.23.2 148 10/4/2026
Loading failed