Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计提醒

memories-mcpmemories MCP 搜索

Agent Skill

memories-mcp 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

745

周安装

32

GitHub Stars

20

下载量

261
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:memories-mcp(memories MCP 搜索)
来源仓库:https://github.com/webrenew/memories
仓库路径:skills/memories-mcp
安装命令:
npx skills add https://github.com/webrenew/memories --skill memories-mcp
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/webrenew/memories --skill memories-mcp

简介

memories-mcp 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。

  • 适用于关键词搜索、任务场景匹配或来源线索筛选等研究检索场景。
  • 通过 npx skills add 命令从 GitHub 仓库安装,需确认权限与维护状态。
  • 使用前应核实是否会触发联网、命令执行或文件读写操作。
  • 建议结合原始 README 和仓库内容进一步验证具体功能边界。

SKILL.md

memories-mcp

Connect AI agents to the memories.sh memory layer via MCP (Model Context Protocol).

The CLI is the primary interface for memories.sh — use memories generate to create native config files for each tool. The MCP server is a fallback for real-time access when static configs aren't enough. It's also the best choice for browser-based agents (v0, bolt.new, Lovable) where the CLI can't run.

Quick Start

# Local stdio transport (most reliable)
memories serve

# HTTP/SSE transport (for web clients like v0)
memories serve --sse --port 3030

# Cloud-hosted (no local install needed)
# Endpoint: https://memories.sh/api/mcp
# Header: Authorization: Bearer YOUR_KEY

Primary Tool: get_context

Always start with get_context — it returns active rules + relevant memories in one call:

get_context({ query: "authentication flow" })
→ ## Active Rules
→ - Always use TypeScript strict mode
→ ## Relevant to: "authentication flow"
→ 💡 DECISION (P) abc123: Chose JWT for stateless auth

Leave query empty to get just rules. Use limit to control memory count (default: 10).

For lifecycle-aware callers on local CLI MCP, pass compaction/session hints:

get_context({
  query: "checkout timeout",
  session_id: "sess_123",
  budget_tokens: 6000,
  turn_count: 6,
  turn_budget: 24,
  last_activity_at: "2026-02-26T23:00:00.000Z",
  inactivity_threshold_minutes: 45
})

These hints let the server trigger write-ahead checkpointing before destructive compaction.

When relationship extraction is enabled server-side, get_context may also return conflicts[] for contradiction-linked memories. Treat these as clarification prompts before taking irreversible actions.

Tool Selection Guide

GoalToolWhen
Start a taskget_contextBeginning of any task — gets rules + relevant context
Save knowledgeadd_memoryAfter learning something worth persisting
Resolve contradictory contextget_contextIf conflicts[] is present, ask a disambiguating question and persist the answer
Find specific infosearch_memoriesFull-text search with prefix matching
Browse recentlist_memoriesExplore what's stored, filter by type/tags
Get coding standardsget_rulesWhen you only need rules, not memories
Update a memoryedit_memoryFix content, change type, update tags
Remove a memoryforget_memorySoft-delete (recoverable)
Bulk remove memoriesbulk_forget_memoriesFiltered mass soft-delete by type, tags, age, pattern
Reclaim storagevacuum_memoriesPermanently purge all soft-deleted records
Start lifecycle session (local)start_sessionBegin explicit session tracking
Persist turn checkpoint (local)checkpoint_sessionSave meaningful event/checkpoint
End session (local)end_sessionClose or compact active session
Read/create session snapshot (local)snapshot_sessionCapture raw transcript snapshot
Run consolidation (local)consolidate_memoriesMerge duplicates and supersede stale truths
Add reminder (local)add_reminderCreate cron-based reminder in local CLI DB
Run reminders (local)run_due_remindersEmit due reminders and advance schedule
Manage reminders (local)list_reminders, enable_reminder, disable_reminder, delete_reminderInspect and control reminder lifecycle

Memory Types

When using add_memory, pick the right type:

  • rule — Coding standards, preferences, constraints (always returned by get_context)
  • decision — Architectural choices with rationale
  • fact — Project-specific knowledge (API limits, env vars, etc.)
  • note — General notes (default)
  • skill — Reusable agent workflows (use with category and metadata)

Scopes

  • project (default) — Scoped to current git repo, detected automatically
  • global — Applies everywhere, set global: true in add_memory
  • project override — Set project_id: "github.com/org/repo" in add_memory (or start_memory_stream) to force project scope when the MCP process is running outside that repo

Do not send both global: true and project_id in the same call.

Streaming Memory Tools

For collecting content from SSE sources (v0 artifacts, streaming responses):

  1. start_memory_stream({type?, tags?, global?, project_id?}) → returns stream_id
  2. append_memory_chunk({stream_id, chunk}) (repeat for each piece)
  3. finalize_memory_stream({stream_id}) → creates memory + triggers embedding
  4. cancel_memory_stream({stream_id}) → discard if aborted

Lifecycle Tools (Local CLI MCP)

These tools are currently available when running memories serve locally:

  1. start_session({title?, client?, user_id?, metadata?, global?, project_id?})
  2. checkpoint_session({session_id, content, role?, kind?, token_count?, turn_index?, is_meaningful?})
  3. end_session({session_id, status?})
  4. snapshot_session({session_id, source_trigger?, slug?, transcript_md?, message_count?, meaningful_only?})
  5. consolidate_memories({types?, include_global?, global_only?, project_id?, dry_run?, model?})

MCP Resources

For clients that support MCP resources:

URIContent
memories://rulesAll active rules as markdown
memories://recent20 most recent memories
memories://project/{id}Memories for a specific project

Transport Options

TransportUse CaseCommand
stdioClaude Code, Cursor, local toolsmemories serve
HTTP/SSEv0, web-based agents, remotememories serve --sse --port 3030
CloudNo local install, cross-devicehttps://memories.sh/api/mcp + Authorization: Bearer KEY

Local-only tools: lifecycle + reminders + streaming. Hosted MCP focuses on tenant-routed core memory tools.

Reference Files

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.85%
按下载量换算88

Claude

30.49%
按下载量换算80

Cursor

20.52%
按下载量换算54

Gemini CLI

10.14%
按下载量换算26

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills