Truememory

v1.0.0Knowledge & Memorystable

A living memory system that ingests long-horizon data to infer insights, enabling more decisive action, all while running on a single SQLite file locally.

agent-memoryaiai-agentsai-memoryanthropic
Share:
84
Stars
0
Downloads
0
Weekly
0/5

What is Truememory?

Truememory is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to living memory system that ingests long-horizon data to infer insights, enabling more decisive action, all while running on a single sqlite file locally.

A living memory system that ingests long-horizon data to infer insights, enabling more decisive action, all while running on a single SQLite file locally.

This server falls under the Knowledge & Memory category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • A living memory system that ingests long-horizon data to inf

Use Cases

Long-horizon memory inference
SQLite-based local memory storage
Autonomous insight generation
LicenseAGPL-3.0
Languagepython
Versionv1.0.0
UpdatedMay 22, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx truememory

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Truememory

TrueMemory is a local-first, long-term memory system for AI agents that stores and retrieves memories using a single SQLite file on your machine. It uses a 6-layer search pipeline with reranking to surface the most relevant past memories in under 200ms, and supports multi-round agentic deep retrieval for complex queries. Developers use it with Claude Code, Cursor, and other AI coding agents to give those agents persistent context about their preferences, project history, and instructions across sessions — without sending any memory content to external servers.

Prerequisites

  • Python 3.10 or later
  • pip to install the truememory package
  • An MCP-compatible client such as Claude Desktop, Claude Code, or Cursor
  • Optionally, the TrueMemory install script for a managed binary installation
1

Install TrueMemory

Install TrueMemory using the official install script (recommended for CLI tools like Claude Code) or via pip for Python API use.

curl -LsSf https://raw.githubusercontent.com/buildingjoshbetter/TrueMemory/main/install.sh | sh
2

Or install as a Python package

If you prefer pip or need the Python API for direct integration, install from PyPI.

pip install truememory
3

Configure your MCP client

Add TrueMemory as an MCP server in your client's config file. The server stores all memories in ~/.truememory/memories.db — no additional environment variables are required for basic use.

{
  "mcpServers": {
    "truememory": {
      "command": "truememory",
      "args": ["serve"]
    }
  }
}
4

Restart your MCP client

Quit and reopen Claude Desktop or reload Claude Code. TrueMemory exposes 11 MCP tools for adding, searching, updating, and deleting memories.

5

Add your first directive memory

Directive memories are automatically loaded as instructions at the start of every session. Use them to persist coding preferences, commit message formats, or workflow rules.

Truememory Examples

Client configuration

Claude Desktop configuration for TrueMemory running as a local MCP server.

{
  "mcpServers": {
    "truememory": {
      "command": "truememory",
      "args": ["serve"],
      "env": {
        "TRUEMEMORY_TELEMETRY": "off"
      }
    }
  }
}

Prompts to try

Example prompts demonstrating memory storage, retrieval, and directive-based instructions.

- "Remember that I always use dark mode and prefer TypeScript with strict mode enabled."
- "What do you know about my coding preferences?"
- "Save this as a directive: always run the test suite before committing."
- "Search your memory for anything related to the authentication service we discussed."
- "Show me all memories you have stored for this project."
- "Forget the old database schema notes — the schema has changed."

Troubleshooting Truememory

truememory command not found after running the install script

The install script adds the binary to ~/.local/bin. Add this to your PATH with 'export PATH=$HOME/.local/bin:$PATH' in your ~/.zshrc or ~/.bashrc, then restart your terminal before launching your MCP client.

Memories are not persisting between sessions

Verify that the SQLite database at ~/.truememory/memories.db is being written to by checking its file size after adding memories. If it remains empty, ensure the MCP server process has write permission to the ~/.truememory directory.

Search returns irrelevant or no results

TrueMemory's search pipeline uses semantic similarity. Phrase your search queries as natural questions rather than keywords (e.g., 'What are my TypeScript preferences?' rather than 'typescript'). Use search_deep for multi-round retrieval on complex topics.

Frequently Asked Questions about Truememory

What is Truememory?

Truememory is a Model Context Protocol (MCP) server that living memory system that ingests long-horizon data to infer insights, enabling more decisive action, all while running on a single sqlite file locally. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Truememory?

Follow the installation instructions on the Truememory GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Truememory?

Truememory works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Truememory free to use?

Yes, Truememory is open source and available under the AGPL-3.0 license. You can use it freely in both personal and commercial projects.

Browse More Knowledge & Memory MCP Servers

Explore all knowledge & memory servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

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

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Truememory?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides