Skip to main content
Glama
neojakey
by neojakey

๐Ÿง  AI-Cortex

A self-hosted, persistent long-term memory cortex for Claude, Gemini, and other LLMs. Combines the best of Notion (structured properties, databases, Kanban boards) and Obsidian (speed, privacy, local ownership, markdown, bidirectional backlinks), backed by MySQL 8.4 and local hybrid file storage.

Designed to connect natively to Claude Desktop (Claude Pro) and Gemini via the Model Context Protocol (MCP) with zero API keys.


โœจ Features

  • โšก Sub-Millisecond MySQL 8.4 Relational Engine: Pre-indexed slugs, B-Tree foreign keys with cascading updates, and FULLTEXT search index.

  • ๐Ÿ“Ž Hybrid Attachment Storage: Deduplicated binary storage on disk (storage/attachments/) using SHA-256 hashes, with metadata and relations in MySQL.

  • ๐Ÿค– Native MCP Server for Claude & Gemini:

    • Connects to Claude Desktop using your monthly Claude Pro subscription without paying for API tokens.

    • Connects to Gemini / Antigravity with zero setup friction.

    • In-app 1-Click Auto-Installer for claude_desktop_config.json.

  • ๐Ÿ”— Bidirectional Backlinks & Wikilinks:

    • Type [[ in any note to trigger instant autocompletion of existing notes.

    • "Linked Mentions" panel at the bottom of every note displaying all notes that reference it.

  • ๐Ÿ“‹ Notion-Style Database Views:

    • Kanban Board: Drag or transition notes across workflow statuses.

    • Database Grid: Sortable, filterable table view with editable statuses.

    • Global Action Items: Automatically extracts and aggregates - [ ] tasks from every note into a consolidated checklist.

  • ๐Ÿ“… Daily Journaling: Jump to or create today's daily note with one keystroke (Alt + D).

  • ๐ŸŽจ Adaptive Theming: 3-way Dark / Light / System ambiance (follows the OS and reacts live to changes), 15 curated accent palettes plus a custom-colour picker. Preferences persist in localStorage; the theme is applied before first paint to avoid any flash. Toggle modes with Alt + T or from Settings โ†’ Appearance.

  • ๐Ÿ“ฆ Obsidian Vault 1-Click Export & Import: Export all notes and attachments as a standard .zip vault, or import existing Markdown vaults.

  • ๐Ÿงช Complete Test Suite: 11 automated unit and integration tests passing in ~300ms (npm test).


Related MCP server: Engram

๐Ÿš€ Quick Start

1. Requirements

  • Node.js v20+ (v22 recommended)

  • MySQL 8.4+ (MariaDB 10.6+ also works)

2. Environment Setup

Copy .env.example to .env and configure with your MySQL or MariaDB credentials:

cp .env.example .env
PORT=3001
HOST=127.0.0.1
DB_HOST=127.0.0.1
DB_PORT=3306
DB_NAME=ai_cortex
DB_USER=your_db_user
DB_PASS=your_db_password

3. Run Migrations & Seed Demo Data

npm run migrate
npm run seed

4. Run Automated Tests

npm test

5. Start AI-Cortex

Development (backend + Vite dev client with hot reload):

npm run dev

Open http://127.0.0.1:5173 โ€” the client proxies /api to the backend on port 3001.

Production (single server serving the built UI + API):

npm run build   # bundles the client into ./dist
npm start

Open http://127.0.0.1:3001. The API binds to HOST (default 127.0.0.1); set HOST / ALLOWED_HOSTS to expose it on a LAN.


๐Ÿค– Connecting Claude Desktop (Zero API Keys)

  1. Open AI-Cortex in your browser.

  2. Click Settings in the bottom-left sidebar, then open the AI Integrations tab.

  3. Click the "1-Click Auto Install" button (or copy the pre-filled JSON snippet into your claude_desktop_config.json). A "1-Click Enable for Gemini" button does the same for .agents/mcp_config.json in this workspace.

  4. Restart Claude Desktop. You will now see the memory tools (ai_cortex_search, ai_cortex_read_note, ai_cortex_create_note, ai_cortex_update_note, ai_cortex_get_backlinks, ai_cortex_list_recent, ai_cortex_list_tasks) available directly in Claude using your existing Claude Pro subscription!


โŒจ๏ธ Keyboard Shortcuts

Shortcut

Action

Ctrl + K / Cmd + K

Open instant full-text search palette

Alt + D

Jump to today's Daily Journal note

Ctrl + N / Cmd + N

Create a new note

Ctrl + Shift + C

Copy AI Context Bundle for Claude.ai / Gemini web tabs

Alt + T

Cycle theme: Dark โ†’ Light โ†’ System

[[

Open wikilink auto-complete popup while writing

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

Maintenance

โ€“Maintainers
โ€“Response 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

  • -
    license
    Not graded
    quality
    Not graded
    maintenance
    Provides persistent local memory functionality for AI assistants, enabling them to store, retrieve, and search contextual information across conversations with SQLite-based full-text search. All data stays private on your machine while dramatically improving context retention and personalized assistance.
    3
  • A
    license
    Not graded
    quality
    D
    maintenance
    A persistent memory server for AI agents that stores structured notes in a local SQLite database with full-text search and graph-based relationships. It features 32 specialized tools for managing long-term context, including version history, automated TTL expiration, and complex filtering.
    26
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    Enables AI assistants to search, read, and traverse Markdown note vaults (Obsidian-compatible) with full-text search, backlinks, knowledge graphs, and a persistent memory system for cross-session context.
    16
    9
    2
    MIT
  • A
    license
    Not graded
    quality
    A
    maintenance
    Enables AI assistants to search, read, create, update, and remove personal markdown notes stored locally, providing persistent memory across sessions.
    92
    2
    MIT

View all related MCP servers

Related MCP Connectors

  • Persistent memory and knowledge management for AI agents with semantic search and 50+ tools.

  • Universal memory for AI agents and tools. Save, organize and search context anywhere.

  • Cross-session, cross-device memory for your agent: remember and recall notes. No key to start.

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/neojakey/ai-cortex'

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