Cortex MCP
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., "@Cortex MCPget the current project state"
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.
Cortex MCP
Persistent brain, memory, loop controller, and reminder engine for AI coding agents.
What is Cortex?
Cortex is a local MCP server that gives AI coding agents persistent memory, task management, knowledge graphs, and a live dashboard. It runs on your machine, stores everything in SQLite, and never sends data to the cloud.
Agent starts → cortex_get_state → knows everything → works → cortex_save_snapshot → doneFeatures
31 MCP Tools
Core Loop — get_state, get_next_task, log_progress, check_reminders, save_snapshot
Project Setup — init (10-question onboarding), health check with auto-repair
Features & Files — track features, files, checkpoints, rollback
Tests & Issues — register tests, log bugs, resolve issues
Knowledge Base — dictionary, snippets, research, decisions, FTS5 search
Human Interaction — ask_human (pause for input), confirm_destructive (red modal)
V2 Advanced — token budget (180k), agent roles (4 levels), contradiction detection
Knowledge Graph — relationships between features, files, tests, issues
Live Dashboard
11 tabs — Overview, Features, FileTree, Tests, Progress, Issues, Library, Research, Dictionary, Graph, Settings
D3 Knowledge Graph — force-directed visualization with 27+ nodes, drag/zoom/pan
WebSocket Live Push — dashboard updates instantly when data changes
Ctrl+K Search — global search across all tables
shadcn/ui — modern React 19 + Tailwind CSS interface
MCP Resources (10 endpoints)
Read project data without tool calls via cortex:// URIs:
cortex://project, cortex://features, cortex://files, cortex://tests, cortex://issues, cortex://dictionary, cortex://progress, cortex://todos, cortex://relationships, cortex://snapshots
MCP Prompts (5 templates)
Pre-built session workflows: start-session, debug-issue, review-code, init-project, end-session
V2.1 Modules
Audit Trail — structured logging for every tool call
Episodic Memory — timestamped events with importance scoring
Context Compilation — full project state in 2ms
Quick Start
Option 1: npx (Recommended)
Add to your opencode.json:
{
"mcp": {
"cortex": {
"type": "local",
"command": ["npx", "-y", "@neuralnexustech/cortex-mcp", "start", "--project", "."],
"enabled": true,
"env": {
"CORTEX_PROJECT_PATH": "."
}
}
}
}Option 2: Local Install
npm install -g @neuralnexustech/cortex-mcpThen add to opencode.json:
{
"mcp": {
"cortex": {
"type": "local",
"command": ["cortex", "start", "--project", "/path/to/your/project"],
"enabled": true,
"env": {
"CORTEX_PROJECT_PATH": "/path/to/your/project"
}
}
}
}Option 3: Clone & Run
git clone https://github.com/neuralnexustech/cortex-mcp.git
cd cortex-mcp
npm install
cd dashboard && npm install && npm run build && cd ..
node src/server.jsSession Lifecycle
START
↓
cortex_get_state → project context (<200 tokens)
↓
cortex_get_next_task → highest-priority pending todo
↓
WORK → write code, create files
↓
cortex_tick_file → track each file created
↓
cortex_log_progress → log completed work
↓
cortex_check_reminders → handle warnings
↓
cortex_get_next_task → next todo (or "ALL TASKS COMPLETE")
↓
...repeat...
↓
cortex_save_snapshot → compress session to summary
↓
ENDTool Reference
Core Loop (5)
Tool | Purpose |
| Compressed project context |
| Highest-priority pending todo |
| Log completed work |
| 6 safety checks |
| Compress session summary |
Project Setup (3)
Tool | Purpose |
| Initialize project (10-question onboarding) |
| Switch between projects |
| DB integrity + auto-repair |
Features & Files (5)
Tool | Purpose |
| Register a feature |
| Update feature status |
| Track file creation (auto-checkpoints) |
| List all tracked files |
| Restore file from checkpoint |
Tests (2)
Tool | Purpose |
| Register a test |
| Mark test passed/failed |
Issues (2)
Tool | Purpose |
| Log a bug or blocker |
| Mark issue resolved with fix |
Knowledge Base (6)
Tool | Purpose |
| Document a file/feature |
| Retrieve full dictionary entry |
| Save reusable code snippet |
| Log library research notes |
| Record architectural decision |
| FTS5 + vector hybrid search |
Human Interaction (2)
Tool | Purpose |
| Pause, ask question, wait for answer |
| Red confirmation modal for dangerous ops |
V2 Advanced (5)
Tool | Purpose |
| Track token usage per action |
| Check remaining budget (180k default) |
| Set agent role |
| Get agent permissions |
| List all connected agents |
Knowledge Graph (3)
Tool | Purpose |
| Link entities |
| Find conflicting data |
| Resolve conflicts |
Skills (2)
Tool | Purpose |
| Load SKILL.md guide |
| List available skills |
Database
SQLite at .cortex/cortex.db with:
WAL mode — concurrent reads while writing
FTS5 — full-text search across all tables
15+ tables — project, features, files, tests, issues, dictionary, progress, relationships, etc.
Triggers — auto-sync FTS index on insert/update/delete
Dashboard
Live at http://localhost:3001 when the server runs.
Ctrl+K — Global search overlay
Graph tab — D3 force-directed knowledge graph
LIVE indicator — WebSocket connection status
11 tabs — Overview, Features, FileTree, Tests, Progress, Issues, Library, Research, Dictionary, Graph, Settings
REST API
Endpoint | Description |
| Health check |
| All project data |
| Knowledge graph (nodes + edges) |
| Search across tables |
| Audit trail entries |
| Episodic memory events |
| Compiled project state |
| WebSocket status |
| Submit answer to pending question |
MCP Resources
Read project data without tool calls:
URI | Data |
| Project config, features, todos |
| All features with status |
| All tracked files |
| All tests |
| All issues |
| File documentation |
| Recent activity |
| Pending tasks |
| Knowledge graph edges |
| Session summaries |
Architecture
cortex-mcp/
├── bin/cortex.js # CLI entry point
├── src/
│ ├── server.js # MCP server (main entry)
│ ├── api/server.js # Express REST API + dashboard
│ ├── db/
│ │ ├── schema.js # Table definitions + FTS5
│ │ ├── init.js # DB connection (WAL mode)
│ │ ├── queries.js # Read/write functions
│ │ └── cortex_v2.sql # V2 migration
│ ├── tools/ # 31 MCP tools
│ │ ├── state.js # cortex_get_state
│ │ ├── tasks.js # cortex_get_next_task
│ │ ├── search.js # FTS5 + hybrid search
│ │ ├── contradictions.js # Contradiction detection
│ │ ├── tokens.js # Token budget
│ │ ├── roles.js # Agent roles
│ │ ├── relationships.js # Knowledge graph
│ │ ├── health.js # Auto-repair
│ │ └── ...
│ ├── embeddings/ # ONNX vector engine
│ ├── websocket/server.js # WebSocket live push
│ ├── audit/index.js # Audit trail
│ ├── memory/
│ │ ├── episodic.js # Episodic memory
│ │ └── compiler.js # Context compiler
│ ├── resources/project.js # MCP Resources
│ └── prompts/index.js # MCP Prompts
├── dashboard/ # React 19 + shadcn/ui
│ ├── src/
│ │ ├── App.jsx # Main app + routing
│ │ ├── components/
│ │ │ ├── tabs/ # 11 tab components
│ │ │ ├── ui/ # shadcn/ui components
│ │ │ ├── Graph.jsx # D3 knowledge graph
│ │ │ └── GlobalSearch.jsx
│ │ └── styles/globals.css # Tailwind + shadcn vars
│ └── dist/ # Built dashboard
├── skills/ # Agent skill files
├── docs/ # Documentation
└── AGENTS.md # Agent guideEnvironment Variables
Variable | Default | Description |
|
| Project root directory |
|
| REST API port |
|
| Dashboard port |
|
| Enable cloud sync |
Requirements
Node.js ≥ 18.0.0
Works on Windows, macOS, Linux
Links
Platform | URL |
Website | |
GitHub | |
npm |
License
MIT © neuralnexustech
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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/neuralnexustech/cortex-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server