Skip to main content

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 (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]"
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

mimir_memory_mcp-0.4.0.tar.gz (107.2 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.4.0-py3-none-any.whl (38.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mimir_memory_mcp-0.4.0.tar.gz
  • Upload date:
  • Size: 107.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mimir_memory_mcp-0.4.0.tar.gz
Algorithm Hash digest
SHA256 ddc7eb9a6c7ae7ec90e675b6b00ea92677757cd36b0089ceaee2a94fa4c4bbfc
MD5 f9f92db2a00eee4dff63f083729e5134
BLAKE2b-256 fc5e75bd7140dade8ee773ab7ef75e709a3a7f35bebbbb49647ea7d127a7a75f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mimir_memory_mcp-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 95c29ed922a355205eda10936b98fd9ee9824a014e244728692cffeec734d1d3
MD5 55f003586e54382804adf0eccc88e7f0
BLAKE2b-256 cfbce292d3c6717389cca805590ebc89f5c5b324284e8d35b099af6a5ec77791

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page