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.
Git-backed MCP memory for agent clients
Perenna gives agents one shared memory store instead of separate per-app silos. It runs as an MCP server, keeps memories as human-readable Markdown in Git, and supports local stdio, loopback HTTP, and OAuth-protected remote HTTP.
Builders who want Claude Code, Codex, Cursor, or another MCP client to share durable memory.
You can keep long-lived context in one Git-backed place instead of re-explaining the same project details in every session.
What it does
Separate memory tools
Provides distinct MCP tools for reading, writing, and deleting memories.
Git-backed storage
Stores durable memory as Markdown in an independent Git repository you can inspect, edit, version, and back up.
Multiple connection modes
Supports local stdio, loopback-only Streamable HTTP, and OAuth-protected remote HTTP.
Rebuildable retrieval index
Uses a local Vexor index that can always be rebuilt from Git history.
Multi-process safety
Includes cross-process locking for multiple local agent processes.
Optional agent skill and plugin bundles
Ships a memory skill for Claude Code and Codex, plus combined plugin setup paths.
How to get it
- 1Paste this into Claude Code, Codex, ChatGPT Desktop, Cursor, or another coding agent…
Open the following URL, read the complete instructions, and follow them to install and connect Perenna: https://raw.githubusercontent.com/scarletkc/Perenna/main/docs/guides/agent-installation.md
- 2Run
uv tool install perenna
- 3Perenna needs a working Vexor embedding provider. For interactive provider selection and…
uvx vexor init
- 4If you choose local embeddings, also install Perenna's local extra
uv tool install "perenna[local]"
- 5Vexor provider configuration covers remote and local setup. From the environment that…
uvx vexor doctor
- 6For the standalone setup, configure the MCP client to start
perenna mcp
README
A lightweight, Git-backed permanent memory for AI agents. Claude Code, Codex, ChatGPT, Cursor, and other MCP clients can share durable memories without sharing a vendor account or conversation history.
- Separate MCP tools for reading, writing, and deleting memories
- Local stdio, loopback-only Streamable HTTP, and OAuth-protected remote HTTP
- Human-readable Markdown stored in an independent Git repository
- Local Vexor retrieval index that can always be rebuilt from Git
- Cross-process locking for multiple local agent processes
Why Perenna?
Your memory should follow you, not the agent you happen to be using.
Claude Code, Codex, Cursor, and ChatGPT keep memory in separate silos. Switch agents and your memory disappears. Switch machines and local memory stays behind.
Perenna gives them one shared, Git-backed memory. Local agents and ChatGPT can connect to the same self-hosted Perenna service, while every durable memory stays ordinary Markdown you can inspect, edit, version, and back up yourself.
Perenna stays focused on permanent memory: no required account, proprietary memory cloud, or automatic conversation extraction.
Quickstart
Install with your AI agent
Paste this into Claude Code, Codex, ChatGPT Desktop, Cursor, or another coding agent with terminal and local MCP configuration access:
Open the following URL, read the complete instructions, and follow them to
install and connect Perenna:
https://raw.githubusercontent.com/scarletkc/Perenna/main/docs/guides/agent-installation.md
Install a published release
Perenna requires Python 3.12+, Git, and uv.
Install Perenna
uv tool install perenna
Configure retrieval
Perenna needs a working Vexor embedding provider. For interactive provider selection and configuration, run:
uvx vexor init
Perenna automatically reuses ~/.vexor/config.json. When using process-level
configuration, make sure the MCP server receives VEXOR_CONFIG_JSON plus
VEXOR_API_KEY or the selected provider's key from its host environment.
Remote providers receive memory text and search queries.
If you choose local embeddings, also install Perenna's local extra:
uv tool install "perenna[local]"
Vexor provider configuration covers remote and local setup. From the environment that starts the MCP client, verify the selected provider with:
uvx vexor doctor
Connect a client
For the standalone setup, configure the MCP client to start:
perenna mcp
Follow the Client setup guide for the exact client command or configuration file.
Codex and Claude Code can also install the optional memory behavior Skill:
perenna skill install --agent codex
# or
perenna skill install --agent claude-code
Repeat --agent in one command when both clients should receive the skill.
The configuration reference
documents user and project scope, destinations, and replacement safeguards.
Codex and Claude Code can instead install the combined Skill and MCP connection from Perenna's repository Marketplace. Follow the Plugin setup guide and choose one setup path per client.
Perenna creates its local data under ~/.perenna/ unless another home is
configured.
Add optional Git synchronization
To import, publish, or fast-forward compatible history through a private Git repository, run:
perenna sync setup <repository-url>
Successful setup saves the selected remote in the Perenna home. Use
perenna sync disable to return to saved local-only mode without removing the
Git remote.
The configuration reference owns remote selection, credentials, conflict handling, and recovery details.
Install from source
git clone https://github.com/scarletkc/Perenna.git
cd Perenna
uv tool install .
Source contributors should use the locked environment in the development guide.
Documentation
Start with the documentation index, then follow the path for your task:
- Getting started
- Client setup
- Plugin setup
- Secure MCP Tunnel
- Self-hosting for ChatGPT
- Using permanent memory
perenna-memoryAgent Skill- Configuration reference
- Architecture
- Development guide
License
Files in the repo
- .agents
- .claude-plugin
- .github
- assets
- docs
- plugins
- scripts
- skills
- src
- tests
- .dockerignore
- .env.example
- .gitattributes
- .gitignore
- AGENTS.md
- Dockerfile
- glama.json
- LICENSE
- pyproject.toml
- README.md
- server.json
- uv.lock
Discussion (0)
Ask about usage, or say what you built with itSign in to join the discussion.
No comments yet. Be the first to say what this is good for.
More connectors

Universal provider proxy for OpenAI Codex & Claude Code — use any LLM (Claude, Gemini, Grok, DeepSeek, Ollama…) with Codex CLI, App, SDK, and Claude Code
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.
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.
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.
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。