Sandbox
@roampal-ai/roampal

Local memory MCP server for Claude Desktop and Cursor

Roampal gives agent tools a private memory layer for chats, preferences, and outcomes. It uses a multi-tier memory system, semantic retrieval, and feedback-based scoring so the stored context improves over time.

127 stars20 forksPythonUpdated 4mo ago
Who it's for

Builders who want Claude Desktop, Cursor, or another MCP tool to remember what happened in earlier chats.

What it delivers

You can stop re-explaining yourself and let your agent reuse remembered context, preferences, and outcomes.

What it does

Outcome-based memory

Scores replies and memories so good results are promoted and bad ones can be removed or downranked.

Multi-tier storage

Separates Books, Working memory, History, and permanent Memory Bank data so different kinds of context live at different timescales.

MCP tools

Exposes tools like `search_memory`, `add_to_memory_bank`, `update_memory`, `archive_memory`, `get_context_insights`, `record_response`, and `score_memories`.

Local-only operation

Keeps data on your machine and works offline after model download.

Document search

Lets you upload `.txt` and `.md` files as searchable reference material.

Model support

Works with tool-calling models through Ollama or LM Studio.

How to get it

  1. 1Connect Roampal to Claude Desktop, Cursor, and other MCP-compatible tools.
    Settings → Integrations → Connect → Restart your tool

README

Roampal

Status Python 3.10+ Built with Tauri Multi-Provider License

Memory that learns what works. So you can do more of it.

Say it worked. Say it didn't. The AI remembers.

Stop re-explaining yourself every conversation. Roampal remembers outcomes, learns from feedback, and gets smarter over time—all 100% private and local.

Roampal - AI Chat with Persistent Memory

85.8% non-adversarial on LoCoMo (1,986 questions). +23 pts over raw ingestion. Absorbs 1,135 poison memories losing only 4 pts. (Paper)

GitHub Stars


Benchmark Results

LoCoMo dataset (1,986 questions, 5 categories, corrected ground truths). Evaluated with roampal-labs. Dual-graded by local 20B + MiniMax M2.7.

MetricResult
Non-adversarial accuracy (MiniMax-regraded)85.8%
Overall (all 5 categories)76.6%
vs raw ingestion baseline+23 pts (76.6% vs 53.0%, p<0.0001)
Poison resilience-4.2 pts after 1,135 adversarial memories
No-memory baseline6.0% (model has zero LoCoMo knowledge)
Architecture vs modelArchitecture: +23 pts. Model swap (GPT-4o-mini): 1.5-2.5 pts
  • System learns through natural conversation, not transcript ingestion
  • Absorbs 1,135 poison memories with spoofed trust signals, retaining 72.4% accuracy
  • Wilson scoring hurts retrieval at every stage (p<0.001) — removed from ranking
Component-level retrieval ablation
ConfigHit@1 CleanHit@1 Poisonp-value
TagCascade + cosine27.3%29.0%baseline
Overlap + cosine25.8%28.0%p=0.0003
Pure CE25.4%28.4%
TagCascade + Wilson23.0%25.0%p<0.0001
  • Cross-encoder: +17.8 Hit@1 over cosine (p<0.0001)
  • Tag routing (two-lane): +6.1 Hit@1 clean, +7.5 poison (p<0.0001)
  • Wilson: -4.3 Hit@1 in every configuration
  • Nursery slot: zero benefit (p=1.0)

Full methodology in roampal-labs


Quick Start

  1. Download from roampal.ai and extract
  2. Install Ollama or LM Studio
  3. Right-click Roampal.exeRun as administrator
  4. Download a model in the UI → Start chatting!

Your AI starts learning about you immediately.


Table of Contents


Key Features

Memory That Learns

  • Outcome tracking: Scores every result (+0.2 worked, -0.3 failed)
  • Smart promotion: Good advice becomes permanent, bad advice auto-deletes
  • Cross-conversation: Recalls from ALL past chats

