Skip to main content
Glama
AiAgentKarl

Agent Memory MCP Server

by AiAgentKarl
README.md
# Agent Memory MCP Server 🧠

Persistent memory for AI agents — store, retrieve and search knowledge across sessions. No more forgetting between conversations.

## The Problem

AI agents lose all context when a session ends. This MCP server gives agents a **persistent knowledge store** that survives across sessions, tools, and even different agent frameworks.

## Features

- **Store & Retrieve** — Key-value storage with full persistence
- **Namespaces** — Separate memories by project, user, or context
- **Tags** — Categorize memories for easy filtering
- **Full-Text Search** — Search across all stored knowledge
- **Access Tracking** — See which memories are accessed most
- **Statistics** — Dashboard showing memory usage

## Installation

```bash
pip install agent-memory-mcp-server
```

## Usage with Claude Code

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

## Tools

| Tool | Description |
|------|-------------|
| `memory_store` | Store a key-value pair persistently |
| `memory_retrieve` | Retrieve stored knowledge by key |
| `memory_search` | Full-text search across all memories |
| `memory_list` | List all memories in a namespace |
| `memory_delete` | Remove a memory |
| `memory_namespaces` | List all namespaces |
| `memory_stats` | Usage statistics |

## Examples

```
"Remember that the user prefers dark mode"
"What do you know about Project Alpha?"
"Store this API response for later"
"What were the key decisions from last session?"
```

## How It Works

Uses SQLite for zero-configuration persistent storage. Data is stored locally — no cloud, no API keys, no costs. The database file (`memory.db`) is created automatically in the server directory.


---

## More MCP Servers by AiAgentKarl

| Category | Servers |
|----------|---------|
| 🔗 Blockchain | [Solana](https://github.com/AiAgentKarl/solana-mcp-server) |
| 🌍 Data | [Weather](https://github.com/AiAgentKarl/weather-mcp-server) · [Germany](https://github.com/AiAgentKarl/germany-mcp-server) · [Agriculture](https://github.com/AiAgentKarl/agriculture-mcp-server) · [Space](https://github.com/AiAgentKarl/space-mcp-server) · [Aviation](https://github.com/AiAgentKarl/aviation-mcp-server) · [EU Companies](https://github.com/AiAgentKarl/eu-company-mcp-server) |
| 🔒 Security | [Cybersecurity](https://github.com/AiAgentKarl/cybersecurity-mcp-server) · [Policy Gateway](https://github.com/AiAgentKarl/agent-policy-gateway-mcp) · [Audit Trail](https://github.com/AiAgentKarl/agent-audit-trail-mcp) |
| 🤖 Agent Infra | [Memory](https://github.com/AiAgentKarl/agent-memory-mcp-server) · [Directory](https://github.com/AiAgentKarl/agent-directory-mcp-server) · [Hub](https://github.com/AiAgentKarl/mcp-appstore-server) · [Reputation](https://github.com/AiAgentKarl/agent-reputation-mcp-server) |
| 🔬 Research | [Academic](https://github.com/AiAgentKarl/crossref-academic-mcp-server) · [LLM Benchmark](https://github.com/AiAgentKarl/llm-benchmark-mcp-server) · [Legal](https://github.com/AiAgentKarl/legal-court-mcp-server) |

[→ Full catalog (40+ servers)](https://github.com/AiAgentKarl)

## License

MIT

TDQS

A3.6/5.0

Scored across 7 tools

Disambiguation5/5

Each tool has a clearly distinct purpose: store, retrieve, list, search, delete, list namespaces, and stats. No overlap or ambiguity.

Naming Consistency4/5

Tools follow a consistent 'memory_' prefix with verbs except for 'memory_namespaces' and 'memory_stats', which use nouns. Minor deviation from the verb_noun pattern.

Tool Count5/5

Seven tools are appropriate for a memory management server, covering essential operations without being too few or too many.

Completeness4/5

Covers all basic memory operations (create, read, list, search, delete, stats, namespace listing), but lacks an explicit update operation, though store can overwrite existing keys.

Maintenance

ActivityInactive
ResponsivenessNo issues