# hifriendbot/cogmemai-mcp [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/hifriendbot/cogmemai-mcp  
**GitHub Stars:** 7  
**npm Downloads (last month):** 1837  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/hifriendbot-cogmemai-mcp

## Description
Persistent cognitive memory for Claude Code. Cloud-first with semantic search, AI-powered extraction, and project scoping. Zero local databases.

## Tools
Capabilities this server exposes over MCP:

- **preflight** — Proactive recall.** Fast recall to check prior context before making any suggestion
- **save_memory** — Store a fact explicitly (architecture decision, preference, etc.)
- **recall_memories** — Search memories using natural language (semantic search)
- **extract_memories** — Ai extracts facts from a conversation exchange automatically
- **get_project_context** — Load top memories at session start (with smart ranking, health score, and session replay)
- **list_memories** — Browse memories with filters (paginated, with untyped filter)
- **update_memory** — Update content, importance, scope, type, category, subject, and tags
- **delete_memory** — Permanently delete a memory
- **bulk_delete** — Delete up to 100 memories at once
- **bulk_update** — Update up to 50 memories at once (content, type, category, tags, etc.)
- **get_usage** — Check your usage stats and tier info
- **export_memories** — Export all memories as JSON for backup or transfer
- **import_memories** — Bulk import memories from a JSON array
- **ingest_document** — Feed in a document (README, API docs) to auto-extract memories
- **save_session_summary** — Save a summary of what was accomplished in this session
- **list_tags** — View all tags in use across your memories
- **link_memories** — Connect related memories with named relationships
- **get_memory_links** — Explore the knowledge graph around a memory
- **get_memory_versions** — View edit history of a memory
- **get_analytics** — Memory health dashboard with self-tuning insights (filterable by project)
- **promote_memory** — Promote a project memory to global scope
- **consolidate_memories** — Merge related memories into comprehensive summaries using Ai
- **save_task** — Create a persistent task with status and priority tracking
- **get_tasks** — Retrieve tasks for the current project, pick up where you left off
- **update_task** — Change task status, priority, or description as you work
- **save_correction** — Store a "wrong approach → right approach" pattern to avoid repeated mistakes
- **set_reminder** — Set a reminder that surfaces at the start of your next session
- **get_stale_memories** — Find memories that may be outdated for review or cleanup
- **get_file_changes** — See what files changed since your last session
- **feedback_memory** — Signal whether a recalled memory was useful or irrelevant to improve future recall
- **generate_skills** — Trigger skill generation from your corrections and preferences, or preview candidates with dry run
- **save_rule** — Save a mandatory rule that surfaces in every session, bypasses all scoring and decay
- **list_rules** — List all mandatory rules for the current project and/or globally
- **delete_rule** — Delete a mandatory rule by ID
- **get_intent** — Read the project's Intent document, the owner's plain-English source of truth
- **set_intent** — Create or replace the project's Intent document (versioned; invariants are enforced by the guard)
- **guard_check** — Ask before acting: allow, ask or deny for any proposed action, against remembered rules and the intent
- **review_work** — Review finished work (description, output, message or transcript) against the intent
- **voice_check** — Check a draft against the person's own writing voice: drift findings, review verdict, passed
- **extract_principles** — Trigger Wisdom Engine to detect factual patterns across memory clusters

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "cogmemai-mcp": {
    "command": "npx",
    "args": ["-y","cogmemai-mcp"]
  }
}
```

## Documentation

## What hifriendbot/cogmemai-mcp does

hifriendbot/cogmemai-mcp provides a persistent memory layer for MCP-compatible AI clients. It is cloud-first and keeps memory outside the local project database, allowing knowledge to persist across sessions, devices, users, and teams. Memories can be scoped to a project or promoted to global scope.

The server covers both memory retrieval and memory maintenance. Agents can save facts such as architecture decisions or preferences, search them with natural-language semantic queries, and load ranked project context at the beginning of a session. They can also update or delete individual records, perform bounded bulk updates and deletions, and export or import memories as JSON.

## How it works

The MCP tools expose a workflow for building and using a long-term knowledge base:

- `preflight` performs a quick proactive recall before an agent makes a suggestion.
- `recall_memories` searches stored knowledge semantically, while `get_project_context` retrieves high-value context for a project.
- `extract_memories` derives facts from a conversation exchange, and `ingest_document` extracts memories from documents such as README files and API documentation.
- `save_session_summary` records what happened during a session for later continuation.
- `link_memories`, `get_memory_links`, and `get_memory_versions` support relationships and edit-history review.

Memory operations can be organized with types, categories, subjects, scopes, and tags. Analytics, stale-memory detection, feedback signals, and consolidation support ongoing cleanup and refinement. The service also includes persistent tasks, reminders, corrections, and file-change tracking for project continuity.

## Setup and configuration

The package is distributed as `cogmemai-mcp` through npm and requires Node.js 20 or newer. The hosted MCP endpoint is `https://hifriendbot.com/mcp/` and supports OAuth 2.1 for compatible clients, including sign-in with PKCE. API keys remain supported.

A recall character budget can be configured with `COGMEMAI_RECALL_MAX_CHARS`. When set, higher-ranked results are returned in full first and remaining results can be represented by marked snippets; a call-level `max_chars` value takes precedence. Passing `max_chars: 0` requests the full results.

The package also supports local mode. A free key registers the installation, while stored data remains on the local machine in that mode.

## Tools and capabilities

The exposed toolset includes:

- Semantic recall, proactive preflight checks, project-context loading, and usage statistics.
- Explicit saves, automatic extraction, document ingestion, consolidation, tagging, linking, version history, analytics, and feedback.
- Individual and bulk memory updates and deletion, plus JSON import and export.
- Session summaries, persistent task status and priority tracking, reminders, corrections, stale-memory review, and file-change inspection.
- Project-to-global memory promotion for knowledge that should apply beyond one project.

The tool annotations identify properties such as read-only, destructive, and idempotent behavior so clients can present or confirm operations appropriately.

## Limitations and notes

Recall quality depends on the memories available to the account and the selected scope. Bulk deletion is limited to 100 memories per operation, and bulk update is limited to 50. The recall character budget reduces returned context but allows truncated results to be expanded by ID.

The service is intended for persistent knowledge and workflow continuity. Destructive operations such as deletion and bulk deletion should be used with care; JSON export provides a way to back up or transfer the memory set.

_Full upstream README: https://allmcps.com/mcp/hifriendbot-cogmemai-mcp/readme_

