Prototype · Preview: every server in the official registry, synced every 30 minutes. Reviews and accounts come in a later step.
PopNx MCPMCP servers for people who use AI · explained in plain words

Cognos Session Memory

by base76-research-labversion 0.1.0i★ –iRuns on your computer
Registry nameio.github.base76-research-lab/cognos-session-memory

Install

Overview

Description from the maker (original English)

CognOS trust scoring (C=p·(1-Ue-Ua)) and session trace storage as MCP tools.

PopNx MCP’s three pillars

These three are never merged into one score: opinions, measurements and popularity are different things.

What you can do with it

We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.

  • Connection: Runs on your computer
  • Transport: stdio
  • Category: Search & AI memory

Install

Pick the AI app you use, then copy the settings.

Before you install

  • Basic checks: 1 of 1 passed
  • Runs on your computer with your user’s permissions (files, network, apps).
  • You fill in yourself: COGNOS_TRACE_DB

You need

  • PyPIPython’s uv installed (for the uvx command)

Which app do you use?

Pick your app above. We remember it, so next time the button says “Install in …”.

Open Claude Desktop → Settings → Developer → Edit Config, and paste this into claude_desktop_config.json

{
  "mcpServers": {
    "cognos-session-memory": {
      "command": "uvx",
      "args": [
        "cognos-session-memory-mcp"
      ],
      "env": {
        "COGNOS_TRACE_DB": "your-value"
      }
    }
  }
}

Run this in your terminal

claude mcp add cognos-session-memory --env COGNOS_TRACE_DB=your-value -- uvx cognos-session-memory-mcp

Fill in the empty values before running it.

Open in Cursor

Or copy the settings yourself

Paste into .cursor/mcp.json in your project, or ~/.cursor/mcp.json

{
  "mcpServers": {
    "cognos-session-memory": {
      "command": "uvx",
      "args": [
        "cognos-session-memory-mcp"
      ],
      "env": {
        "COGNOS_TRACE_DB": "your-value"
      }
    }
  }
}

Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.

Open in VS Code

Or copy the settings yourself

Paste into .vscode/mcp.json in your project

{
  "servers": {
    "cognos-session-memory": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "cognos-session-memory-mcp"
      ],
      "env": {
        "COGNOS_TRACE_DB": "your-value"
      }
    }
  }
}

Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.

This one runs on your computer, and ChatGPT can only connect to servers on the internet. Pick another app.

Your choice stays on this device in a cookie; no account needed.

Values you fill in

  • COGNOS_TRACE_DB env
    Path to SQLite trace database (default: data/traces.sqlite3)

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 7, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account base76-research-lab, which owns the repo

  • … Not checked yet

    Still maintained

    We have not read this repo from GitHub yet

  • … Not checked yet

    Has a licence

    We have not read this repo from GitHub yet

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Compared with others in Search & AI memoryi

  • More stars than 0% of the other 7254 servers in this category
  • Published to the registry more recently than 4% of the other 7254 servers in this category
  • Basic checks equal to or better than 100% of the other 7254 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Cognos Session Memory safe?

It passed 1 of 1 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed –, and the latest version (0.1.0) reached the registry 8 months ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv) on your computer.

What can I use instead?

In the same category: Context7, Codebase Memory, Exa

Alternatives

Servers in the same category from other makers, sorted by stars.

Reading a card:★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

Context7

by upstash

Feeds AI the latest docs for libraries and frameworks before it answers, so code it writes does not use outdated, removed functions.

Computer or cloud★ 64,224MITUpdated today
Install

Codebase Memory

by DeusData

Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.

Runs on your computer★ 48,148MITUpdated 20 days ago
Install

Exa

by exa-labs

Connect AI agents to Exa for web search, content fetching, and multi-step research.

Runs in the cloud★ 5,213MITUpdated last month
Install

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

CognOS Session Memory

mcp-name: io.github.base76-research-lab/cognos-session-memory

Verified context injection via epistemic trust scoring for LLMs.

Solves session fragmentation by maintaining verified, high-confidence session context between conversations.

Problem

Large language models suffer from session fragmentation: each new conversation starts without verified context of previous work. This forces repeated explanations, loses decision history, and breaks long-running workflows.

Existing solutions (persistent memory systems, vector retrieval) either:

  • Lack trust scores before injection → hallucinations propagate
  • Don't audit which context was injected → compliance gaps
  • Treat all past information equally → noise overwhelms signal

Solution

