1. Conduid
  2. RAG
  3. Pmb
MCP server · RAG

Pmb

Local-first persistent memory for AI coding agents (Claude Code, Cursor, Codex) over MCP. Decisions, lessons and facts live in one SQLite file on your disk. Offline, multilingual.

76Good

Scored 20 hours ago · breakdown

About Pmb

Pmb is an MCP server published by oleksiijko in the RAG category: local-first persistent memory for AI coding agents (Claude Code, Cursor, Codex) over MCP. Decisions, lessons and facts live in one SQLite file on your disk. Offline, multilingual. Conduid read 69 tools from its source: apply_daily_decay, arc_detail, auto_resolve_conflicts, chain_current, chain_history, clear_predictive_cache and 63 more. It is published to PyPI as pmb-ai and runs with uvx.

The repository has 294 stars and 34 forks, is licensed Apache-2.0, and its last commit was on 11 Nov 2026. The latest release is v1.2.3 (16 Aug 2026). It follows v1.2.2 (30 Jun 2026), and the 5 most recent releases go back to v1.0.0 (18 Jun 2026). It passes 3 of the 4 static checks Conduid ran on the repository; it does not pass Dependencies pinned. Its topics include ai-memory, bm25, knowledge-graph, lancedb, local-first and memory.

Install

uvx
uvx pmb-ai
pip
pip install pmb-ai
From source
git clone https://github.com/oleksiijko/pmb

Tools (69)

