MemoFS MCP Server

dev.memofs由 memofs.dev 发布官方发布者v1.3.0-beta.3更新于 Oct 24, 2026

Persistent memory and virtual filesystem MCP server for AI agents.

已验证Streamable HTTP可网页运行文件与存储知识与记忆开发者工具

概览

AI 生成的概览

MemoFS 为 AI 编程代理提供持久化项目记忆和虚拟文件系统,可跨会话读取、搜索和更新。

可以做什么
  • 通过 remember、recall 等记忆操作读取、搜索和更新项目记忆
  • 用锚点把记忆绑定到源文件,文件变动时显示过期标记
  • 记忆超过按类型设定的衰减期限时标记为未验证
  • 使用 AgentFS 会话工具,包括以结果、临时标记和原因结束会话
  • 通过暴露的资源访问记忆、图谱和会话数据
适用场景
适合希望编程代理在多次会话之间保留项目上下文,或把笔记关联到具体源文件并在其过时后得到提示的场景。也适合需要为不受信任的客户端提供只读记忆层的情况。
运行要求
可作为远程端点运行,也可通过 npx 或 npm 作为本地进程运行,需要 Node.js 22 或更高版本。本地模式需要项目根目录路径。混合模式需要 MemoFS Cloud API 密钥(通过 MEMOFS_API_KEY 环境变量或 Authorization bearer 头提供)以及云端地址。
安装前请注意
混合模式会把项目记忆发送到 MemoFS Cloud 并需要 API 密钥,请勿将密钥放入共享配置。该服务器可写入和更新记忆,面对不受信任的客户端时应启用只读标志。结束会话可能将记忆持久提升并清理工作区。

安装

在 SourceWeft 中

  1. 打开 控制台中的 MemoFS MCP Server,将其添加到工作区。
  2. 连接 Authorization token 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@memofs/mcp-server

[npm version]   [Status: Beta]   [npm downloads]   [CI]   [Docs]   [MIT License]

Model Context Protocol server for MemoFS agent integrations.

What is this?

The @memofs/mcp-server package allows AI coding agents (like Claude Desktop, Cursor, Zed, and OpenCode) to securely read, search, and update project memory using the Model Context Protocol (MCP). It wraps the core runtime and exposes 10 model-facing tools (4 memory verbs + 6 AgentFS session tools) and 9 resources for memory, graph, and session access.

Key capabilities:

  • Code anchoring — memofs.remember accepts an optional anchor parameter to bind memories to source files; memofs.recall surfaces stale flags when anchored files change.
  • Memory decay detection — recall results carry unverified flags when memories exceed their kind-specific decay floors.
  • Session outcomes — memofs_agent_session_complete accepts outcome, ephemeral, and reason parameters controlling a 5-row behavior matrix for durable memory promotion and workspace cleanup.

Installation

Most MCP clients invoke the server on demand via npx — no install required:

bash
npx -y @memofs/mcp-server --help

If you want to install the server as a dev dependency instead:

bash
npm install -D @memofs/mcp-server

Requires Node.js >= 22.

Or use directly via npx in your client's configuration:

bash
npx -y @memofs/mcp-server --help

Quick Start

You can configure your MCP client (e.g., Claude Desktop, Cursor, or any MCP client) to start the server via stdio.

MCP clients config

json
{  "mcpServers": {    "memofs": {      "command": "npx",      "args": [        "-y",        "@memofs/mcp-server",        "--runtime",        "local",        "--root",        "/absolute/path/to/project"      ]    }  }}

Configuration and Usage

The server supports two runtime modes (local, hybrid), cloud sync via --cloud-url and --api-key, and a strict --read-only flag to block mutating tools when used with untrusted clients.

For comprehensive setup instructions across all major AI tools, the full list of exposed tools and resources, and runtime mode options, please refer to the Full Documentation.

Contributing

See our central Contributing Guide and development scripts for details on formatting, linting, and testing within the monorepo.

License

MIT

来源:packages/mcp-server/README.md,提交 8ebe942

工具

0
SourceWeft 尚未读取此服务器的工具。

版本历史

1
  1. v1.3.0-beta.3最新Sep 16, 2026

评分

已满足适用检查项的 85%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分