Ai-memory MCP Server

Configuring the LLM backend (xAI Grok, OpenAI, Anthropic, Gemini, DeepSeek, Kimi, Qwen, Mistral, Groq, Together, Cerebras, OpenRouter, Fireworks, LMStudio, vLLM, llama.cpp server, or local Ollama)?…

Local serverstdio

What is the Ai-memory MCP Server?

ai-memory-mcp is an MCP project maintained in the alphaonedev/ai-memory-mcp repository. The maintainer describes its purpose as “Configuring the LLM backend (xAI Grok, OpenAI, Anthropic, Gemini, DeepSeek, Kimi, Qwen, Mistral, Groq, Together, Cerebras, OpenRouter, Fireworks, LMStudio, vLLM, llama.cpp server, or local Ollama)?…”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using ai-memory. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
memory_storeStore a new memory (deduplicates by title+namespace, reports contradictions)
memory_recallRecall memories relevant to a context (fuzzy OR search, ranked by 6 factors)
memory_searchSearch memories by exact keyword match (AND semantics)
memory_listList memories with optional filters (namespace, tier, tags, date range)
memory_getGet a specific memory by ID with its links
memory_updateUpdate an existing memory by ID (partial update)
memory_deleteDelete a memory by ID
memory_promotePromote a memory to long-term (permanent, clears expiry)
memory_forgetBulk delete by pattern, namespace, or tier
memory_linkCreate a typed link between two memories
memory_get_linksGet all links for a memory
memory_consolidateMerge multiple memories into one long-term summary
memory_statsGet memory store statistics
memory_capabilitiesReport active feature tier, loaded models, and available capabilities
memory_expand_queryUse LLM to expand search query into related terms (smart+ tier)
memory_auto_tagUse LLM to auto-generate tags for a memory (smart+ tier)
memory_detect_contradictionUse LLM to check if two memories contradict (smart+ tier)
memory_archive_listList archived memories (with optional namespace/tier/tag filters)
memory_archive_restoreRestore an archived memory back to the active store
memory_archive_purgePermanently delete archived memories matching filters
memory_archive_statsGet archive statistics (counts by tier, namespace, age)

How to install the Ai-memory MCP Server

{
  "mcpServers": {
    "memory": {
      "command": "ai-memory",
      "args": [
        "--db",
        "~/.claude/ai-memory.db",
        "mcp",
        "--tier",
        "semantic"
      ]
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.