# ai-memory [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/alphaonedev/ai-memory-mcp  
**GitHub Stars:** 60  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/ai-memory

## Description
Persistent memory for any AI — zero token cost until recall

## Tools
Capabilities this server exposes over MCP:

- **memory_store** — Store a new memory (deduplicates by title+namespace, reports contradictions)
- **memory_recall** — Recall memories relevant to a context (fuzzy OR search, ranked by 6 factors)
- **memory_search** — Search memories by exact keyword match (AND semantics)
- **memory_list** — List memories with optional filters (namespace, tier, tags, date range)
- **memory_get** — Get a specific memory by ID with its links
- **memory_update** — Update an existing memory by ID (partial update)
- **memory_delete** — Delete a memory by ID
- **memory_promote** — Promote a memory to long-term (permanent, clears expiry)
- **memory_forget** — Bulk delete by pattern, namespace, or tier
- **memory_link** — Create a typed link between two memories
- **memory_get_links** — Get all links for a memory
- **memory_consolidate** — Merge multiple memories into one long-term summary
- **memory_stats** — Get memory store statistics
- **memory_capabilities** — Report active feature tier, loaded models, and available capabilities
- **memory_expand_query** — Use LLM to expand search query into related terms (smart+ tier)
- **memory_auto_tag** — Use LLM to auto-generate tags for a memory (smart+ tier)
- **memory_detect_contradiction** — Use LLM to check if two memories contradict (smart+ tier)
- **memory_archive_list** — List archived memories (with optional namespace/tier/tag filters)
- **memory_archive_restore** — Restore an archived memory back to the active store
- **memory_archive_purge** — Permanently delete archived memories matching filters
- **memory_archive_stats** — Get archive statistics (counts by tier, namespace, age)

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "ai-memory": {
    "command": "uvx",
    "args": ["ai-memory-mcp"]
  }
}
```

## Documentation

## What ai-memory does

The ai-memory MCP server provides a persistent memory store for AI assistants that support MCP. It can retain information across sessions instead of requiring each conversation to rebuild the same context. The repository describes support for embedded SQLite and PostgreSQL with Apache AGE behind the same API.

Memories can be organized with namespaces, tiers, tags, dates, expiry, and typed relationships. The server can keep short-lived information, promote selected entries to permanent storage, merge several entries into a long-term summary, or remove data individually and in bulk. Archive operations provide a separate path for listing, restoring, and permanently purging archived records.

## How it works

Storage and retrieval are exposed as MCP tools. `memory_store` creates a memory and deduplicates entries using title and namespace; it also reports contradictions. `memory_recall` performs fuzzy OR matching and ranks results using six factors, while `memory_search` uses exact keyword matching with AND semantics. Other tools retrieve individual records, apply partial updates, list records with filters, and return store statistics or available capabilities.

Relationships are represented with typed links between memories. Agents can create links, inspect a memory's links, and consolidate multiple memories into a durable summary. The system also includes archive-specific operations for reviewing, restoring, and purging older records.

On smart+ tiers, optional LLM features can expand a query into related terms, generate tags, and check two memories for contradictions.

## Setup and configuration

The ai-memory MCP server has installation paths for a single developer, single-node deployments, multi-server or federated environments, and PostgreSQL plus Apache AGE deployments. The project publishes packages for Rust crates.io, npm, and PyPI. Its documentation separates quick-start installation from production, enterprise, and PostgreSQL deployment guidance.

The MCP profile controls the available surface: the README identifies a core profile with seven tools and a full profile with 101 tools in the current release, including the always-available `memory_capabilities` bootstrap tool. LLM configuration uses an MCP environment block; the documented backend choices include hosted providers and local servers. Operators can also configure agent attestation behavior. HTTP direct writes require attestation by default, while MCP `memory_store` follows the operator-as-actor path unless stricter enforcement is enabled.

## Tools and capabilities

The ai-memory MCP server includes tools for:

- Storing, recalling, searching, listing, retrieving, updating, and deleting memories.
- Promoting records to permanent storage, forgetting records in bulk, and consolidating records.
- Creating and reading typed memory links.
- Inspecting statistics and active capability tiers.
- Expanding queries, auto-tagging memories, and detecting contradictions on smart+ tiers.
- Listing, restoring, purging, and measuring archived memories.

## Limitations and notes

LLM-assisted features are tier-dependent rather than universally available. The README distinguishes seven core tools from the larger full profile, so deployments should verify the selected profile before relying on a particular capability. HTTP direct-write behavior includes a secure-default attestation requirement in the current release, and the documentation warns that attestation and hook-enforcement changes are breaking security-default changes. Choose SQLite or PostgreSQL with Apache AGE according to the deployment and scale requirements described by the project.

_Full upstream README: https://allmcps.com/mcp/ai-memory/readme_

