mcp-assist-memory
An MCP server that provides a shared memory layer for Claude across claude.ai, Claude Code CLI, and Desktop, storing revisioned memory entries, session timelines, handoffs, and uploaded artifacts in SQLite.
README
mcp-assist-memory
A remote MCP server (Streamable HTTP) that gives Claude a shared memory layer
across surfaces — claude.ai web, Claude Code CLI, and Claude Code Desktop —
so work state survives surface switches. It stores append-only revisioned
memory entries, work-session timelines, cross-surface handoffs, and uploaded
artifacts (with automatic ingestion of debug-capture session ZIPs), all in
SQLite plus a filesystem blob store behind a single StorageBackend
interface. It is memory-only by design: no third-party credentials, no
outbound API calls.
Full contract: see SPEC.md.
Environment variables
| Variable | Required | Default | Meaning |
|---|---|---|---|
MCP_AUTH_TOKEN |
yes | — | Bearer token; server refuses to start without it |
DATA_DIR |
no | ./data |
SQLite DB + blob store location (must be persistent storage) |
MAX_UPLOAD_MB |
no | 25 |
Per-upload size cap |
MAX_TOTAL_STORAGE_MB |
no | 500 |
Global storage cap |
PORT |
no | 8000 |
HTTP port (Replit sets this automatically) |
LOG_LEVEL |
no | INFO |
Log verbosity (access, tool-call, and auth logs) |
Run locally
pip install -e ".[dev]"
MCP_AUTH_TOKEN=dev-token python main.py
# health: curl http://localhost:8000/ → {"status":"ok"}
pytest
Deploy on Replit
- Import this repo into Replit. The included
.replitmakes the Run button work (python main.py). - Add a Secret
MCP_AUTH_TOKENwith a long random value (e.g.python -c "import secrets; print(secrets.token_urlsafe(32))"). - Deploy as a Reserved VM (recommended): the server is stateful and long-running; Autoscale deployments can cold-start and run multiple instances, which breaks SQLite assumptions.
- ⚠️ Persistence caveat:
DATA_DIRdefaults to./datainside the workspace. The workspace filesystem persists in the editor but a deployment gets a fresh copy of the repo on each redeploy — anything written at runtime under the deployment's filesystem is lost on redeploy. PointDATA_DIRat storage that survives redeploys (e.g. a mounted persistent disk on the Reserved VM), or accept that a redeploy resets memory. Do not commitdata/to git (it's.gitignored). - Your endpoint is
https://<your-repl-url>/mcp.
Register the server on each client
Authentication works two ways with the same token: the
Authorization: Bearer <token> header (preferred), or ?token=<token> in
the URL for clients that can't send custom headers. The query-string token
is never written to this server's logs, but treat such URLs as secrets.
Claude Code CLI / Desktop:
claude mcp add -s user --transport http assist-memory \
https://<repl-url>/mcp \
-H "Authorization: Bearer <token>"
claude.ai web: Settings → Connectors → Add custom connector. The web
connector UI doesn't let you attach a custom Authorization header, so use
the query-parameter form as the connector URL:
https://<repl-url>/mcp?token=<token>
Cursor: Settings → MCP → Add new MCP server (or edit ~/.cursor/mcp.json):
{
"mcpServers": {
"assist-memory": {
"url": "https://<repl-url>/mcp",
"headers": { "Authorization": "Bearer <token>" }
}
}
}
Other agent tools (Windsurf, Cline, custom agents, anything
MCP-compatible): point the client at https://<repl-url>/mcp with transport
streamable-http. If the client supports custom headers, send
Authorization: Bearer <token>; if not, append ?token=<token> to the URL.
Tool overview
| Group | Tools |
|---|---|
| Memory | memory_save, memory_get, memory_list, memory_search, memory_history, memory_revert, memory_delete |
| Sessions | session_start, session_log, session_end, session_list, session_get |
| Handoff | handoff_save, handoff_load |
| Artifacts | artifact_upload, artifact_list, artifact_get (ranged, 1 MB/page) |
| Meta | server_status |
Memory is append-only: every write is a new revision, deletes are
tombstones, and memory_revert restores by copying — history is never lost.
Uploading a debug-capture ZIP (a session.json export with
schema_version "1.0") auto-creates the session record and stores its
agent-handoff/brief.md as a queryable memory entry
(debug/<session_id>/brief).
Security
- Every request to
/mcprequiresAuthorization: Bearer $MCP_AUTH_TOKEN(constant-time compare); the only anonymous route isGET /. - ZIP uploads are checked for zip-slip, absolute paths, symlinks, entry
count (≤ 2000), and decompression bombs (≤ 4 ×
MAX_UPLOAD_MB). - Values matching common credential patterns are stored but tagged
possible-secretwith a warning in the response. - Logs record request/tool metadata only (names, codes, durations, user-agents) — never tokens, query strings, or stored values.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。