Mimir
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Mimir
Persistent memory for LLMs via MCP. SQLite + FTS5 full-text search, stdio transport.
Your MCP client launches the server automatically — you never run it manually.
Quick Start
1. Install
curl -LsSf https://astral.sh/uv/install.sh | sh # install uv
git clone <repo-url> mimir && cd mimir
uv sync2. Register the MCP Server
Add to your client's MCP config. Replace /path/to/mimir with wherever you cloned it.
VS Code — .vscode/mcp.json or your global MCP config:
{
"servers": {
"mimir": {
"type": "stdio",
"command": "uv",
"args": ["run", "--directory", "/path/to/mimir", "mimir"]
}
}
}Claude Code:
claude mcp add mimir -- uv run --directory /path/to/mimir mimirCursor — Cursor Settings > MCP:
{
"mcpServers": {
"mimir": {
"command": "uv",
"args": ["run", "--directory", "/path/to/mimir", "mimir"]
}
}
}3. Add Agent Instructions (Required)
Registering the server only makes the tools available. The LLM won't use them unless you tell it to. Paste the following into your agent's instruction file:
## Memory (Mimir MCP)
You have access to persistent memory via the Mimir MCP tools (prefixed `mem_`).
Use these tools proactively — do NOT wait for the user to ask.
### Session Start
- Call `mem_wake_up` at the start of every conversation to load prior context.
### When to Store (`mem_store`)
- User states a preference, convention, or decision
- You discover a codebase pattern, architecture detail, or build command
- A bug is diagnosed and fixed — store the root cause and solution
- A conversation produces an important outcome or action item
- The user corrects you — store the correction so you don't repeat the mistake
### When to Search (`mem_search`)
- Before answering questions about the project or user preferences
- Before making architectural or design decisions
- When the user references something from a past conversation
### Labels
- Use lowercase, hyphenated labels (e.g. `bug-fix`, `preference`, `codebase`, `decision`)
- Check `mem_list_labels` before creating new labels to stay consistent
- Before storing, call `mem_check_duplicate` if the memory might already exist
### Knowledge Graph
- `mem_kg_add` — record relationships (who works on what, service dependencies)
- `mem_kg_query` — answer "what is X?" or "who owns Y?"
- `mem_kg_invalidate` — mark a fact as no longer trueWhere to put it depends on your client:
Client | File | Scope |
VS Code / Copilot |
| per repo |
Claude Code |
| per repo |
Claude Code |
| global |
Cursor |
| per repo |
Cursor |
| global |
See each client's docs for additional global instruction options.
Related MCP server: misMEM
Storage
Mode | Flag | Path |
global (default) | — |
|
workspace |
|
|
To use workspace mode, append "--location=workspace" to the args array in your MCP config.
Tools
Tool | Description |
Core | |
| Store a memory |
| Retrieve by ID |
| Update fields |
| Delete a memory |
| Store multiple in one transaction |
| Full-text search with BM25, label/type/date filters |
Context | |
| Compact context summary — call at session start |
| Check for similar memories before storing |
| All labels with counts |
| All sessions with time ranges |
| Totals, breakdowns, storage size |
Organization | |
| Bidirectional link between memories |
| Delete expired memories |
| Export as JSON |
| Import from JSON (idempotent) |
Knowledge Graph | |
| Add a subject→predicate→object fact |
| Query facts, with point-in-time support |
| Mark a fact as no longer true |
| History of all facts about an entity |
| Triple/entity/predicate counts |
Development
uv run pytestTool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Persistent memory, knowledge graph, task management and more for AI agents via MCP.
Persistent personal memory for AI assistants — save, search, and recall across every MCP client.
Personal knowledge graph as an AI memory layer over MCP - read, save, and link your memories.
Persistent memory for AI agents across Claude, ChatGPT and any MCP client.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides persistent, inspectable memory storage for AI agents using SQLite. Agents can store, recall, and search memories across sessions via three MCP tools.3MIT
- AlicenseNot gradedqualityBmaintenanceProvides persistent, cooperative memory for LLMs via MCP, with SQLite storage and tools for capturing, recalling, consolidating, crystallizing, and forgetting memories across sessions.4MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI coding agents to persistently save, search, retrieve, update, link, and forget project-scoped memories through MCP tools, using local SQLite FTS5 keyword search without cloud access or telemetry.11 npm14MIT
- AlicenseBqualityBmaintenanceEnables MCP-capable AI clients to share one local SQLite-backed memory of preferences, decisions, tasks, and handoffs across sessions and models. It supports saving, searching, recalling, exporting, and restoring context through tools like remember, recall, get_context, and save_handoff.7MIT