Skip to main content

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 (23)

Category Tools
Session start_session, end_session, 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
Ordering reorder_items
Scopes list_scopes, create_scope, add_scope_member, remove_scope_member

Development

pip install -e ".[dev]"
pre-commit install   # installs ruff check/format as a git hook
pytest tests/ -v

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mimir_memory_mcp-0.15.0.tar.gz (252.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mimir_memory_mcp-0.15.0-py3-none-any.whl (63.1 kB view details)

Uploaded Python 3

File details

Details for the file mimir_memory_mcp-0.15.0.tar.gz.

File metadata

  • Download URL: mimir_memory_mcp-0.15.0.tar.gz
  • Upload date:
  • Size: 252.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for mimir_memory_mcp-0.15.0.tar.gz
Algorithm Hash digest
SHA256 f1e8828a4603e09641336705c920080ecdabf36e437ce96d9809600d2e209551
MD5 6f1a0744087f2579c4c23843378a55ab
BLAKE2b-256 cebf73669542a452d11cf85b7a5f7e0b8144584a5be689fc8e524012026dac14

See more details on using hashes here.

Provenance

The following attestation bundles were made for mimir_memory_mcp-0.15.0.tar.gz:

Publisher: release.yml on jimmy-larsson/mimir

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mimir_memory_mcp-0.15.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mimir_memory_mcp-0.15.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9839267ea0644077853ed6f8d15ebae391a170fd9c758fe71f49351a145a64ce
MD5 c81360dfe3891c03e6de7d29f2ec1069
BLAKE2b-256 8b3996e7d63b9661a467d7f485d0fd17be5cfcadc9f3e63f8a3ed0f7f8ecf798

See more details on using hashes here.

Provenance

The following attestation bundles were made for mimir_memory_mcp-0.15.0-py3-none-any.whl:

Publisher: release.yml on jimmy-larsson/mimir

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

1.0.0

2 files

This release

0.15.0 This release

2 files

0.14.0

2 files

0.13.0

2 files

0.12.0

2 files

0.11.0

2 files

0.10.0

2 files

0.9.0

2 files

0.8.0

2 files

0.7.0

2 files

0.6.0

2 files

0.5.0

2 files

0.4.0

2 files

0.3.1

2 files

0.2.0

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page