Back to Browse

Cognicore Env MCP Server

Developer ToolsModerate7.5MCP RegistryRemote
Free

Server data from the Official MCP Registry

Memory, reflection and safety for AI agents. Hosted or local, no vector database.

About

Memory, reflection and safety for AI agents. Hosted or local, no vector database.

Remote endpoints: streamable-http: https://mcp.cognicoree.tech/mcp/stream

Security Report

7.5
Moderate7.5Low Risk

Valid MCP server (3 strong, 3 medium validity signals). 5 known CVEs in dependencies Imported from the Official MCP Registry.

Endpoint verified · Requires authentication · 6 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Found in Source Code

Found by scanning the linked source code. This listing connects to a hosted endpoint, so none of this runs on your machine: it describes what the server software does where it is hosted.

file_system

Applies to the server that hosts this plugin, not to your machine.

env_vars

Applies to the server that hosts this plugin, not to your machine.

database

Applies to the server that hosts this plugin, not to your machine.

HTTP Network Access

Connects to external APIs or services over the internet.

How to Connect

Remote Plugin

No local installation needed. Your AI client connects to the remote endpoint directly.

Add this to your MCP configuration to connect:

{
  "mcpServers": {
    "io-github-cognicore-dev-cognicore-env": {
      "url": "https://mcp.cognicoree.tech/mcp/stream"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

CogniCore

Local-first session memory for Claude Code and Codex

Start a fix in Claude Code. Open Codex in the same project and it can pick up the ticket, the reasoning behind your last change, and the test you still need to write. CogniCore saves that handoff locally without a model API key.

PyPI Python 3.10+ Apache 2.0

Quickstart · How it works · Integrations · Python SDK · Benchmarks

Quickstart

With Python 3.10+ and either Claude Code or Codex installed, run:

pipx install "cognicore-env[mcp]"
cognicore install
  1. Restart Claude Code or Codex. In Codex, run /hooks and trust the CogniCore hooks.
  2. Work in a project and leave a concrete follow-up, such as “The CSV export handles empty rows. Next, add a regression test for trailing blank lines.” End the session.
  3. Open a new session from the same project directory, in either agent. Ask “What should I do next?” The startup brief should include the follow-up and the work that led to it.

If you use uv, install the CLI with uv tool install "cognicore-env[mcp]". Use cognicore install --agent codex to set up just Codex, or cognicore install --dry-run to preview the installer. Claude Code marketplace setup and hook configuration.

Demo showing a Claude Code session handing off work to Codex

How it works

  1. Capture. At the end of a coding session, hooks extract decisions, open tasks, facts, and exact values such as ticket IDs and file paths. The default extractor uses rules. Model-based compression is optional.
  2. Resume. When you reopen the project, the startup hook supplies a brief with a default budget of 700 tokens.
  3. Recall. The agent can use cognicore_recall to look up details left out of the brief.

Local session memory lives in SQLite under ~/.cognicore/mcp. Capture uses conversation text and edited file paths, and redacts detected secrets before saving. Open the read-only session viewer with python -m cognicore.memory.viewer from a Python environment where CogniCore is installed. Storage, capture, and configuration.

CogniCore groups sessions by Git repository, including its subfolders and linked worktrees. Outside a repository, it uses the folder where the session started. A repository rooted in your home directory is ignored.

Keep project decisions in Git

Save standing decisions and rules in .cognicore/context.md. CogniCore puts curated context first in the startup brief, and your team can review changes in pull requests.

cognicore project set goal "Make CSV exports reliable for large reports"
cognicore project add decision "Stream rows" --why "Keep memory usage bounded"
cognicore project add rule "Test empty exports and trailing blank lines"
cognicore project list

Run cognicore project suggestions to review proposals captured during sessions and cognicore project accept <id> to add one to the file.

Integrations

If you useSetupHow memory is accessed
Claude Code or CodexInstall the hooksAutomatic capture and resume using a shared local store
Claude on web, desktop, or mobileSet up the hosted connectorAccess hosted memory through the connector
Another MCP clientConfigure the local server or add the hosted endpointUse the memory tools from your client
Your own Python agentInstall the SDKStore and retrieve memory directly in your code

Optional hosted sync

Add https://mcp.cognicoree.tech/mcp/stream as a custom MCP connector in a compatible client and sign in with GitHub. To link your local Claude Code or Codex memory, run cognicore login and sign in with the same account. Sync sends the redacted handoff and can pull sessions saved through the connector.

Use cognicore sync status to check your connection and cognicore sync to sync manually. Hosted MCP and self-hosting guide.

Local MCP

For clients that accept a stdio MCP configuration, add this entry with uvx available on your PATH:

{
  "mcpServers": {
    "cognicore": {
      "command": "uvx",
      "args": ["--from", "cognicore-env[mcp]", "cognicore-mcp"]
    }
  }
}

The hosted MCP tool reference lists the tools available through the hosted connector and their side effects.

Python SDK

pip install cognicore-env

Give an agent a searchable SQLite store for what worked, what failed, and why. This example opens the same database twice to show how a later run can recall an earlier result.

from cognicore.memory.base import MemoryEntry
from cognicore.memory.sqlite_backend import SQLiteMemoryBackend

memory = SQLiteMemoryBackend("agent-memory.db")
memory.store(
    MemoryEntry(
        text="CSV export skips trailing blank lines when rows are streamed.",
        category="csv-export",
        correct=True,
    )
)

# A later run can open the same database.
memory = SQLiteMemoryBackend("agent-memory.db")
for result in memory.search("CSV export", top_k=3):
    print(result.entry.text)

SQLite search works with the base package. The [memory] extra adds dependencies for embedding-based retrieval, and [mem0] adds dependencies for signed memory transfer bundles. See the Python API, runnable examples, and experience transfer guide for reflection, replay, and verified memory sharing.

Benchmarks

Coding-session handoff

In the November 1, 2026 audit, both CogniCore and Claude-Mem 15.7.0 completed all three deferred follow-ups in each route. The harness withheld the prior transcript and simulated both products’ Codex startup hooks by running their hook commands and passing their output to Codex.

HandoffMemory systemNew tokensMemory readyRecall
Claude Code → Claude CodeCogniCore52,609~1 s24/24
Claude Code → Claude CodeClaude-Mem215,88870–80 s24/24
Claude Code → CodexCogniCore60,310~1 s23/24
Claude Code → CodexClaude-Mem146,52080–130 s24/24

New token counts include background processing. The audit covers three tasks per route and one run per task. Method, scoring notes, and full results.

LongMemEval retrieval

On the repository’s LongMemEval evaluation, multi-hop retrieval reached 85.2% strict recall with five chunks versus 78.8% for the zero-shot baseline. Both reached 95.0% at 20 chunks. Evaluation setup, results, and reproduction steps.

Documentation and support

Launches

Program membership

License

Apache License 2.0. Built by Kaushal Trivedi, Durvesh Bhadgaonkar, and Hassaan Tole.

Reviews

No reviews yet

Be the first to review this server!