Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Cortex Engine

MCP server by Fozikio Verified · npm:@fozikio

Cortex Engine gives AI agents persistent memory that carries across sessions, models and runtimes. It runs as an MCP server with 60 cognitive tools, for developers building long-running agents.

  • Score 81
  • 51 stars
  • 807 a week
  • MIT
  • Updated

Install Cortex Engine

Built from the published package, never by AI.

claude mcp add cortex-engine -- npx -y @fozikio/cortex-engine

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Cortex Engine in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the cortex-engine block.

About

Cortex Engine is an open source, LLM-agnostic memory layer for AI agents. It stores observations, beliefs, questions and hypotheses as linked nodes, and updates beliefs when new evidence contradicts them. It runs dream consolidation in two phases, and it uses FSRS for spaced repetition. Storage can be local SQLite, cloud Firestore, or a JSON file used for backup and migration.

The engine exposes 60 cognitive tools over the Model Context Protocol. The source says it works with Claude Code, Cursor, Windsurf, or any MCP-compatible client. It is aimed at developers who want agents whose knowledge builds up over time. Setup uses npm and a CLI command called fozikio.

Written from the project's README and checked against it.

Tools it gives your assistant

  • queryRetrieves stored memory relevant to a request.
  • observeStores a new observation as a node in the memory graph.
  • believeRecords a belief that can be updated when new evidence contradicts it.
  • wanderRuns a seeded walk through the knowledge graph.
  • dreamRuns dream consolidation to compress and connect stored memory.
  • goal_setCreates a desired future state that biases consolidation and exploration.
  • agent_invokeSpawns cortex-aware sub-tasks using any configured LLM.
  • thread_createCreates a thread to group related work in memory.
  • journal_writeWrites an entry to the agent's journal.
  • evolveRuns a destructive evolve operation, available via MCP only.

What you need

  • Node.js and npm
  • Ollama for the default local embedding and LLM setup
  • Optional API keys for OpenAI, Gemini, DeepSeek or other LLM providers
  • Optional Firestore account for cloud storage

Try asking

  • Use query to recall what we decided about the auth design last week.
  • Observe that the staging database timeout happens only under heavy load.
  • Set a goal to finish the migration tests and wander from the migration topic.

Good to know

  • No dashboard ships with the package; the previous dashboard is not re-integrated.
  • The default SQLite setup runs one process per database file, so several sessions need the shared HTTP server.
  • Destructive tools such as forget, dream, evolve, resolve and thread_resolve are blocked from the generic REST endpoint.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Cortex Engine

All alternatives →
Supabase supabase
97

Connects Supabase projects to AI assistants such as Cursor, Claude and Windsurf over the Model Context Protocol. It lets assistants manage tables, fetch config and query data in a Supabase project.

AAA Local and remote 172k/wk
ArcadeDB MCP Server ArcadeData
94

ArcadeDB MCP Server is the built-in Model Context Protocol server of the ArcadeDB multi-model database. It lets AI assistants and LLMs work with ArcadeDB's graph, document, time-series, vector and other data models. It suits people who already run ArcadeDB and want assistant access to it.

AAA Local 1.3k
DBHubbytebase
94

Connects MCP clients such as Claude Desktop, Cursor and VS Code to PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, ClickHouse and SQLite. It exposes two tools by default, with read-only mode and query timeouts available as guardrails.

AAA Local 343k/wk
MCP Toolbox for Databasesgoogleapis
94

MCP Toolbox for Databases is an open source MCP server that connects AI agents, IDEs and applications to enterprise databases. It provides prebuilt tools for exploring schemas and running queries, plus a framework for custom tools. It is aimed at developers building agents that need database access.

AAA Local 17k
MCP Toolbox for Databasesgoogleapis
94

Connects AI agents, IDEs and applications to enterprise databases through the Model Context Protocol. Offers prebuilt database tools for MCP clients and a framework for building custom tools for production agents.

AAA Local 17k
mongodb-mcp-servermongodb-js
94

MongoDB MCP Server lets AI assistants interact with MongoDB databases and MongoDB Atlas. It is an official server from mongodb-js, run locally with npx or Docker. It works with self-managed deployments and Atlas clusters.

AAA Local 203k/wk

Compare with Supabase, ArcadeDB MCP Server or DBHub

Cortex Engine: common questions

Does Cortex Engine need an external service?

The source says no external service is required by default, because the built-in embedding provider and local Ollama are available. Cloud providers such as OpenAI or Vertex AI are optional.

Which AI clients work with Cortex Engine?

The source says it works with Claude Code, Cursor, Windsurf, or any MCP-compatible client. It also says it works with any MCP client.

Where is memory stored?

By default memory is stored in a local SQLite database. The source also lists cloud Firestore and a JSON file backup as storage backends.

How do I install Cortex Engine?

In Claude Code run claude mcp add cortex-engine -- npx -y @fozikio/cortex-engine. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Cortex Engine the official server?

Cortex Engine is published by npm:@fozikio from its verified domain in the official MCP Registry.

Is Cortex Engine free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is Cortex Engine safe to use?

It scores 81 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to Cortex Engine?

Similar MCP servers: Supabase, ArcadeDB MCP Server, DBHub, MCP Toolbox for Databases.

Does Cortex Engine work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Cortex Engine Install

Add to stack

Loading.