AI Skill Hub 强烈推荐:basic-memory MCP工具 是一款优质的MCP工具。已获得 3.0k 颗 GitHub Star,AI 综合评分 8.2 分,在同类工具中表现稳健。如果你正在寻找可靠的MCP工具解决方案,这是一个值得深入了解的选择。
basic-memory MCP工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
basic-memory MCP工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/basicmachines-co/basic-memory
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"basic-memory-mcp--": {
"command": "npx",
"args": ["-y", "basic-memory"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 basic-memory MCP工具 执行以下任务... Claude: [自动调用 basic-memory MCP工具 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"basic-memory_mcp__": {
"command": "npx",
"args": ["-y", "basic-memory"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
- Automatic updates. Basic Memory keeps itself up to date for uv tool and Homebrew installs; bm update triggers a manual check. - Semantic vector search. Find notes by meaning, not just keywords. Hybrid full-text + vector ranking with FastEmbed embeddings, on SQLite or Postgres. - Optional search reranking. Rescore the strongest vector and hybrid candidates with a local FastEmbed cross-encoder or a LiteLLM-backed provider. - Schema system. Infer, validate, and diff the structure of your knowledge base with schema_infer, schema_validate, schema_diff. - Per-project cloud routing. Route individual projects through the cloud while others stay local, via API key (bm project set-cloud). - Smarter editing. edit_note append/prepend auto-creates notes when missing; write_note guards against accidental overwrites. - Richer search results. Matched chunk text is included so the LLM gets context, not just hits. - FastMCP 3.0 + tool annotations. Every tool ships with MCP behavior hints (readOnlyHint, destructiveHint, idempotentHint, openWorldHint) so agents can discover capabilities progressively at runtime instead of guessing or burning tokens. - CLI overhaul. --json output for scripting, workspace-aware commands, and an htop-inspired project dashboard.
Full CHANGELOG for v0.18 → v0.20.
Claude, Codex, or Cursor connected in 30 seconds. No Python, no JSON, no terminal. $15.00/mo locked in for life (12.50/mo yearly pricing). 7-day free trial — cancel any time before day 7 if it's not for you. Beta pricing — sign up now and your rate never goes up. OSS users: code BMFOSS takes another 20% off for 3 months.
Reranking adds a second relevance pass after vector or hybrid retrieval. It is disabled by default because it adds inference latency and, for the local provider, a first-run model download. Text, title, and permalink searches keep their existing ranking.
Enable the default local FastEmbed reranker:
export BASIC_MEMORY_SEMANTIC_SEARCH_ENABLED=true
export BASIC_MEMORY_RERANKER_ENABLED=true
The default model is jinaai/jina-reranker-v1-tiny-en. To use a hosted reranker through LiteLLM instead:
export BASIC_MEMORY_SEMANTIC_SEARCH_ENABLED=true
export BASIC_MEMORY_RERANKER_ENABLED=true
export BASIC_MEMORY_RERANKER_PROVIDER=litellm
export BASIC_MEMORY_RERANKER_MODEL=cohere/rerank-v3.5
export COHERE_API_KEY=...
The feature fails fast on invalid configuration and does not silently fall back to retrieval order when an enabled provider fails. See the semantic search guide for provider setup, all settings, tuning, pagination, and failure behavior.
```
basic-memory config list # all settings, effective values, env overrides basic-memory config set cli_output_style plain # validated through the config model basic-memory config unset cli_output_style # revert to default
| Variable | Default | Description |
|---|---|---|
BASIC_MEMORY_LOG_LEVEL | INFO | DEBUG / INFO / WARNING / ERROR |
BASIC_MEMORY_CLOUD_MODE | false | API logs to stdout with structured context |
BASIC_MEMORY_FORCE_LOCAL | false | Force local API routing |
BASIC_MEMORY_FORCE_CLOUD | false | Force cloud API routing |
BASIC_MEMORY_EXPLICIT_ROUTING | false | Mark route selection as explicit |
BASIC_MEMORY_ENV | dev | Set to test for test mode (stderr only) |
BASIC_MEMORY_NO_PROMOS | false | Disable cloud promos and telemetry |
BASIC_MEMORY_IMPORT_UPLOAD_MAX_BYTES | 104857600 | Max uploaded import size |
BASIC_MEMORY_LOG_LEVEL=DEBUG basic-memory reindex
tail -f ~/.basic-memory/basic-memory.log
```bash
This repository is also the canonical home for Basic Memory's host-native agent packages. The core Python package, Claude Code plugin, shared skills, Hermes plugin, and OpenClaw plugin all ship from the same source tree.
Maintainers can verify the whole consolidated surface from the repo root:
just package-check
Package-local justfiles are also available when working inside one host:
just package-check-claude-code
just package-check-skills
just package-check-hermes
just package-check-openclaw
The Claude Code plugin is the bridge between Claude's working memory and Basic Memory — session-start briefings, pre-compaction checkpoints, an opt-in capture output style, and /basic-memory:bm-setup · :remember · :share · :status.
Connect the Basic Memory MCP server first — see Connect your AI client. The plugin's hooks and skills call it, so it's a hard prerequisite. Then install the plugin:
bm install claude-code
That registers the marketplace and installs the plugin through Claude Code. Add --scope project to declare both in the repository's settings for a team, or --dry-run to see the underlying claude plugin commands without running them.
Source: plugins/claude-code.
| Cloud | Local | |
|---|---|---|
| **Setup time** | 30 seconds | 2 minutes (requires Python) |
| **Cost** | $15.00/mo, locked for life (7-day trial) | Free |
| **Storage** | We host (Tigris S3) | Your disk |
| **Cross-device sync** | Built in | Manual (Git, Syncthing, etc.) |
| **Mobile access** | Yes (web + app) | No |
| **Air-gapped** | No | Yes |
| **Your data stays yours** | Yes — export anytime | Yes — already there |
| **Source code** | AGPL-3.0 | AGPL-3.0 |
| **Snapshots & backups** | Built in | Roll your own |
Both paths use the same OSS engine and the same Markdown files. There's no lock-in either way — flip between them when your needs change.
Add to your User Settings (JSON):
{
"mcp": {
"servers": {
"basic-memory": {
"command": "uvx",
"args": ["--prerelease=allow", "basic-memory", "mcp"]
}
}
}
}
basic-memory 是一个旨在为 AI 代理提供持久化记忆能力的工具。它不仅能帮助 AI 记录和检索信息,还能通过结构化的方式管理知识库,确保 AI 在不同会话之间保持上下文的一致性,是构建智能化、长效记忆型 AI 应用的核心组件。
本项目具备强大的语义搜索能力,支持基于 FastEmbed 的混合全文与向量检索(Hybrid Search),并兼容 SQLite 或 Postgres 数据库。此外,它内置了 Schema 系统,能够自动推断、验证并对比知识库的结构变化。针对通过 uv tool 或 Homebrew 安装的用户,还提供了自动更新机制,通过 `bm update` 即可手动触发检查,确保工具始终处于最新状态。
除了传统的本地安装方式,您还可以通过云端版本快速体验。无需配置 Python 环境、处理 JSON 文件或操作终端,只需 30 秒即可将 Claude、Codex 或 Cursor 连接至 Basic Memory。目前提供 7 天免费试用,且针对 OSS 开源用户使用折扣码 `BMFOSS` 可享受 3 个月的额外 20% 优惠。Beta 阶段订阅可锁定终身价格。
用户可以通过环境变量对 Basic Memory 进行精细化配置。支持设置 `BASIC_MEMORY_LOG_LEVEL` 来控制日志级别(DEBUG/INFO/WARNING/ERROR),并可通过 `BASIC_MEMORY_CLOUD_MODE` 决定 API 日志是否输出到 stdout。此外,还提供了 `BASIC_MEMORY_FORCE_LOCAL` 和 `BASIC_MEMORY_FORCE_CLOUD` 参数,允许开发者强制指定本地或云端 API 的路由方式。
本项目提供核心的 CLI 工具集,方便开发者在终端直接进行管理。通过命令行接口,用户可以高效地执行记忆检索、知识库维护及状态查询等操作,将 Basic Memory 的能力无缝集成到现有的开发工作流中。
本仓库是 Basic Memory 官方原生 Agent 软件包的统一托管地,包含核心 Python 包、Claude Code plugin、Hermes plugin 及 OpenClaw plugin 等。其中,Claude Code plugin 作为连接 Claude 工作记忆与 Basic Memory 的桥梁,支持会话启动简报、预压缩检查点及特定的指令集(如 `:remember`、`:share`)。在使用前,请务必先连接 Basic Memory MCP server。
创新的对话记忆解决方案,MCP协议集成优雅,知识图谱设计先进。代码质量高、维护活跃,是LLM应用层的重要基础设施。
该工具使用 AGPL-3.0 协议,商用场景请仔细阅读协议条款,必要时咨询法律意见。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
⚠️ AGPL 3.0 — 最严格的 Copyleft,网络服务端使用也需开源,SaaS 使用受限。
总体来看,basic-memory MCP工具 是一款质量优秀的MCP工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | basic-memory |
| 原始描述 | 开源MCP工具:AI conversations that actually remember. Never re-explain your project to your A。⭐3.0k · Python |
| Topics | 记忆管理知识图谱对话持久化Claude集成LLM增强 |
| GitHub | https://github.com/basicmachines-co/basic-memory |
| License | AGPL-3.0 |
| 语言 | Python |
收录时间:2026-05-17 · 更新时间:2026-05-19 · License:AGPL-3.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端