mcp-assist-memory

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.

Category
Visit Server

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

  1. Import this repo into Replit. The included .replit makes the Run button work (python main.py).
  2. Add a Secret MCP_AUTH_TOKEN with a long random value (e.g. python -c "import secrets; print(secrets.token_urlsafe(32))").
  3. 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.
  4. ⚠️ Persistence caveat: DATA_DIR defaults to ./data inside 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. Point DATA_DIR at storage that survives redeploys (e.g. a mounted persistent disk on the Reserved VM), or accept that a redeploy resets memory. Do not commit data/ to git (it's .gitignored).
  5. 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 /mcp requires Authorization: Bearer $MCP_AUTH_TOKEN (constant-time compare); the only anonymous route is GET /.
  • 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-secret with a warning in the response.
  • Logs record request/tool metadata only (names, codes, durations, user-agents) — never tokens, query strings, or stored values.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured