Cognicore Env logo

Cognicore Env

Local-first MCP memory for carrying coding context between Claude Code, Codex, and other supported clients.

Install Cognicore Env

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "cognicore-env": {
      "command": "uvx",
      "args": [
        "--from",
        "cognicore-env[mcp]==0.13.0",
        "cognicore-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio cognicore-env -- uvx --from 'cognicore-env[mcp]==0.13.0' cognicore-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

The cognicore-env MCP server stores coding-session handoffs locally and makes them available across Claude Code, Codex, and other MCP clients. It uses SQLite, BM25 search, and multi-hop graph retrieval without a vector database, embedding server, or model API key. Ten MCP tools cover memory operations, including detailed recall through cognicore_recall. Reach for it when agents need to preserve decisions, open tasks, facts, ticket IDs, and file paths between sessions.

Use cases

  • Resume coding work across Claude Code and Codex sessions
  • Recall decisions and follow-up tasks from earlier project work
  • Search imported ChatGPT conversations for project history
  • Maintain reviewable project rules and decisions in Git
  • Share redacted session memory across devices

Key features

  • SQLite-backed local session memory
  • BM25 and multi-hop graph retrieval
  • Automatic capture and startup briefs
  • Secret redaction before storage or sync
  • Optional hosted synchronization
  • ChatGPT history import and search

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

21/21 checks healthy over the last 50d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 15d ago via OSV.dev · cognicore-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars89Stargazers on the source repository.
Last commitTodayMost recent push to the default branch.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Cognicore Env works

What cognicore-env does

cognicore-env provides local-first session memory for AI coding agents. It records structured handoffs containing a session goal, current state, unresolved tasks, decisions, facts, exact values, and edited file paths. A later session can use that information to reconstruct what happened and identify the next action.

The server is designed for handoffs between Claude Code and Codex, while its MCP interface can also be used from Cursor, VS Code, Cline, Windsurf, and other compatible clients. It does not require a vector database, an embedding service, or a model API key for its default operation. Retrieval combines BM25 text search with multi-hop graph retrieval.

How it works

Claude Code and Codex can install CogniCore hooks that capture relevant information when a coding session ends. At the next startup, a hook creates a brief from the saved project memory, with a default budget of 700 tokens. The agent can then call cognicore_recall to retrieve details that were not included in that brief.

Local memory is stored in SQLite below ~/.cognicore/mcp. Sessions are grouped by Git repository, including repository subfolders and linked worktrees. Outside a repository, the session's starting directory determines the group. Detected secrets are redacted before handoffs are stored or synchronized.

Project-level context can be maintained in .cognicore/context.md. The CLI supports recording goals, decisions, and rules there, reviewing captured project suggestions, and accepting selected suggestions into the file. Historical ChatGPT exports can also be imported into a local archive for searching, timeline views, and tracing decisions to source messages.

Setup and configuration

Install Python 3.10 or newer, then install the package with:

bash
pipx install "cognicore-env[mcp]"
cognicore install

The installer configures the hooks for Claude Code or Codex. Use cognicore install --agent codex for a Codex-only setup, or cognicore install --dry-run to preview changes. A uv installation is also supported with uv tool install "cognicore-env[mcp]".

For MCP-only use in Claude Code, register the local process with uvx and cognicore-mcp. Cursor, VS Code, Cline, and Windsurf require client-specific MCP configuration; those local configurations use uvx and keep memory on the machine. The hosted connector is available at https://mcp.cognicoree.tech/mcp/stream for compatible clients.

Optional account login enables synchronization with the hosted service. cognicore sync status reports the connection, while cognicore sync performs a manual sync. Optional AI compression can be enabled with COGNICORE_AI_COMPRESS=auto; it sends the handoff to Anthropic using the user's credentials.

Tools and capabilities

  • Capture session handoffs through Claude Code or Codex hooks.
  • Generate startup briefs for resumed project work.
  • Recall omitted session details with cognicore_recall.
  • Search imported ChatGPT conversations and view project timelines.
  • Store project goals, decisions, and rules in .cognicore/context.md.
  • Synchronize redacted handoffs and imported history through the hosted account.

Limitations and notes

Local mode stores memory on the current machine and sends nothing off-device. Hosted MCP usage sends requests to the hosted connector, while optional local synchronization sends redacted handoffs and the project path to the hosted service. Conversation transcripts, tool output, file contents, and model reasoning are not included in the local session store.

The automatic capture and resume workflow depends on installing the Claude Code or Codex hooks. Connecting only the MCP server provides the memory tools but not that automatic workflow. The hosted connector and history synchronization are optional and require account sign-in or explicit consent where indicated. A read-only session viewer can be opened with python -m cognicore.memory.viewer from an environment where CogniCore is installed.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Cognicore Env

cognicore-env is an MCP server that connects AI coding clients such as Claude Code, Codex, Cursor, VS Code, Cline, and Windsurf to persistent project memory. Its main tools store and recall session handoffs, decisions, facts, open tasks, and exact values using local SQLite storage, with optional hosted synchronization.

Install it with `pipx install "cognicore-env[mcp]"`, then run `cognicore install`. Python 3.10 or newer is required. For a Codex-only setup, use `cognicore install --agent codex`; use `cognicore install --dry-run` to preview the installer.

Yes, cognicore-env works with Cursor through a local MCP configuration or the hosted HTTP connector. The local setup runs `cognicore-mcp` through `uvx` and keeps memory on the machine; the hosted setup uses `https://mcp.cognicoree.tech/mcp/stream`.

No, the default setup does not require either one. Retrieval uses BM25 and multi-hop graph retrieval, and local operation does not require a model API key.

Enable optional synchronization with `cognicore login`, then run `cognicore sync` or let the configured workflow synchronize. Redacted handoffs are copied to the hosted account, and another signed-in device can restore synchronized memory.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewCognicore Env AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/cognicore-env?style=directory)](https://allmcps.com/mcp/cognicore-env)
HTML Embed
<a href="https://allmcps.com/mcp/cognicore-env"><img src="https://allmcps.com/api/badge/cognicore-env?style=directory" alt="Cognicore Env on AllMCPs" /></a>