npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@certaworks/cognitive-memory-mcp-server

v0.1.0

Published

Gives agents episodic, semantic, and working memory through MCP tools.

Readme

Cognitive Memory MCP Server

Type: Local MCP Server

Value: Gives agents durable local episodic, semantic, and working-memory primitives through MCP tools.

Current Status

Complete as a local MCP server slice. It provides durable local memory tools over stdio with a file-backed JSON store and deterministic retrieval.

Shipped Local Scope

  • MCP tools for write_memory, search_memory, summarize_context, pack_context, list_memory, delete_memory, clear_memory, and memory_stats
  • Separate episodic and semantic memory records with tags, importance, session IDs, access counts, and timestamps
  • File-backed local JSON store with a configurable path
  • Working-memory budget helper for context packing and deterministic summary text
  • Input validation at the MCP boundary with JSON-RPC invalid-request and invalid-params errors
  • Package bin for launching the MCP server locally

Install And Run

npm install
npm test
npm run mcp

After build, the package exposes:

cognitive-memory-mcp

For MCP client configuration, point the command at the built server:

{
  "mcpServers": {
    "cognitive-memory": {
      "command": "node",
      "args": ["dist/mcp/server.js"],
      "env": {
        "COGNITIVE_MEMORY_STORE_PATH": "./.cognitive-memory/memory.json"
      }
    }
  }
}

Local Storage

By default, the MCP server writes to:

.cognitive-memory/memory.json

Override with either:

COGNITIVE_MEMORY_STORE_PATH=/path/to/memory.json
COGNITIVE_MEMORY_STORE=/path/to/memory.json

The store file is versioned JSON:

{
  "version": 1,
  "records": []
}

SDK Surface

import { createMemoryStore } from '@blair/cognitive-memory-mcp-server';

const store = createMemoryStore({ storePath: './memory.json' });
store.load();

const memory = store.writeMemory({
  type: 'semantic',
  content: 'CertaWorks products should state local versus hosted scope clearly.',
  tags: ['certaworks'],
  importance: 0.8
});

const results = store.searchMemory({
  query: 'hosted scope',
  sessionId: memory.sessionId,
  minScore: 0.01
});

Current Limits

  • This is a local product slice, not hosted SaaS.
  • There is no public npm publication, live checkout, multi-user auth, team workspace, encrypted remote storage, billing, or hosted retention policy.
  • Search is deterministic lexical relevance with recency, tag, and importance weighting; embedding/vector search is future work.
  • summarize_context returns deterministic packed-memory summary text, not an LLM-generated synthesis.

Verification

Fresh suite verification on 2026-05-28:

  • npm test passed, 27/27 tests across the unit, MCP, persistence, and package contract suite.
  • npm run build passes.
  • MCP stdio smoke checks cover initialize, write, search, summarize, and stats.