Skip to main content

Universal Memory MCP for Claude Code - dual-layer activity logging and knowledge storage

Project description

Omni Cortex MCP

A universal memory system for Claude Code that combines activity logging with intelligent knowledge storage.

Features

  • Zero Configuration: Works out of the box - just install and run setup
  • Dual-Layer Storage: Activity logging (audit trail) + Knowledge store (memories)
  • 15 MCP Tools: Full-featured API for memory management, activity tracking, and session continuity
  • Semantic Search: AI-powered search using sentence-transformers (optional)
  • Hybrid Search: Combines keyword (FTS5) + semantic search for best results
  • Full-Text Search: SQLite FTS5-powered keyword search with smart ranking
  • Auto-Categorization: Automatic memory type detection and tag suggestions
  • Session Continuity: "Last time you were working on..." context
  • Importance Decay: Frequently accessed memories naturally surface
  • Auto Activity Logging: Automatically logs all tool calls via hooks

Installation

Quick Install (Recommended)

# Install the package
pip install omni-cortex

# Run automatic setup (configures MCP server + hooks)
omni-cortex-setup

That's it! Omni Cortex will now:

  • Automatically log all Claude Code tool calls
  • Provide memory tools (cortex_remember, cortex_recall, etc.)
  • Create a per-project database at .omni-cortex/cortex.db

With Semantic Search

For AI-powered semantic search capabilities:

pip install omni-cortex[semantic]
omni-cortex-setup

From Source

git clone https://github.com/AllCytes/Omni-Cortex.git
cd omni-cortex
pip install -e ".[semantic]"
python -m omni_cortex.setup

Manual Configuration

If you prefer manual setup, add to ~/.claude.json:

{
  "mcpServers": {
    "omni-cortex": {
      "command": "python",
      "args": ["-m", "omni_cortex.server"]
    }
  }
}

And optionally configure hooks in ~/.claude/settings.json for activity logging:

{
  "hooks": {
    "PreToolUse": [{
      "type": "command",
      "command": "python -m omni_cortex.hooks.pre_tool_use"
    }],
    "PostToolUse": [{
      "type": "command",
      "command": "python -m omni_cortex.hooks.post_tool_use"
    }]
  }
}

Uninstall

omni-cortex-setup --uninstall
pip uninstall omni-cortex

Tools

Memory Tools (6)

Tool Description
cortex_remember Store information with auto-categorization
cortex_recall Search memories (modes: keyword, semantic, hybrid)
cortex_list_memories List memories with filters and pagination
cortex_update_memory Update memory content, tags, or status
cortex_forget Delete a memory
cortex_link_memories Create relationships between memories

Activity Tools (3)

Tool Description
cortex_log_activity Manually log an activity
cortex_get_activities Query the activity log
cortex_get_timeline Get a chronological timeline

Session Tools (3)

Tool Description
cortex_start_session Start a new session with context
cortex_end_session End session and generate summary
cortex_get_session_context Get context from previous sessions

Utility Tools (3)

Tool Description
cortex_list_tags List all tags with usage counts
cortex_review_memories Review and update memory freshness
cortex_export Export data to markdown or JSON

Memory Types

Memories are automatically categorized into:

  • general - General notes and information
  • warning - Cautions, things to avoid
  • tip - Tips, tricks, best practices
  • config - Configuration and settings
  • troubleshooting - Debugging and problem-solving
  • code - Code snippets and algorithms
  • error - Error messages and failures
  • solution - Solutions to problems
  • command - CLI commands
  • concept - Definitions and explanations
  • decision - Architectural decisions

Storage

  • Per-project: .omni-cortex/cortex.db in your project directory
  • Global: ~/.omni-cortex/global.db for cross-project search

Configuration

Create .omni-cortex/config.yaml in your project:

schema_version: "1.0"
embedding_enabled: true
decay_rate_per_day: 0.5
freshness_review_days: 30
auto_provide_context: true
context_depth: 3

Development

# Install dev dependencies
pip install -e ".[dev]"

# Run tests
pytest

# Format code
black src tests
ruff check src tests

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

omni_cortex-1.0.1.tar.gz (45.2 kB view details)

Uploaded Source

Built Distribution

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

omni_cortex-1.0.1-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file omni_cortex-1.0.1.tar.gz.

File metadata

  • Download URL: omni_cortex-1.0.1.tar.gz
  • Upload date:
  • Size: 45.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for omni_cortex-1.0.1.tar.gz
Algorithm Hash digest
SHA256 87cfc830d42af0bd0305decdc51b864733bfcbaecde62c2da45cbecb5a4fca11
MD5 95677e84a5984222ceaee671a688a271
BLAKE2b-256 10ac47d78ca5f33d5d9353e10649ac3e46a9a28aedac2424d83575ab321fa8b0

See more details on using hashes here.

File details

Details for the file omni_cortex-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: omni_cortex-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for omni_cortex-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2668a1bec1f48d8d84fb85acea78c0b715a6580423a17b613a23d205ef5bd43a
MD5 5d54327fc3a728f01d2d977e3802eafb
BLAKE2b-256 a56fb1eb0ce9b6639ea0d1d2f07e26532a86c18fa58b7b0ada8c434e07892de2

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