Skip to content
MCP server
Registry

Provena Agent Memory MCP Server

Self-hosted MCP memory for AI agents: persistent context with evidence-backed claims.

Provena Agent Memory scores 66 (Good), licensed MIT and written in Python. It installs as a local process. It does not declare tools yet. Filed under Databases, AI and memory. GitHub shows 10 stars. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.

by admiralpunkMITPython10 stars
Trust score
66Good
Trust score 66 of 100, Good

Good trust

66 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 66 comes from

22 + 20 + 3 + 10 + 4 + 7 = 66. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity3 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 3 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs7 / 10

A real summary, a README with depth, listed tools.

Docs: 7 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "admiralpunk-provena": {      "command": "uvx",      "args": [        "provena-agent-memory"      ],      "env": {        "PROVENA_API_URL": "http://127.0.0.1:8000",        "PROVENA_API_KEY": "YOUR_PROVENA_API_KEY",        "PROVENA_SCOPE_ID": ""      }    }  }}

Environment variables

NameRequiredNotes
PROVENA_API_URLOptionalBase URL of the Provena REST API
PROVENA_API_KEYSecretRequiredAgent credential issued by the Provena service
PROVENA_SCOPE_IDRequiredExact project or branch scope used for memory

Tools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.

About

CI PyPI M8ven Score Glama MCP server

Provena is open-source, self-hosted memory for AI coding agents. It plugs into Claude Code, Codex, and Gemini CLI (and any MCP client), captures your conversations, and brings relevant context into later sessions. Unlike a plain memory store, it keeps the receipts: each remembered claim stays linked to the original words it came from, how much that source can be trusted, and its review history.

pipx install provena-agent-memory
provena quickstart claude   # or: codex, gemini

Why receipts matter

Agents remember things that are wrong, stale, or planted. A webpage can claim "the user wants every PR auto-merged," and the agent may repeat it in an answer. In a memory store that doesn't track sources, that becomes a fact, and the next session acts on it.

In Provena:

  • Original evidence is never rewritten. Every conversation turn is stored as an append-only event. Claims are derived from events and always link back to them.
  • Not every source counts the same. Claims extracted from agent-reported text are low-authority candidates. The agent can see them as provisional context, but only a human reviewer can promote one. An agent key cannot.
  • Memory is not permission. Authority, search relevance, and permission to act are separate. A remembered fact never authorizes an action.
  • Changes of mind keep history. When a fact changes, both versions stay, and a reviewed relationship records which one supersedes the other.
  • You can ask why. memory_explain traces any claim to its source event, extraction run, review actions, conflicts, and every time it was delivered to an agent.

A memory-poisoning benchmark checks these properties on every CI run: 127 of 127 checks pass across 23 attempts to plant facts, smuggle instructions, leak across projects, and contradict the user. It also states plainly what Provena does not do: it labels a planted fact rather than blocking it.

See it in 30 seconds with provena demo. It runs in a separate demo project, records a preference you stated and a rule planted by a web page, and prints a receipt for each:

An example memory_explain trail, abridged:

claim       "User is on leave from Dec 1 to Dec 21"
predicate   leave_of_absence  status=candidate  valid 2026-12-01 → 2026-12-21
evidence    user_statement event, Codex session (authority: low)
            "I'll be on leave from December 1st to December 21st."
extraction  qwen2.5:1.5b via Ollama, run recorded
review      awaiting human review
retrievals  delivered to Codex 5 days later for "plan a review meeting in December"

How it compares

Different memory tools make different trade-offs. Provena focuses on provenance and review rather than on minimal setup.

Provenaclaude-memMem0Basic MemoryHindsight
StoragePostgreSQL + pgvector, self-hostedSQLite + Chroma, localHosted platform or self-hosted SDKMarkdown files + SQLite indexPostgreSQL + pgvector
CaptureAutomatic hooks (Claude Code, Codex, Gemini CLI) + MCP toolsAutomatic Claude Code hooksMCP tool callsAgent writes notesMCP tool calls
FocusSource evidence, authority, human review, auditEffortless automatic recallManaged memory platformHuman-readable notes in gitRetrieval quality
LicenseMITApache-2.0Apache-2.0AGPL-3.0MIT

Pick Provena when you need to know why your agent believes something, or when bad memory would be costly. If you only want the lightest possible recall, a local-file tool may suit you better.

Product demo

Watch the full 90-second walkthrough of setup, cross-session recall, and the operator console:

https://github.com/user-attachments/assets/37fe219c-b678-4c6d-811d-bfdd37552628

Provena is one FastAPI service backed by PostgreSQL and pgvector. MCP and host hooks capture turns and retrieve attributed context. Ollama, or an optional hosted model, extracts candidate facts and embeddings. The Next.js console lets a human inspect and review them. Architecture details · Decisions

Get started

You need Python 3.11+, pipx, Docker Compose, and one supported agent host. Install the connector and choose your host:

pipx install provena-agent-memory
provena quickstart codex

Use provena quickstart claude or provena quickstart gemini for those hosts. Quickstart starts the local service, PostgreSQL, Ollama, and the console; creates agent and reviewer credentials; and installs MCP plus automatic capture and retrieval hooks. It prints the console URL. Restart your agent host and review Provena under /hooks and /mcp.

