UM

upstash/memo

开发工具官方

本页由 AI 翻译,技术细节请以原文为准。 查看原文

108 stars 13 forks 质量 72 趋势 0MIT

upstash/memo 是从 https://github.com/upstash/memo. 导入的 MCP 服务器候选

概览

upstash/memo 是从 https://github.com/upstash/memo. 导入的 MCP 服务器候选

概述(AI 翻译)

一个MCP服务器,可以保存和检索AI对话上下文。无缝切换AI代理之间的对话。免费且无需账户。

它的作用

当你与人工智能代理合作并需要:

  • 切换代理 - Claude修不好你的bug?试试用光标或副驾驶,上下文密集
  • 稍后继续 - 保存进度,从中断处继续
  • 移动机器 - 从笔记本电脑开始,在桌面继续

只需说 memo set],代理就会保存结构化上下文(目标、已完成任务、待处理任务、决策、相关文件)。拿回一个简短的 ID,随处使用 memo get 来恢复上下文。

https://github.com/user-attachments/assets/f96798e1-2f8b-4de3-9431-b7bc52c58dfa

安装

克劳德·科德

开放代码

补充你的opencode.json:

Claude 桌面 / 光标

添加你的MCP配置:

用途

保存上下文

AI会总结对话并返回类似4tJ630XqhCV5gQelx98pu的ID。

恢复上下文

AI会加载之前的上下文,然后从你上次停下的地方继续。

拯救了什么

当你运行memo set时,代理会存储一个结构化快照,例如:

  • 目标
  • 完成任务
  • 待处理任务

本页由 AI 翻译,技术细节请以原文为准。

README

Memo MCP

An MCP server that saves and retrieves AI conversation context. Hand off conversations between AI agents seamlessly. Free and no account required.

What it does

When you’re working with an AI agent and need to:

  • Switch agents - Claude can’t fix your bug? Try Cursor or Copilot with dense context
  • Continue later - Save progress and pick up where you left off
  • Move machines - Start on laptop, continue on desktop

Just say memo set and the agent will save structured context (goal, completed tasks, pending tasks, decisions, relevant files). Get a short ID back, use memo get anywhere to restore context.

https://github.com/user-attachments/assets/f96798e1-2f8b-4de3-9431-b7bc52c58dfa

Installation

Claude Code

claude mcp add memo -- npx -y @upstash/memo

OpenCode

Add to your opencode.json:

{
  "mcp": {
    "memo": {
      "type": "local",
      "command": ["npx", "-y", "@upstash/memo"]
    }
  }
}

Claude Desktop / Cursor

Add to your MCP config:

{
  "mcpServers": {
    "memo": {
      "command": "npx",
      "args": ["-y", "@upstash/memo"]
    }
  }
}

Usage

Save context

memo set

The AI will summarize the conversation and return an ID like 4tJ630XqhCV5gQelx98pu.

Restore context

memo get 4tJ630XqhCV5gQelx98pu

The AI will load the previous context and continue where you left off.

What gets saved

When you run memo set, the agent stores a structured snapshot, for example:

  • Goal
  • Completed tasks
  • Pending tasks
  • Key decisions
  • Relevant files (paths only) or references

This keeps restored conversations focused and avoids reloading raw chat history.

Security

Your conversation context is stored in Upstash Redis with encryption enabled at rest and in transit. Data expires automatically after 24 hours (configurable via --ttl-mins).

If you prefer full control over your data, you can self-host both the API and storage using your own infrastructure. See the Self-hosting section below.

Self-hosting

The repo includes both the MCP server and the API. To self-host:

1. Set up environment

Create a .env file with your Upstash Redis credentials:

UPSTASH_REDIS_REST_URL=your-redis-url
UPSTASH_REDIS_REST_TOKEN=your-redis-token

2. Run locally

npx vercel dev

3. Deploy to Vercel

vercel

Set the same environment variables in your Vercel project settings.

4. Point MCP to your API

The MCP server uses https://memo-upstash.vercel.app by default. To use your own API, modify index.ts:

const GET_URL = "https://your-api.vercel.app/api/get";
const SET_URL = "https://your-api.vercel.app/api/set";

Options

--ttl-mins

Set expiration time in minutes. Default is 1440 (24 hours).

{
  "mcpServers": {
    "memo": {
      "command": "npx",
      "args": ["-y", "@upstash/memo", "--ttl-mins", "4320"]
    }
  }
}

License

MIT

在 GitHub 查看完整 README

安装

npx -y @upstash/memo
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "memo": { "command": "npx", "args": ["-y", "@upstash/memo"] } } }