Memkin logo

Memkin

by AndreLYL

Builds a local knowledge graph from Feishu/Lark and coding sessions, then exposes searchable memory to agents through MCP.

Install Memkin

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "andrelyl-memkin": {
      "command": "npx",
      "args": [
        "-y",
        "memkin"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio andrelyl-memkin -- npx -y memkin

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

npx -y memkin

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

AndreLYL/memkin turns Feishu/Lark data and Claude Code, Codex, or Hermes sessions into a local entity knowledge graph. It extracts people, projects, decisions, tasks, discoveries, and relationships, then makes them available for reading and writing through MCP over stdio or Streamable HTTP. Reach for it when agents need cross-session context, cited recall, personal CRM data, or project status without sending the stored graph to a hosted service. A Web UI, CLI, REST API, and Obsidian synchronization provide additional ways to inspect and manage the collected memory.

Use cases

  • Recall prior conversations with a colleague and their follow-up tasks
  • Generate a daily report from messages, meetings, email, and calendar entries
  • Prepare talking points before meeting a person
  • Review project decisions, tasks, and recent activity across sessions
  • Troubleshoot an issue using an ordered playbook

Key features

  • Local entity knowledge graph for people, projects, decisions, and tasks
  • Feishu/Lark collection with incremental updates and historical backfill
  • Claude Code, Codex, and Hermes/OpenClaw session ingestion
  • MCP access over stdio or Streamable HTTP
  • Hybrid full-text and vector retrieval with source citations
  • PGLite storage with optional Ollama embeddings

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

35/35 checks healthy over the last 117d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 13d ago via OSV.dev · memkin (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars5Stargazers on the source repository.
npm downloads77Package downloads in the last 30 days.
Last commit25d agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Directory activity12 viewsConfig copies, upvotes, and views on AllMCPs.

How Memkin works

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:

Terminal
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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Memkin

AndreLYL/memkin is an MCP server that connects Feishu/Lark data and Claude Code, Codex, or Hermes sessions to a local knowledge graph. Its main tools support recalling conversations, preparing for people, generating daily reports, troubleshooting issues, and retrieving project session context with source citations.

Install it with the provided shell installer or run `npx memkin start` for a temporary setup. The installer can install Node.js when needed, install the npm package, open the configuration wizard, register the background service, and write MCP settings for detected clients.

AndreLYL/memkin can ingest seven Feishu sources, including chats, email, calendars, documents, tasks, and message search, plus local Claude Code, Codex, and Hermes/OpenClaw sessions. It supports both incremental collection and historical backfill.

Yes, AndreLYL/memkin lists Cursor as a supported client. Run `memkin install` to detect installed clients or use the client-specific installation option, then restart the client after the MCP configuration is written.

Yes, the default PGLite storage keeps the knowledge graph on the local machine with no external database dependency. Privacy redaction runs before storage, and Ollama is available as an option for local embeddings.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMemkin AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/andrelyl-memkin?style=directory)](https://allmcps.com/mcp/andrelyl-memkin)
HTML Embed
<a href="https://allmcps.com/mcp/andrelyl-memkin"><img src="https://allmcps.com/api/badge/andrelyl-memkin?style=directory" alt="Memkin on AllMCPs" /></a>