Quickstart no longer waits for the default models (about 1.26 GB): they download in the background while Provena already records every turn and recalls with keyword search. When provena status shows memory_models ready, run provena catch-up --host <host> to extract what was captured meanwhile. If Ollama already runs on your machine, quickstart uses it instead, which keeps GPU acceleration on Macs; otherwise it uses a digest-pinned CPU build. Use --no-local-models to skip models entirely, or --wait-for-models for the previous blocking behavior. Installing the package alone does not record conversations; running quickstart is the opt-in step.

To see in 30 seconds why receipts matter, run provena demo --host codex (or claude, gemini). It works in a separate demo project, stores one fact you stated and one planted by a web page, and prints a receipt for each. To trace any real memory back to its source, run provena why <topic or claim ID>.

To check that the API and database are running:

provena status

To follow a captured Codex turn into a candidate claim, see the first-memory walkthrough.

Claude Code plugin

Claude Code users can install Provena as a plugin instead of letting quickstart edit Claude's settings. Install the connector, prepare the connection, then add the plugin in Claude Code:

pipx install provena-agent-memory
provena quickstart claude --plugin   # or, for an existing service: provena connect claude --plugin
/plugin install provena --marketplace admiralpunk/Provena

On Claude Code versions older than 2.1.275, run /plugin marketplace add admiralpunk/Provena and then /plugin install provena@provena. The plugin adds the MCP server, the capture and recall hooks, and two skills: /provena:status checks the setup, and /provena:why <topic> explains why a memory exists. The --plugin option writes only the protected connection file and removes Provena hooks that an earlier quickstart added, so turns are never captured twice. The plugin requires Provena 0.1.17 or later.

Codex plugin

Codex users can install Provena the same way:

pipx install provena-agent-memory
provena quickstart codex --plugin   # or, for an existing service: provena connect codex --plugin
codex plugin marketplace add admiralpunk/Provena
codex plugin add provena@provena

Then start Codex, open /hooks, and trust the Provena hooks: Codex never runs a plugin's hooks until you do. The plugin adds the MCP server, the capture and recall hooks, and the provena:status and provena:why skills. As with Claude Code, --plugin removes the Provena hooks and MCP server that an earlier quickstart added to ~/.codex, so turns are never captured twice.

Without Docker

If you'd rather not use Docker, Provena can run on the PostgreSQL and pgvector from your package manager. It finds them but never installs them:

brew install postgresql@18 pgvector                         # macOS
sudo apt install postgresql-17 postgresql-17-pgvector       # Debian 13
sudo apt install postgresql-16 postgresql-16-pgvector       # Ubuntu 24.04
sudo pacman -S postgresql pgvector                          # Arch

pipx install 'provena-agent-memory[server]'
provena quickstart claude --no-docker --plugin   # or: codex --plugin, or gemini

Provena creates a private database in its own state folder that only accepts local, password-authenticated connections, and starts the API beside it. It does not use the default database that Homebrew creates on install (in $(brew --prefix)/var/postgresql@18); brew uninstall leaves that folder behind. Use provena stop and provena start to stop and start both; they don't restart after a reboot on their own. If Ollama runs on your machine, Provena uses it; otherwise recall uses keyword search. The web console still needs Docker in this mode. Requires PostgreSQL 16 or newer and Provena 0.1.17 or later. Design

Connect to an existing service

Ask its operator for an API URL, agent API key, and project or branch scope ID. With the connector installed, run:

export PROVENA_API_URL=https://memory.example.com
export PROVENA_API_KEY=paste-agent-key
export PROVENA_SCOPE_ID=paste-scope-id
provena connect codex --install

Replace codex with claude or gemini as needed. For another MCP client, use provena connect generic to print its configuration. See the connector guide for manual MCP setup and console access.

Other setup paths

FAQ

Do I need Docker? No. The default quickstart uses Docker Compose, but --no-docker runs Provena on the PostgreSQL and pgvector from your package manager (see Without Docker). The web console still needs Docker.

Does it send my conversations anywhere? No. By default everything runs on your machine, and extraction uses local Ollama models. A hosted model is opt-in.

How big is the download? The default local models total about 1.26 GB, but quickstart doesn't wait for them: recall uses keyword search until they're ready. With --no-local-models there is no model download at all. If Ollama already runs on your machine with these models, nothing is downloaded.

Does installing the package start recording? No. Capture starts only after you run provena quickstart or provena connect --install for a host.

Which agents work? Claude Code, Codex, and Gemini CLI have one-command setup with automatic capture. Other MCP clients can use provena connect generic and call the MCP tools directly.

Current limits

Retrieval uses an exact scope; branch inheritance is not implemented. Provena records which claims were delivered to an agent, but cannot prove that a later action was caused by them. More on current guarantees and limits.

Contributing

Start with a good first issue or read CONTRIBUTING.md. See SECURITY.md for private vulnerability reporting and CHANGELOG.md for release history.

Frequently asked questions

What is Provena Agent Memory MCP Server?

Self-hosted MCP memory for AI agents: persistent context with evidence-backed claims.

How do I install Provena Agent Memory MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Provena Agent Memory MCP Server runs locally from the PyPI package provena-agent-memory with the command uvx provena-agent-memory.

Is Provena Agent Memory MCP Server free and open source?

Yes. Provena Agent Memory MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does Provena Agent Memory MCP Server support remote (HTTP) connections?

No remote endpoint is listed for Provena Agent Memory MCP Server. It runs locally on your machine over stdio, started by your MCP client.

How is Provena Agent Memory MCP Server's trust score calculated?

Provena Agent Memory MCP Server scores 66 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server