Mimir — structured memory MCP server for AI assistants
Project description
Mimir
Structured memory MCP server for LLMs.
Mimir provides persistent, structured memory for any LLM application via the Model Context Protocol. Multi-user, scope-based access control, tiered context loading, full-text search.
Named after Mímir, the Norse keeper of the Well of Wisdom.
Quick Start
pip
pip install mimir-mcp
MIMIR_DB_PATH=./mimir.db MIMIR_PORT=8100 mimir-mcp
Docker
docker run -p 8100:8100 -v mimir-data:/data mimir-mcp
From Source
git clone https://github.com/jimmy-larsson/mimir.git
cd mimir
pip install -e ".[dev]"
MIMIR_DB_PATH=./mimir.db mimir-mcp
Configuration
| Environment Variable | Default | Description |
|---|---|---|
MIMIR_DB_PATH |
/data/mimir.db |
SQLite database file path |
MIMIR_PORT |
8100 |
SSE transport port |
Provisioning Users
Mimir uses API key authentication. Create users via SQL seed file:
INSERT INTO users (id, name, is_admin, api_key)
VALUES ('myuser', 'My User', TRUE, 'your-uuid-v4-api-key');
INSERT INTO scopes (id, name, description)
VALUES ('myuser', 'My User', 'Personal scope');
INSERT INTO scope_members (scope_id, user_id)
VALUES ('myuser', 'myuser');
INSERT INTO activity_cursor (user_id, last_seen_history_id)
VALUES ('myuser', 0);
Load it:
mimir-mcp seed --file seed.sql
Integrating with Claude Code
See docs/integration/claude-code.md for full setup instructions.
Quick version: Add to your .mcp.json:
{
"mcpServers": {
"mimir": {
"url": "http://localhost:8100/sse",
"headers": {
"x-api-key": "YOUR_API_KEY"
}
}
}
}
Then add the Mimir usage snippet to your CLAUDE.md — see integration docs for the full snippet.
MCP Tools (25)
| Category | Tools |
|---|---|
| Session | start_session, session_end, save_session |
| Context | set_context, refresh_context |
| Items | add_items, update_item, complete_items, archive_items, delete_items, convert_item |
| Navigation | get_details, list_children, get_history, add_note |
| Search | search_items, list_items, get_facts |
| Tags | suggest_tags, list_tags |
| Ordering | reorder_items |
| Scopes | list_scopes, create_scope, add_scope_member, remove_scope_member |
Development
pip install -e ".[dev]"
pytest tests/ -v
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mimir_memory_mcp-0.2.0.tar.gz.
File metadata
- Download URL: mimir_memory_mcp-0.2.0.tar.gz
- Upload date:
- Size: 107.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af52ff8ff0d88165918902c3649cd7f32f6a5c626a33b129f52e8a282e2fe383
|
|
| MD5 |
410ae595d95daafbf4a98bd88e954fca
|
|
| BLAKE2b-256 |
8bda7388b5a9d8c8c358cbfe5f786faee0d2d896428ece3b2bff7259a48baf22
|
File details
Details for the file mimir_memory_mcp-0.2.0-py3-none-any.whl.
File metadata
- Download URL: mimir_memory_mcp-0.2.0-py3-none-any.whl
- Upload date:
- Size: 38.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eddcfec7a91238422bcaa080ea3b7e81c2ced90b1a558dfe4f5d71193fabf79a
|
|
| MD5 |
2f0b081582044abdb05a8ad80ead1c21
|
|
| BLAKE2b-256 |
4789b1a27631ead43cdc1ac7d9a72f9d1af1e3dae42237a64fdfd9c4929f540f
|