# AndreLYL/memkin [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/AndreLYL/memkin  
**GitHub Stars:** 5  
**npm Downloads (last month):** 77  
**Views:** 12  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/andrelyl-memkin

## Description
Local-first personal memory for AI agents. Ingests Feishu/Lark chats and Claude Code / Codex sessions, distills them into a private entity knowledge graph (people, projects, decisions, tasks), and serves it to any agent over MCP — read and write. npx memkin

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

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

## Documentation

## What AndreLYL/memkin does

AndreLYL/memkin collects signals from Feishu/Lark and local AI coding-session files, converts them into structured memory, and stores the result in a knowledge graph on the user's machine. The graph covers entities such as people, projects, and tools, along with decisions, tasks, discoveries, knowledge, and relationships.

Agents access the graph through MCP and can both retrieve information and write updates. Responses can include references back to source messages, making it possible to trace a recalled detail to its originating record. The same data is also available through a command-line interface, REST API, Web UI, and Obsidian Markdown vault synchronization.

## How it works

Collection supports seven Feishu sources, including direct messages, group conversations, email, calendars, documents, tasks, and message search. Historical backfill and incremental collection are available. Local session ingestion covers Claude Code files under `~/.claude/projects/`, Codex data under `~/.codex/`, and Hermes/OpenClaw data under `~/.openclaw/agents/`.

Collected content passes through chunking, rule-based and LLM-based noise filtering, signal extraction, scoring, and privacy redaction. Extracted signals remain linked to their source records. Search combines PostgreSQL-compatible full-text search, including Chinese text support, with pgvector embeddings and reciprocal-rank fusion.

PGLite provides the default embedded storage engine, so the default setup has no external database dependency. Ollama can optionally provide local embeddings. A self-managed local PostgreSQL engine is also supported on macOS and Linux architectures listed by the project.

## Setup and configuration

Node.js 18 or newer is required. The installer can install the runtime when needed, install the `memkin` npm package globally, open the setup wizard for an LLM API key, register the background service, and configure detected AI clients.

For a temporary run, use:

```bash
npx memkin start
```

The setup flow starts automatically when configuration is absent. For a persistent installation, the project provides an installation script or the global npm package. `memkin up`, `memkin down`, and `memkin status` manage the background daemon; `memkin install` adds MCP configuration to supported clients, while `--dry-run` previews file changes. `memkin extract --source <name>` performs source extraction, and `memkin doctor` checks the environment.

MCP can use either stdio or Streamable HTTP. Optional Claude Code hooks can be installed with `memkin hooks install` to support automatic recall.

## Tools and capabilities

The MCP interface contains 36 tools, with 15 high-intent tools exposed by default. Examples include:

- `recall` combines historical conversations, meetings, and follow-up tasks with citations.
- `prep_for_person` builds communication context for a person and a stated objective.
- `daily_report` assembles activity from messages, email, meetings, and calendar data.
- `troubleshoot` returns ordered diagnostic steps from an applicable playbook.
- `get_session_context` summarizes project decisions, pending work, and recent timeline events.

Additional functions include entity linking, cross-platform identity resolution, memory consolidation across hot, warm, and cold tiers, dead-link repair, preference inference, and export/import through an Obsidian vault. The Web UI includes a dashboard, timeline, search, and force-directed graph view.

## Limitations and notes

The collection scope centers on Feishu/Lark and the supported local AI-session formats. The roadmap lists additional sources such as DingTalk, WeCom, WeChat records, and local documents. Memory editing in the Web UI is currently read-only, with richer editing and provenance views planned.

Privacy processing happens before storage and supports reversible and irreversible redaction. The default storage model is local, while LLM-based extraction still requires an LLM API key during setup. Supported operating systems are macOS, Linux, and Windows; the optional self-managed PostgreSQL engine has narrower platform support than the default PGLite mode.

_Full upstream README: https://allmcps.com/mcp/andrelyl-memkin/readme_

