Wangdefa.Memory.Mcp 1.0.0

dotnet add package Wangdefa.Memory.Mcp --version 1.0.0
                    
NuGet\Install-Package Wangdefa.Memory.Mcp -Version 1.0.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="Wangdefa.Memory.Mcp" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Wangdefa.Memory.Mcp" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Wangdefa.Memory.Mcp" />
                    
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 Wangdefa.Memory.Mcp --version 1.0.0
                    
#r "nuget: Wangdefa.Memory.Mcp, 1.0.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 Wangdefa.Memory.Mcp@1.0.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=Wangdefa.Memory.Mcp&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Wangdefa.Memory.Mcp&version=1.0.0
                    
Install as a Cake Tool

Wangdefa.Memory MCP Server

中文 | English

Local-first long-term memory for agents, exposed over MCP (stdio).

This package runs the Wangdefa.Memory engine as a local MCP server, so any MCP-capable client can give its agent persistent memory: what you discussed, what you decided, and what you prefer — all stored on your own machine with no cloud dependency.

The server speaks stdio and is started by your client on demand. Installing this package pulls the Wangdefa.Memory engine automatically; there is nothing else to install.

Configure your client

Add a server entry pointing at this package. Most clients accept the same shape:

{
  "mcpServers": {
    "wangdefa-memory": {
      "command": "dnx",
      "args": ["Wangdefa.Memory.Mcp"]
    }
  }
}

Some clients require the full command instead:

{
  "mcpServers": {
    "wangdefa-memory": {
      "command": "dotnet",
      "args": ["dnx", "Wangdefa.Memory.Mcp"]
    }
  }
}

Requires the .NET 10 runtime. The first run restores the packages, so it may take a moment; later starts are immediate.

Tools

Once connected, the server exposes two tools:

Tool Purpose
process_message Recall relevant past memories for the current user input. Call it before answering.
save_memory Persist the completed turn. Call it once the reply is finished.

They are meant to be driven by the client automatically — recall before the model answers, save when the turn ends — but you can also call them directly.

Where your data lives

All memory stays on your machine, under the MCP server's own working directory:

memory/
├── cognitive/     memory cards
├── experience/    conversations, events and overviews
├── thinking/      routing indexes
└── *.db           tag pool, scene library, main records

Nothing is sent anywhere unless you configure a remote model provider. The storage format is plain SQLite and JSON, so it is readable and portable.

License

Apache-2.0

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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 48 9/23/2026