Cortex
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@CortexRemember that I prefer dark mode."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
The Problem
Every agent you run today has amnesia.
Claude Desktop forgets what Cursor found. Cursor does not know what Claude Code wrote yesterday. Each session starts from zero.
Cortex is the persistent nervous system that connects them all.
Related MCP server: tartarus-mcp
What is Cortex?
Cortex is a local-first MCP server that gives every AI agent a shared, semantically searchable memory layer.
No cloud. No Docker. No API keys.
One SQLite file at
~/.cortex/cortex.db— shared across all clientsEvery memory is origin-tagged: who wrote it, from which client, with which model
Hybrid search: BM25 keyword + cosine semantic retrieval fused with RRF
Built-in deduplication: exact hash + near-duplicate detection (cosine ≥ 0.95)
Soft-delete and audit trail on every write and delete
Quick Start
uvx cortex-mcpThat's it. The server starts, creates ~/.cortex/cortex.db, and is ready to accept connections from any MCP client.
Client Configuration
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"cortex": {
"command": "uvx",
"args": ["cortex-mcp"]
}
}
}Claude Code
claude mcp add cortex -- uvx cortex-mcpCursor / Zed / Windsurf
{
"mcpServers": {
"cortex": {
"command": "uvx",
"args": ["cortex-mcp"]
}
}
}Local Development
git clone https://github.com/yourusername/cortex-mcp
cd cortex-mcp
uv sync
uv run cortex-mcpPoint any MCP client at your local clone:
{
"mcpServers": {
"cortex": {
"command": "uv",
"args": ["--directory", "/path/to/cortex-mcp", "run", "cortex-mcp"]
}
}
}Tools
Tool | Description |
| Store a single atomic fact with automatic deduplication |
| Compact a full session into structured, searchable memories |
| Hybrid semantic + keyword search across all stored memories |
| Chronological listing with optional filters |
| Soft-delete a memory by ID (retained for audit) |
| Replace an incorrect memory with a corrected version |
| Explicitly mark a memory as verified |
| List all agents that have written memories |
| Operational health snapshot (counts, DB size, expiry) |
| Health check — verify the server is running |
How Memory Works
Session ends
│
▼
save_memory / remember_fact
│
├── Exact dedup (SHA-256 hash)
├── Near-dedup (cosine similarity ≥ 0.95)
├── Embed (BAAI/bge-small-en-v1.5, 384-dim)
└── Write to SQLite + FTS5 index
│
▼
recall(query)
│
├── FTS5 pre-filter (top 200 candidates)
├── BM25 keyword rank
├── Cosine semantic rank
└── RRF fusion → top_k resultsConfiguration
All settings are environment variables with the CORTEX_ prefix:
Variable | Default | Description |
|
| SQLite database path |
|
| Sentence embedding model |
|
| Default recall result count |
|
| Near-duplicate cosine threshold |
|
| Log level (DEBUG/INFO/WARNING/ERROR) |
Requirements
Python 3.11+
uv (recommended) or pip
License
MIT
This server cannot be installed
Maintenance
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
- Flicense-qualityDmaintenanceA local MCP server that provides semantic memory storage and retrieval for coding and AI agents, enabling durable context across chat sessions.1314
- Alicense-qualityDmaintenanceA local-first MCP memory server providing persistent, searchable memory for AI agents, powered by SQLite.51Apache 2.0
- AlicenseAqualityBmaintenanceA local-first MCP server for durable agent memory using SQLite and FTS5, enabling knowledge graph storage, search, and recall for AI agents.201MIT
- AlicenseAqualityAmaintenanceCortex is an MCP server that helps build and maintain a project Memory Bank for AI assistants, enabling reproducible, high-quality AI-driven development with a plan-do-commit loop.103MIT
Related MCP Connectors
Private-by-default, local-first memory/context/task orchestrator for MCP apps and agents.
Person-owned, portable AI memory as a remote MCP server, readable and writable by any MCP client.
Cloud-hosted MCP server for durable AI memory
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/saketh12e/cortex-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server