apply_daily_decayApply forgetting curve to all events.
ParameterTypeDescription
days_sincenumber
arc_detailGet full detail of one arc: title, summary, member events.
ParameterTypeDescription
arc_id *integer
auto_resolve_conflictsAuto-archive obvious 'supersede' conflicts.
ParameterTypeDescription
dry_runboolean
chain_currentLatest milestone of a chain - the 'current state'.
ParameterTypeDescription
chain_name *string
chain_historyFull chronological history of a state-chain.
ParameterTypeDescription
chain_name *string
limitinteger
clear_predictive_cacheClear all entries from the predictive cache.
cluster_into_arcsPMB v2 Phase 3: LLM groups events into narrative arcs (story
ParameterTypeDescription
backendstring
limitinteger
cold_statsGet info about cold storage (archived events database).
compact_storageCompact storage: move old archived events to cold storage and VACUUM.
ParameterTypeDescription
age_daysinteger
dry_runboolean
consolidate_recentLLM-based sleep-stage consolidation.
ParameterTypeDescription
dry_runboolean
max_clustersinteger
min_sizeinteger
since_daysnumber
thresholdnumber
dedupe_list_pendingList borderline duplicate pairs awaiting verdict (L2.5).
ParameterTypeDescription
limitinteger
dedupe_run_pendingDrain the borderline pair queue via LLM verify.
ParameterTypeDescription
backendstring
limitinteger
dedupe_sweepImprovement U: one-shot dedup over all active events.
ParameterTypeDescription
thresholdnumber
typesarray
dedupe_undoRestore events archived by previous dedup runs. Reversible.
detect_conflictsFind conflicting facts between different timestamps.
extract_factsImprovement D (mem0-style): LLM extracts atomic facts from recent
ParameterTypeDescription
backendstring
limitinteger
feedback_summaryAggregate user recall feedback. Returns useful_rate and top
file_correlationsFind files that are often modified together with the given file.
ParameterTypeDescription
file_path *string
top_kinteger
file_historyGet commit history for a specific file.
ParameterTypeDescription
file_path *string
find_lessonsPull procedural lessons (project rules / gotchas) relevant to a
ParameterTypeDescription
limitintegermax lessons to return (default 5)
projectstringoptional project name; explicit lessons from other projects are excluded while generic cross-project rules remain
querystringtopic to filter by (empty = recent lessons across all projects)
forgetArchive a memory. Not deleted, can be restored.
ParameterTypeDescription
ulid *string
get_subfactsReturn all subfacts linked to a parent event (Improvement P).
ParameterTypeDescription
parent_ulid *string
graph_neighborsCo-occurrence neighbors of an entity. Useful for 'what relates to X'.
ParameterTypeDescription
kindstring
name *string
top_kinteger
graph_statsCounts of entities and edges in this workspace's association graph.
graph_top_entitiesMost-mentioned entities. kind = 'file' | 'tech' | 'concept' or None.
ParameterTypeDescription
kindstring
limitinteger
health_trendGet trend of self-test accuracy over time.
index_pdf📄 Extract text from a PDF and persist it as searchable memory.
ParameterTypeDescription
forceboolean
importancenumber
path *string
index_project📂 Index a code project's structure - per-file symbols, imports,
ParameterTypeDescription
forceboolean
max_filesinteger
pathstring
lesson_impact📊 Earned Memory: which lessons actually HELP outcomes (not just which
ParameterTypeDescription
window_daysinteger
list_arcsList narrative arcs in the current workspace.
ParameterTypeDescription
limitinteger
statusstring
list_goalsList goals (optionally filter by status).
ParameterTypeDescription
limitinteger
statusstring
list_recentList the most recent active events in the workspace.
ParameterTypeDescription
event_typestring
limitinteger
mark_lesson_followedConfirm whether a previously surfaced lesson actually changed
ParameterTypeDescription
applicablebooleanFalse if the lesson was unrelated to this task
followedbooleanTrue if you followed the lesson, False if ignored
notestringoptional one-line explanation (esp. useful for ignored)
surface_id *integerthe `surface_id` field returned with the lesson
overviewGet a structured OVERVIEW of everything memory knows about a topic.
ParameterTypeDescription
max_eventsinteger
topic *string
pinPin a memory: max importance, never auto-archived.
ParameterTypeDescription
ulid *string
precompute_predictive_cacheImprovement F (PMB-unique): during sleep, LLM predicts likely
ParameterTypeDescription
backendstring
n_questionsinteger
prepare⭐⭐⭐ Call this ONCE at the START of any substantive user task.
ParameterTypeDescription
message *string
project_overview⭐ Use at the START of any project work - returns the FULL project
ParameterTypeDescription
name *stringcase-insensitive substring match against entity names. Picks the highest-mention entity that matches.
project_structure🗺️ Pull a project's STRUCTURE straight from memory - no filesystem scan.
ParameterTypeDescription
max_filesintegercap on files returned (default 400).
name *stringproject name or a path substring (case-insensitive).
recallSearch PMB long-term memory. CALL THIS FIRST when user asks about:
ParameterTypeDescription
projectstring
query *string
top_kinteger
recall_deepDEEP recall - explicitly opt into the slow, thorough path.
ParameterTypeDescription
query *string
top_kinteger
recall_exploration💡 BEFORE re-exploring the codebase, check if a PAST session already
ParameterTypeDescription
intent *string
projectstring
top_kinteger
recall_smartAuto-escalating recall, but FAST and deadline-bounded. Starts with
ParameterTypeDescription
confidence_thresholdnumber
query *string
top_kinteger
recent_activityImprovement Q: working memory dump - instant, no search.
ParameterTypeDescription
actorstring
kindstring
limitinteger
minutesnumber
record_activityImprovement Q: log a working-memory activity.
ParameterTypeDescription
actorstring
importancenumber
kindstring
summary *string
record_batch⚡ PREFERRED for ANY message with multiple facts. Stores N atomic
ParameterTypeDescription
items *array
record_codeRecord code content. For Python, AST entities (functions, classes,
ParameterTypeDescription
content *string
languagestring
record_exploration💡 AFTER researching something in the codebase (reading/grepping
ParameterTypeDescription
conclusion *stringwhat you concluded, concise and self-contained.
files *arraythe source files the conclusion rests on (relative or abs).
intent *stringthe question/goal you researched ("where is auth handled").
projectstringoptional project path (default: cwd).
record_factSTORE a fact for long-term recall. CALL THIS PROACTIVELY whenever
ParameterTypeDescription
fact *string
importancenumber
record_fact_treeImprovement P: store a main fact + multiple linked sub-facts in ONE call.
ParameterTypeDescription
importancenumber
main *string
subfacts *array
record_goalImprovement R: create a goal/intent (12-th semantic layer).
ParameterTypeDescription
due_atnumber
importancenumber
parent_goal_ulidstring
statusstring
title *string
record_imageRecord an image (screenshot/diagram) in memory (Improvement J).
ParameterTypeDescription
descriptionstring
encode_clipboolean
importancenumber
path *string
record_keyed_fact⭐ Use for SINGULAR personal attributes that CHANGE over time.
ParameterTypeDescription
attribute *stringthe attribute name ('city', 'employer', 'phone', 'name'). Lowercased internally.
importancenumber0..1, default 0.85 (high because personal attrs are usually significant).
subject *stringwho/what the fact is about ('user', 'user_dog', 'company_xyz', etc.). Lowercased internally; spaces ok.
value *stringthe current value as a short string ('Warsaw').
record_milestoneImprovement R: record a milestone in a named state-chain.
ParameterTypeDescription
chain_name *string
importancenumber
stateobject
title *string
triggered_by_ulidstring
record_recall_feedbackRecord real recall feedback for an event.
ParameterTypeDescription
expected_ulidstring
querystring
ulid *string
verdict *string
reflect_batchPMB v2 sleep operation: LLM reflects on recent un-reflected events.
ParameterTypeDescription
backendstring
limitinteger
rememberStore a Q/A interaction in memory.
ParameterTypeDescription
importancenumber0..1 importance score (default 0.5)
query *stringthe user query / question
response *stringthe agent response / answer
session_idstringoptional session identifier for grouping
run_self_testQuantify memory health: system asks itself questions from old memories.
ParameterTypeDescription
apply_adaptiveboolean
n_samplesinteger
search_images_by_textCross-modal image search. Encodes the query via CLIP text encoder
ParameterTypeDescription
query *string
top_kinteger
session_briefRe-orient in a long session: a digest of what was decided / done /
ParameterTypeDescription
minutesinteger
session_currentGet current active session info (or None).
session_endEnd the current session. Returns the closed session's info.
session_startStart a new memory session. Used to group related events.
ParameterTypeDescription
namestring
session_timelineChronological dump of CURRENT session events.
ParameterTypeDescription
limitinteger
statsGet workspace and memory statistics.
sync_gitCapture recent git commits into memory.
ParameterTypeDescription
since_timestampnumber
update_goalUpdate goal status / progress. Creates a goal_update event so
ParameterTypeDescription
goal_ulid *string
notestring
progressinteger
statusstring
what_just_happenedQuick: last N events of any type from current session.
ParameterTypeDescription
ninteger
workspace_infoIdentify the current PMB workspace.

Security checks

  • ✓README presentThe repository's README runs to about 3.0K words.
  • ✓License declaredThe repository declares the Apache-2.0 license.
  • ✓Tests presentA test suite exists in the repository.
  • !Dependencies pinnedNo lockfile. Installs can pull different code over time.

2 checks have not been run yet.

Releases

v1.2.3v1.2.3: Fill small errors on stability of system · 16 Aug 2026What's Changed Openapi support by @jbendotnet in https://github.com/oleksiijko/pmb/pull/68 fix(mcp): flush buffered perf rows when the server shuts down by @motojojoe in https://github.com/oleksiijko/pmb/pull/69 fix(mcp): bound the…
v1.2.2v1.2.2 · 30 Jun 2026v1.2.2 What's Changed Fixed Fixed the WebUI dashboard startup when the default port is already in use. pmb dashboard now automatically skips busy default port 8765 and uses the next available port. Added a clearer error message when an…
v1.2.1PMB v1.2.1 - Security & CI-stability pass · 28 Jun 2026Hardening release on top of v1.2.0: closes all CodeQL security findings, makes CI deterministic, and ships local dev tooling so security/test failures are caught before they reach CI. No breaking changes. 🔒 Security (CodeQL…
v1.1.0v1.1.0: leaner MCP tools, honest Earned Memory, new docs · 26 Jun 2026What's new in 1.1.0 Leaner MCP surface — the default tool profile is now `minimal` (core 10 tools), so agents aren't overwhelmed. `lean` / `default` / `full` still available via `PMB_TOOL_PROFILE`. Earned Memory, measured honestly — every…
v1.0.0PMB 1.0.0 - Stability contract, daemon hardening, observability · 18 Jun 2026PMB 1.0.0 Local-first persistent memory for AI coding agents, over MCP. PMB gives your agent durable memory that lives on your own disk: no account, no API keys, and nothing leaves your machine by default. 1.0 turns that into a promise,…

README

The repository's README runs to about 3.0K words, fetched 12 days ago. The original in the repository is authoritative.

Read full README
Questions

About Pmb

How do I install Pmb?

Run uvx pmb-ai, then add the server to your MCP client's configuration.

Is Pmb safe to use with an AI agent?

Its trust score is 76 out of 100 (good). It passes 3 of the 4 static checks Conduid ran on the repository; it does not pass Dependencies pinned. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Pmb still maintained?

Yes — the latest release is v1.2.3 (16 Aug 2026), and the last commit was 20 days ago. The repository has 294 stars and 1 open issues.

What tools does Pmb provide?

Conduid read 69 tools from the source: apply_daily_decay, arc_detail, auto_resolve_conflicts, chain_current, chain_history, clear_predictive_cache, cluster_into_arcs, cold_stats and 61 more. 58 of them publish their parameters, listed under Tools above.

What license is Pmb released under?

The repository declares the Apache-2.0 license. That applies to the latest release, v1.2.3, as well.