NFTS Memory MCP
Self-hosted SQLite-backed memory server for Claude that syncs memories across claude.ai, Claude Desktop, and Claude Code via a single MCP server with OAuth.
README
🧠 NFTS Memory MCP
One shared memory for claude.ai, Claude Desktop, and Claude Code — on any computer. Save something in one, it's there in all of them.
Self-hosted, SQLite-backed, zero recurring cost. Runs as one systemd service on your MCP Hub, same pattern as your other custom MCP servers.
How it works
┌─────────────────────────┐
claude.ai ───────────▶│ │
(connector, OAuth) │ nfts-memory-mcp │
│ ───────────────── │
Claude Desktop ───────▶│ Express + MCP SDK │
(MCP config, OAuth) │ SQLite + FTS5 search │──▶ data/memory.db
│ Built-in OAuth server │
Claude Code ──────────▶│ Web dashboard │
(MCP config, OAuth) │ │
└─────────────────────────┘
- One process, one database. Every client talks to the same SQLite file over HTTP — there's nothing to sync, because there's only ever one copy.
- 9 MCP tools let Claude save, search, update, and organize memories:
memory_save,memory_search,memory_recent,memory_context,memory_update,memory_archive,memory_delete,memory_list_projects,memory_stats. - Full-text search via SQLite FTS5 (porter stemming, ranked results, snippet highlighting) — fast even at tens of thousands of memories.
- Built-in OAuth 2.0 server (with PKCE + dynamic client registration) so claude.ai, Desktop and Code can each connect as their own authorized client — this is what makes it usable as a claude.ai connector, not just a local tool.
- Web dashboard at your domain root — browse, search, manually add/edit/archive memories, see stats, and manage which apps are connected.
- Projects & categories. Every memory is tagged with a project (
nfts,aural,dantectl,general, ...) and a category (fact,decision,preference,todo,config,contact,idea), so Claude can filter context to what's relevant.
Deploy
On your MCP Hub (or any box with Node 18+):
# 1. Copy this whole folder to the server, then:
cd nfts-memory-mcp
sudo bash deploy/deploy.sh
The script installs a nftsmemory system user, copies files to /opt/nfts-memory-mcp, installs dependencies, and sets up the systemd service. It prints the remaining manual steps (edit .env, nginx + certbot, start the service) — takes about 5 minutes.
Suggested subdomain: memory.nftech-apps.net, following your existing mqtt. / mcp. pattern.
Once it's running:
curl https://memory.nftech-apps.net/healthz
# {"ok":true,"service":"nfts-memory-mcp"}
Verifying the full flow
scripts/verify.sh runs an end-to-end test against a running server (client registration → OAuth login → token → save/search a memory). Point it at your server with BASE_URL if testing remotely, otherwise it defaults to localhost.
Connect each client
All three go through the same OAuth flow — sign in with the ADMIN_USER / ADMIN_PASSWORD you set in .env.
claude.ai (web / mobile)
Settings → Connectors → Add connector → paste https://memory.nftech-apps.net/mcp → Connect → sign in. Done — every conversation on any device now has access.
Claude Desktop
Settings → Connectors → Add custom connector → same URL, same login. (Desktop already shares claude.ai's account memory — this adds Code-style tool access on top, so Desktop can search and save memories explicitly, not just passively recall.)
Claude Code (CLI)
claude mcp add --transport http nfts-memory https://memory.nftech-apps.net/mcp
It'll open a browser for the same OAuth login. After that, every claude session on every machine you run this on shares the same memory.
Check Connections in the web dashboard afterwards — you'll see all three listed with their own token, so you can revoke any one independently (e.g. if you get a new laptop and want to kill the old token).
Using it day to day
You don't need to do anything special — just talk normally:
- "Remember that the Xero email endpoint is POST /Invoices/{id}/Email" → Claude calls
memory_save - "What did we decide about the WiFi upgrade proposal pricing?" → Claude calls
memory_search - "Catch me up on dantectl" → Claude calls
memory_contextwithproject="dantectl"
Claude decides when to save/search based on the conversation — you can also be explicit ("save this to memory", "search memory for...") if you want to force it.
The dashboard (https://memory.nftech-apps.net/) is for you: browsing everything, manually adding a memory, archiving stale ones, and seeing which apps are connected.
Maintenance
Backups — it's one SQLite file. Add to your existing weekly Vultr snapshot routine, or simply:
sqlite3 /opt/nfts-memory-mcp/data/memory.db ".backup /path/to/backup-$(date +%F).db"
Logs:
journalctl -u nfts-memory-mcp -f
Updating code: re-run deploy/deploy.sh (it won't touch your .env or data/), then systemctl restart nfts-memory-mcp.
Revoking a lost/compromised device: dashboard → Connections → Revoke next to that client's token.
Why this instead of claude-mem
claude-mem only hooks into Claude Code's session lifecycle — it can't reach claude.ai or Desktop, and it doesn't sync across machines on its own. This is a plain MCP server, so it works identically everywhere Claude can connect to an MCP server, self-hosted on infrastructure you already run, with no per-seat or per-token SaaS cost.
Tech stack
Node.js, Express, @modelcontextprotocol/sdk (Streamable HTTP transport), better-sqlite3 (WAL mode + FTS5), zero build step — it's plain JS, matching the rest of your MCP Hub services.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。