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

cccmemory

v1.8.2

Published

MCP server for indexing and searching Claude Code conversation history with decision tracking, git integration, and project migration/merge

Readme

CCCMemory MCP

An MCP server that gives Claude long-term memory by indexing conversation history with semantic search, decision tracking, and cross-project search.


⚠️ Breaking Changes in v1.8.0

This package has been renamed from claude-conversation-memory-mcp to cccmemory.

If you were using the old package, follow these migration steps:

1. Uninstall the old package

npm uninstall -g claude-conversation-memory-mcp

2. Install the new package

npm install -g cccmemory

3. Update your MCP configuration

Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "cccmemory": {
      "command": "npx",
      "args": ["-y", "cccmemory"]
    }
  }
}

Claude Code (~/.claude.json):

{
  "mcpServers": {
    "cccmemory": {
      "command": "npx",
      "args": ["-y", "cccmemory"]
    }
  }
}

Codex (~/.codex/config.toml):

[mcp_servers.cccmemory]
command = "npx"
args = ["-y", "cccmemory"]

4. Database migration (automatic)

Your conversation history is preserved. The database files are automatically migrated:

  • .claude-conversations-memory.db.cccmemory.db
  • .codex-conversations-memory.db.cccmemory.db

No manual action required - the migration happens on first run.


Features

  • Search conversations - Natural language search across your chat history
  • Track decisions - Remember why you made technical choices
  • Prevent mistakes - Learn from past errors
  • Git integration - Link conversations to commits
  • Cross-project search - Search across all your projects globally
  • Project migration - Keep history when renaming/moving projects
  • Semantic search - Uses Transformers.js embeddings (bundled, works offline)

Installation

Node.js version

CCCMemory supports Node.js 20 or 22 LTS. Using other versions can break native modules (like better-sqlite3). If you switch Node versions, reinstall the package (or run npm rebuild better-sqlite3 in a local clone).

npm install -g cccmemory

Verify installation:

cccmemory --version

Configuration

For Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "cccmemory": {
      "command": "npx",
      "args": ["-y", "cccmemory"]
    }
  }
}

Then restart Claude Desktop.

For Claude Code

Edit ~/.claude.json (note: this file is in your home directory, not inside ~/.claude/):

{
  "mcpServers": {
    "cccmemory": {
      "command": "npx",
      "args": ["-y", "cccmemory"]
    }
  }
}

Or if installed globally:

{
  "mcpServers": {
    "cccmemory": {
      "command": "cccmemory"
    }
  }
}

For Codex CLI

Codex stores MCP settings in ~/.codex/config.toml (shared by the CLI and the IDE extension).

Recommended (CLI):

codex mcp add cccmemory -- npx -y cccmemory

Manual config (~/.codex/config.toml):

[mcp_servers.cccmemory]
command = "npx"
args = ["-y", "cccmemory"]

If you installed globally, you can use:

[mcp_servers.cccmemory]
command = "cccmemory"

Open Codex and run /mcp in the TUI to verify the server is active.

Storage Paths

By default, CCCMemory stores per-project databases in:

  • ~/.claude/projects/<project>/.cccmemory.db
  • Global index: ~/.claude/.cccmemory-global.db

If your home directory is not writable (common in sandboxed Codex/Claude setups where ~/.claude and ~/.codex are locked), the server will exit with a clear error. Set explicit paths to a writable location:

export CCCMEMORY_DB_PATH="/path/to/cccmemory.db"
export CCCMEMORY_GLOBAL_INDEX_PATH="/path/to/cccmemory-global.db"

For MCP configs, add these env vars in your server definition. CCCMemory will not silently create new databases outside ~/.claude; it only uses an existing project-local DB if one already exists and logs a warning.

Embedding Configuration (Optional)

The MCP uses Transformers.js by default for semantic search (bundled, works offline, no setup required).

Model download & cache behavior (Transformers.js):
On first use, @xenova/transformers downloads the model weights and caches them in its own default cache directory. CCCMemory does not manage or relocate that cache. Subsequent runs reuse the cached model and work fully offline.

To customize, create ~/.claude-memory-config.json:

{
  "embedding": {
    "provider": "transformers",
    "model": "Xenova/all-MiniLM-L6-v2",
    "dimensions": 384
  }
}

Alternative providers:

# Install Ollama
curl -fsSL https://ollama.com/install.sh | sh
ollama pull mxbai-embed-large
ollama serve

Config:

{
  "embedding": {
    "provider": "ollama",
    "model": "mxbai-embed-large",
    "dimensions": 1024
  }
}
{
  "embedding": {
    "provider": "openai",
    "model": "text-embedding-3-small",
    "dimensions": 1536
  }
}

Set OPENAI_API_KEY environment variable.

MCP Tools

Indexing

| Tool | Description | |------|-------------| | index_conversations | Index current project's conversations | | index_all_projects | Index all Claude Code + Codex projects |

Search

| Tool | Description | |------|-------------| | search_conversations | Search messages in current project | | search_all_conversations | Search across all indexed projects | | get_decisions | Find architectural decisions | | get_all_decisions | Decisions across all projects | | search_mistakes | Find past errors and fixes | | search_all_mistakes | Mistakes across all projects | | find_similar_sessions | Find related conversations |

Context

| Tool | Description | |------|-------------| | check_before_modify | Get context before editing a file | | get_file_evolution | See file history with commits | | search_by_file | Find all context related to a file | | list_recent_sessions | List recent sessions with summaries | | recall_and_apply | Recall past work for current task | | get_requirements | Look up component requirements | | get_tool_history | Query tool usage history | | link_commits_to_conversations | Connect git commits to sessions |

Project Management

| Tool | Description | |------|-------------| | discover_old_conversations | Find folders from renamed projects | | migrate_project | Migrate/merge conversation history | | forget_by_topic | Delete conversations by keyword | | generate_documentation | Generate docs from conversations |

CLI Usage

The package includes a standalone CLI:

# Interactive mode
cccmemory

# Single commands
cccmemory status
cccmemory index
cccmemory "search authentication"
cccmemory help

Supported Platforms

| Platform | Status | Conversation Location | |----------|--------|----------------------| | Claude Code | ✅ Supported | ~/.claude/projects/ | | Claude Desktop | ✅ Supported | (indexes Claude Code history) | | Codex | ✅ Supported | ~/.codex/sessions/ |

Why only Claude Code and Codex CLI today? CCCMemory indexes local session history from stable, parseable on-disk formats. Claude Code and Codex CLI both store full conversation logs locally with consistent schemas. Other tools either do not expose full local history, only support partial/manual saves, or do not provide a stable file format to parse reliably. Without deterministic local storage, there is nothing safe to index or resume.

Architecture

Per-Project Databases (isolation)
├── ~/.claude/projects/{project}/.cccmemory.db (Claude Code default)
├── ~/.codex/.cccmemory.db (Codex default)
└── {project}/.cccmemory/.cccmemory.db (fallback in restricted sandboxes)

Global Registry (cross-project search)
├── ~/.claude/.cccmemory-global.db (default)
└── {project}/.cccmemory/global-index.db (fallback in restricted sandboxes)

Troubleshooting

Claude Desktop shows JSON parse errors

Upgrade to v1.7.3+:

npm update -g cccmemory

MCP not loading in Claude Code

  1. Check config location is ~/.claude.json (not ~/.claude/config.json)
  2. Verify JSON syntax is valid
  3. Restart Claude Code

Embeddings not working

Check provider status:

cccmemory status

Default Transformers.js should work out of the box. If you opt into Ollama, ensure it's running (ollama serve).

License

MIT