Your Knowledge Base

  • Memory Bank: Permanent storage of preferences, identity, goals
  • Books: Upload .txt/.md docs as searchable reference
  • Pattern recognition: Detects what works across conversations

Privacy First

  • 100% local: All data on your machine
  • Works offline: No internet after model download
  • No telemetry: Your data never leaves your computer

MCP Integration

Connect Roampal to Claude Desktop, Cursor, and other MCP-compatible tools.

Settings → Integrations → Connect → Restart your tool

7 tools available: search_memory, add_to_memory_bank, update_memory, archive_memory, get_context_insights, record_response, score_memories

Full MCP documentation →


Architecture

┌─────────────────────────────────────────────────────────┐
│                    5-TIER MEMORY                        │
├─────────────┬─────────────┬─────────────┬──────────────┤
│   Books     │   Working   │   History   │   Patterns   │
│ (permanent) │   (24h)     │  (30 days)  │  (permanent) │
├─────────────┴─────────────┴─────────────┴──────────────┤
│                    Memory Bank                          │
│            (permanent user identity/prefs)              │
└─────────────────────────────────────────────────────────┘

Core Technology:

  • TagCascade Retrieval: Tag-routed search + cross-encoder reranking (ONNX)
  • Outcome-Based Learning: Memories adapt based on feedback
  • Sidecar LLM: Background model summarizes exchanges, extracts facts and tags

Architecture deep-dive →


Supported Models

Works with any tool-calling model via Ollama or LM Studio:

ModelProviderParameters
Llama 3.xMeta3B - 70B
Qwen 2.5Alibaba3B - 72B
Mistral/MixtralMistral AI7B - 8x22B
GPT-OSSOpenAI (Apache 2.0)20B - 120B

Documentation

DocumentDescription
Architecture5-tier memory, retrieval pipeline, technical deep-dive
BenchmarksLoCoMo evaluation, TagCascade results
Release NotesLatest (v0.3.3): multimodal image input, dynamic capability + context detection, ChromaDB phantom-handling closing issue #8, atomic config writes, Harmony token cleanup

Important Notices

AI Safety: LLMs may generate incorrect information. Always verify critical information. Don't rely on AI for medical, legal, or financial advice.

Model Licenses: Downloaded models (Llama, Qwen, etc.) have their own licenses. Review before commercial use.


Support


Pricing

Free & open-source (Apache 2.0 License)

  • Build from source → completely free
  • Pre-built executable: $19.99 one-time (saves hours of setup)
  • Zero telemetry, full data ownership

Made with love for people who want AI that actually remembers

Files in the repo

Repository payload11 top-level entries
  • .github
  • dev
  • screenshots
  • ui-implementation
  • .env.example
  • .gitignore
  • BUILD.md
  • CONTRIBUTING.md
  • LICENSE
  • README.md
  • THIRD_PARTY_LICENSES.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More connectors

High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 158 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.

43k

Universal provider proxy for OpenAI Codex & Claude Code — use any LLM (Claude, Gemini, Grok, DeepSeek, Ollama…) with Codex CLI, App, SDK, and Claude Code

14k
okf-memory/
okf-agent-memory

Git-native persistent memory for AI coding agents. Implements Google OKF v0.2 with sub-300µs in-memory BM25 search, embedded MCP server, and progressive disclosure. Slashes token bloat by 80% with zero external databases or dependencies. Built in pure Go.

547
tirth8205/
code-review-graph

Local-first code intelligence graph for MCP and CLI. Builds a persistent map of your codebase so AI coding tools read only what matters, with benchmarked context reductions on reviews and large-repo workflows.

31k
2akouwu/
reverify

Stop your AI from making things up — it proposes, deterministic tools decide, every claim checked against ground truth with evidence. Grounded facts and context survive resets. Reverse engineering is the proving ground. MCP server + CLI.

1.1k
t8y2/dbxConnectors

20 MB lightweight cross-platform database client for 90+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 90+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP Server。

19k