Skip to main content
Glama

๐Ÿง  Cortex โ€” Proactive Memory Agent for AI Coding Assistants

Obsidian-backed knowledge graph with semantic search, entity extraction, and cross-session memory. 11 MCP tools. Works with Claude Code, Cursor, Windsurf, and any MCP-compatible editor.


What It Does

You: "How does the memory system handle forgetting?"
Cortex: ๐Ÿ’ก This reminds me of your previous work on:
       1. decisions/memory-architecture-choice โ€” Ebbinghaus decay with 14-day half-life
       2. daily/2026-06-19 โ€” You designed the three-tier memory architecture
       3. moc/system-architecture โ€” Full system diagram
  • Semantic search โ€” Find concepts across languages (EN query โ†’ CN content)

  • Knowledge graph โ€” 928 entities, 106K relationships, auto-extracted from your notes

  • Proactive context โ€” memory_monitor watches conversation topics, surfaces relevant memories

  • Gap analysis โ€” Compare your learning goals against actual knowledge coverage

  • Cross-session โ€” Every session loads your memory index + recent daily logs automatically

Related MCP server: memorix

Architecture

MCP Client (Claude Code / Cursor / Windsurf)
       โ”‚  stdio JSON-RPC
       โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  Cortex MCP Server (TypeScript) โ”‚
โ”‚  11 tools + 1 resource          โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚
โ”‚  โ”‚ SQLite (sql.js)           โ”‚  โ”‚  โ† Knowledge graph (8 tables)
โ”‚  โ”‚ LanceDB                   โ”‚  โ”‚  โ† Vector embeddings (384-dim)
โ”‚  โ”‚ ONNX (all-MiniLM-L6-v2)   โ”‚  โ”‚  โ† Local, zero API cost
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
               โ”‚ reads & indexes
               โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  Obsidian Vault (source of truth)โ”‚
โ”‚  daily/  decisions/  moc/       โ”‚
โ”‚  ๅญฆไน ่ฎกๅˆ’/  ...                  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Quick Start

# 1. Install
cd Cortex/mcp-server
npm install --ignore-scripts
npx tsc

# 2. Configure (Claude Code)
# Copy the MCP config to your global Claude Code settings:
# ~/.claude/.mcp.json

# 3. Use
# Start a Claude Code session. The MCP server starts automatically.
# Say: "memory_ingest" to index your vault
# Say: "search for architecture decisions" to find memories

MCP Tools

Tool

Description

memory_search

Hybrid keyword + vector semantic search

memory_ingest

Scan vault, extract entities, build index

memory_status

System health report

memory_entity_extract

Extract typed entities from text

memory_graph_query

Query the knowledge graph (multi-hop)

memory_auto_link

Suggest [[wikilinks]] between notes

memory_monitor

Process conversation, return proactive context

memory_conflict_resolve

Detect contradictions with existing memories

memory_gap_analysis

Analyze knowledge gaps vs learning goals

memory_consolidate

Apply decay, find archive candidates

memory_session_end

Generate daily note (portable Stop hook)

Editor Support

Editor

Setup

Claude Code

~/.claude/.mcp.json (global) or .mcp.json (project)

Cursor

Copy editors/cursor.mcp.json โ†’ .cursor/mcp.json

Windsurf

Copy editors/windsurf.mcp.json

Cline / VS Code

Copy editors/cline.mcp.json

Project Structure

Cortex/
โ”œโ”€โ”€ mcp-server/               โ† TypeScript MCP server (32 source files)
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ tools/            โ† 11 MCP tools
โ”‚   โ”‚   โ”œโ”€โ”€ graph/            โ† Knowledge graph + decay + gap detection
โ”‚   โ”‚   โ”œโ”€โ”€ ingest/           โ† Vault scanner, chunker, entity extractor
โ”‚   โ”‚   โ”œโ”€โ”€ embeddings/       โ† ONNX pipeline (all-MiniLM-L6-v2)
โ”‚   โ”‚   โ”œโ”€โ”€ db/               โ† SQLite + LanceDB
โ”‚   โ”‚   โ””โ”€โ”€ resources/        โ† MCP resource endpoints
โ”‚   โ”œโ”€โ”€ editors/              โ† Config templates for other editors
โ”‚   โ””โ”€โ”€ tests/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ hooks/                โ† Bash hooks (SessionStart, Stop, etc.)
โ”‚   โ”œโ”€โ”€ lib/                  โ† Bash utilities
โ”‚   โ””โ”€โ”€ templates/            โ† Vault file templates
โ”œโ”€โ”€ skills/                   โ† Claude Code skills
โ”œโ”€โ”€ commands/                 โ† Slash commands
โ”œโ”€โ”€ docs/                     โ† Architecture docs
โ””โ”€โ”€ tests/                    โ† Hook tests

License

MIT โ€” see LICENSE

A
license - permissive license
-
quality - not tested
B
maintenance

Maintenance

โ€“Maintainers
<1hResponse time
โ€“Release cycle
โ€“Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    A
    maintenance
    Cross-agent memory bridge for AI coding assistants. Persistent knowledge graph shared across 10 IDEs (Cursor, Windsurf, Claude Code, Codex, Copilot, Kiro, Antigravity, OpenCode, Trae, Gemini CLI) via MCP. 22 tools including team collaboration, auto-cleanup, mini-skills, session management, and workspace sync. 100% local, zero API keys required.
    Last updated
    17
    1,639
    593
    Apache 2.0
  • A
    license
    A
    quality
    B
    maintenance
    Persistent cloud memory for AI coding assistants. 28 MCP tools for semantic search, auto-learning, task tracking, correction patterns, knowledge graphs, and session replay across Claude Code, Cursor, Windsurf, Cline, and any MCP client. Encrypted at rest. Team shared memory with author attribution.
    Last updated
    35
    199
    7
    MIT
  • A
    license
    -
    quality
    A
    maintenance
    Syncs Obsidian notes into a temporal knowledge graph and exposes 23 MCP tools for AI assistants to read, search, and write to your vault, enabling persistent memory across conversations.
    Last updated
    60
    MIT

View all related MCP servers

Related MCP Connectors

  • Token-efficient MCP memory for Markdown vaults. Tiered search, GraphRAG, AI memories.

  • Secure, user-owned long-term memory for AI agents over OAuth-protected remote MCP. Save, search, recall, update, and govern preferences, project context, decisions, and task state across ChatGPT, Claude, Copilot, IDEs, and CLIs.

  • Your memory, everywhere AI goes. Build knowledge once, access it via MCP anywhere.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/liveevilkin/Cortex'

If you have feedback or need assistance with the MCP directory API, please join our Discord server