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

@wenpenghan/memory-mcp

v1.0.0

Published

MCP plugin for intelligent conversation memory, solution extraction, and context injection

Readme

@wenpenghan/memory-mcp

智能对话记忆 MCP 插件 —— 自动保存对话、提炼摘要、提取可复用方案,让 AI 越用越聪明。

功能

  • 智能对话记忆:保存对话,支持 AI 摘要、标签分类、重要性评分
  • 解决方案提取:保存可复用代码片段/技术模式,按语言/标签检索
  • 智能上下文注入:基于当前问题自动检索最相关历史,零打断续上手
  • 三层智能搜索:精确匹配 + 标签过滤 + Fuse.js 语义模糊匹配
  • 数据生命线:导入/导出、备份/恢复、统计监控、健康检查

快速接入

在 Claude Desktop / Cursor 的 mcp.json 中添加:

{
  "mcpServers": {
    "memory-mcp": {
      "command": "npx",
      "args": ["@wenpenghan/memory-mcp"]
    }
  }
}

数据默认存储在 ~/.memory-mcp/memory.db,可通过环境变量自定义:

{
  "mcpServers": {
    "memory-mcp": {
      "command": "npx",
      "args": ["@wenpenghan/memory-mcp"],
      "env": {
        "MEMORY_MCP_DB_PATH": "/your/custom/path/memory.db"
      }
    }
  }
}

工具列表(共 15 个)

对话记忆

| 工具 | 描述 | |------|------| | save_conversation | 保存对话,支持摘要/标签/分类/重要性 | | get_conversation | 按 ID 获取对话 | | list_conversations | 列出对话,支持过滤和分页 | | update_conversation | 更新对话信息 | | delete_conversation | 删除对话 |

解决方案

| 工具 | 描述 | |------|------| | save_solution | 保存可复用解决方案/代码片段 | | list_solutions | 列出方案,支持语言/标签过滤 | | delete_solution | 删除方案 |

搜索与上下文

| 工具 | 描述 | |------|------| | search_memory | 三层智能搜索(精确+标签+语义) | | get_relevant_context | 自动注入最相关历史上下文 |

数据管理

| 工具 | 描述 | |------|------| | export_data | 导出全部数据为 JSON | | import_data | 从 JSON 导入数据(merge/replace) | | backup_database | 备份数据库 | | get_stats | 统计信息 | | health_check | 数据库健康检查 |

License

MIT