CPersona logo

CPersona

Local SQLite memory for AI agents with hybrid search, traceable recall, profiles, associations, and backup tools.

Install CPersona

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "cpersona": {
      "command": "uvx",
      "args": [
        "--from",
        "cembedding[onnx]",
        "cembedding-download-model"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

CPersona MCP server gives AI agents persistent memory in a local SQLite database shared across sessions, projects, and agents. It combines vector, FTS5, and keyword retrieval, with reconstruct returning quoted evidence rather than generated summaries. Agents can store, recall, update, lock, archive, export, import, and merge data, while operators can inspect health, tune recall precision, and view the store through a dashboard. Reach for it when an agent needs durable, inspectable memory without a cloud database or an embedded generative model.

Use cases

  • Store decisions and project facts across coding-agent sessions
  • Reconstruct answers from quoted memory evidence
  • Search exact identifiers alongside semantic matches
  • Traverse explicitly declared entities and relationships
  • Export, import, or merge agent memory data

Key features

  • Single-file SQLite persistence
  • Vector, FTS5, and keyword retrieval
  • Evidence-backed reconstruct responses
  • Explicit associative-memory graph traversal
  • JSONL export, import, and agent merging
  • Health checks and recall-precision controls

Tools34

What CPersona lets your agent do. Expand a tool for its parameters.

Verified live~16.8k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

18/18 checks healthy over the last 112d

What it can do

From the 34 tools this server returned when we ran it; 34 declare their own safety hints.

Runs commands · 1Can delete or modify data · 8Handles credentials · 4Makes network requests · 6Read-only tools · 25
Network at startup2 connections
Files written at startup23

Observed 2026-10-26 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 7d ago via OSV.dev · cembedding-download-model (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars10Stargazers on the source repository.
Last commit1d agoMost recent push to the default branch.
Tools exposed34Callable tools this server registers over MCP.

How CPersona works

What CPersona does

CPersona stores long-term agent memory in a SQLite file that remains under the operator's control. Memories, conversation episodes, profiles, and declared associations can be kept in one database while being separated by agent, project, channel, and source. The server does not call a generative model: the calling agent supplies memory text, episode summaries, keywords, and profiles, and CPersona stores or retrieves that material.

Retrieval uses multiple signals. Vector search handles semantic similarity, while FTS5 and keyword search help with exact names, identifiers, error messages, and text in scripts that do not use spaces. The reconstruct tool is intended for question answering: it returns memory items supported by verbatim excerpts from stored records and provides references for reading more.

How it works

A typical flow stores information with store, searches with recall or recall_with_context, and expands selected results with get_contents. reconstruct combines retrieval and evidence selection without summarizing or modifying stored rows. Long records can be represented by overflow nodes so callers can request only relevant portions. Recall responses can include match reasons, excerpts, confidence information, and signals that results fell below the quality gate.

Associations are explicit rather than inferred. Callers declare entities, aliases, and subject-predicate-object relations with declare_associations; traverse then walks that declared graph and returns related record references. Full record text is retrieved separately with get_contents.

The server can operate without an embedding backend using lexical search. An embedding service can be configured for vector retrieval. Background work reports through get_queue_status, and database checks cover storage integrity, indexes, embeddings, full-text search, stale tasks, profiles, and data consistency.

Setup and configuration

The project supports Python 3.11 or newer. The documented manual setup runs an embedding service with cembedding, registers CPersona as a stdio MCP server, and points the client at a SQLite path with CPERSONA_DB_PATH. Embedding-related settings include EMBEDDING_MODE and EMBEDDING_HTTP_URL; the server can still use keyword search when embeddings are unavailable.

The repository also describes setup through plugins for Claude Code and Codex. A dashboard command opens a read-only browser view of stored memories, recall activity, and the memory network.

Tools and capabilities

  • Store, update, delete, lock, unlock, list, archive, and recall memory data.
  • Retrieve profiles and save pre-computed agent profiles.
  • Search with vector, full-text, and keyword strategies.
  • Reconstruct evidence-backed answers and fetch bounded content ranges.
  • Declare and traverse explicit entities, aliases, mentions, and relations.
  • Export and import JSONL backups, or merge data between agents.
  • Pause and resume writes, inspect persistence status, and check database health.
  • Calibrate vector thresholds and configure per-agent recall precision.
  • Read operator-managed operating context served to connected clients.

Limitations and notes

Storage is local to the configured SQLite file; portability and backup are handled through SQLite backup or the JSONL export tools. CPersona does not generate summaries, infer associations, or extract entities from stored text. Callers must provide those values explicitly.

Write pausing is scoped by session_key when one is supplied. Without a key, callers share a process-level bucket, which can affect other keyless sessions in a streamable-HTTP deployment. Locked memories cannot be edited or deleted through the ordinary memory operations, although agent deletion and certain relocation operations have separate behavior. Health repairs can be lossy, including truncating oversized content or deleting duplicate and empty rows, so repair operations require care.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about CPersona

CPersona is an MCP server that connects AI agents to a local SQLite memory store. Its main tools store and recall memories, reconstruct answers from quoted evidence, fetch full content, manage profiles and episodes, and export or import data without calling a generative model inside the server.

Install it as a Python 3.11+ MCP server, optionally start the documented cembedding service, and register CPersona with your MCP client as a stdio process. The manual setup passes a SQLite path through CPERSONA_DB_PATH and can configure HTTP embeddings with EMBEDDING_MODE and EMBEDDING_HTTP_URL.

Yes, CPersona works with Claude Desktop, Cursor, and VS Code as MCP clients. The project also names Claude Code and Codex, and its stdio registration pattern is intended for MCP clients that support standard server configuration.

Yes, CPersona continues to run with keyword and full-text retrieval when an embedding backend is unavailable. Vector search requires an embedding service, while recall responses indicate degraded retrieval rather than silently presenting the result as equivalent.

CPersona separates memories using agent, project, channel, and source-related scopes. Listing, recall, and association traversal apply the relevant filters, allowing multiple agents and projects to use one SQLite database without treating all records as one undifferentiated collection.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewCPersona AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/cpersona?style=directory)](https://allmcps.com/mcp/cpersona)
HTML Embed
<a href="https://allmcps.com/mcp/cpersona"><img src="https://allmcps.com/api/badge/cpersona?style=directory" alt="CPersona on AllMCPs" /></a>