A plan-mode gateway that:

  1. Extracts structured context from 3-5 recent traces
  2. Scores context quality via CognOS epistemic formula: C = p · (1 − Ue − Ua)
  3. Injects as system prompt only if C > threshold
  4. Flags for manual review if C < threshold
  5. Audits every context injection with trace IDs → EU AI Act compliance

Architecture

recent_traces (n=5)

↓ extract_context() → ContextField + coverage ↓ compute_trust_score(p, ue, ua) → C, R, decision ↓ if C > threshold: system_prompt ← inject else: flagged_reason ← manual review

Core Formula
C = p · (1 − Ue − Ua)

R = 1 − C

where: p = prediction confidence (coverage of required fields) Ue = epistemic uncertainty (divergence between traces) Ua = aleatoric uncertainty (mean risk in traces)

Action Gate
R < 0.25       → PASS      (inject without review)

0.25 ≤ R < 0.60 → REFINE (inject with caution) R ≥ 0.60 → ESCALATE (flag for manual review)

API

POST /v1/plan

Extract and score context.

Request:

{

"n": 5, "trust_threshold": 0.75, "mode": "auto" }

Response (if injected):

{

"status": "injected", "trust_score": 0.82, "confidence": 0.82, "risk": 0.18, "decision": "PASS", "context": { "active_project": "CognOS mHC research", "last_decision": "Verify P1 hypothesis", "open_questions": ["How does routing entropy scale?"], "current_output": "exp_008 complete", "recent_models": ["gpt-4", "claude-3", "mistral"] }, "system_prompt": "## CognOS Context...", "trace_ids": ["uuid-1", "uuid-2", ...] }

Response (if flagged):

{

"status": "flagged", "trust_score": 0.45, "decision": "REFINE", "flagged_reason": "Trust score 0.45 below threshold 0.75. Manual review recommended.", "trace_ids": [...] }

Modes

  • auto (default) — inject if trust_score ≥ threshold, else flag
  • force — always inject (for testing)
  • dry_run — compute score but never inject

Claude Code Integration

As a /compact replacement
# In any Claude Code session:

/save

Claude writes a structured summary, trust-scores it, and persists it to SQLite. Next session: automatically injected as SESSION_CONTEXT before your first prompt.

See docs/COMPACT_ALTERNATIVE.md for a full comparison.

As an MCP server

Add to ~/.claude/settings.json:

{

"mcpServers": { "cognos-session-memory": { "command": "python3", "args": ["/path/to/cognos-session-memory/mcp_server.py"] } } }

Tools exposed:

ToolDescription
save_session(summary, project?)Trust-score and persist a session summary
load_session(threshold?)Retrieve last verified context (default threshold: 0.45)

Quick Start

Installation
git clone https://github.com/base76-research-lab/cognos-session-memory

cd cognos-session-memory pip install -e .

Run Gateway
python3 -m uvicorn --app-dir src main:app --port 8788
Test /v1/plan (dry_run)
curl -X POST http://127.0.0.1:8788/v1/plan \

-H 'Content-Type: application/json' \ -d '{"n": 5, "mode": "dry_run"}'

Test /v1/plan (auto)
curl -X POST http://127.0.0.1:8788/v1/plan \

-H 'Content-Type: application/json' \ -d '{"n": 5, "trust_threshold": 0.75, "mode": "auto"}'

Modules

  • trust.py — CognOS confidence formula, action gate, signal extractors
  • trace_store.py — SQLite persistence (write/read/purge)
  • plan.py — Context extraction, trust scoring, system prompt building
  • main.py — FastAPI gateway + middleware
  • mcp_server.py — MCP stdio server (save_session, load_session)

Testing

pytest tests/ -v --cov=src

Documentation

  • COMPACT_ALTERNATIVE.md — Why this beats /compact
  • PAPER.md — Research paper

Research Paper

See docs/PAPER.md — "Verified Context Injection: Epistemically Scored Session Memory for Large Language Models"

Status: Independent research — Base76 Research Lab, 2026 Authors: Björn André Wikström (Base76)

Citation

@software{wikstrom2026cognos,

author = {Wikström, Björn André}, title = {{CognOS Session Memory}: Verified Context Injection via Epistemic Trust Scoring}, year = {2026}, url = {https://github.com/base76-research-lab/cognos-session-memory} }

License

MIT

Contact

  • Author: Björn André Wikström
  • Email: bjorn@base76.se
  • ORCID: 0009-0000-4015-2357
  • GitHub: base76-research-lab
Ask PopNx