Phren CLI
MCP server by alaarab Verified · npm:@phren
Phren gives AI agents persistent memory. It stores findings, notes and patterns as markdown in a git repo you control, and exposes them through an MCP server. It is built for developers using Claude, Copilot, Cursor or Codex.
Install Phren CLI
Built from the published package, never by AI.
claude mcp add phren-cli -- npx -y @phren/cliRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"phren-cli": {
"args": [
"-y",
"@phren/cli"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"phren-cli": {
"args": [
"-y",
"@phren/cli"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"phren-cli": {
"args": [
"-y",
"@phren/cli"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add phren-cli -- npx -y @phren/cli{
"mcpServers": {
"phren-cli": {
"args": [
"-y",
"@phren/cli"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add phren-cli npx -y @phren/cliGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the phren-cli block.
About
Phren is a persistent memory layer for AI agents. Findings, notes and patterns are stored as markdown files in a git repository the user controls, with no database. It works with Claude, Copilot, Cursor and Codex, and the same store can be browsed from a terminal shell, a 3D web graph viewer, VS Code and an iOS app. Hooks extract keywords from a prompt and inject relevant findings before the user sends it.
The MCP server exposes tools such as search_knowledge, get_findings and add_finding. Trust scores decay with age, and decisions never expire. Sessions keep summaries and checkpoints, and work is tracked as forge issues. It is aimed at developers who want their coding agents to remember project gotchas, decisions and open work across sessions and tools.
Written from the project's README and checked against it.
Tools it gives your assistant
search_knowledgeSearches stored findings across projects, with full-text search and a semantic fallback.get_findingsReturns stored findings for a project.get_memory_detailOpens a single memory by id, such as a finding or task.add_findingSaves a new finding with optional tags like decision, pattern, pitfall or bug.create_issueCreates a forge issue for a project's work.claim_issueClaims an existing forge issue for work.
What you need
- Node.js (the setup commands use npx)
- A git repository for the store
- Optional LLM access for semantic duplicate and contradiction checks
Try asking
- Search Phren for past gotchas about the build in this project.
- Save a finding that we chose PostgreSQL for the billing service.
- Create a forge issue for the flaky login test and claim it.
Good to know
- Periodic remote checks are off by default and must be enabled with phren config pull-interval.
- Automatic Git updates are fast-forward only.
- The iOS app is closed source and its source is not in this repository.
- Some agent features are gated behind the PHREN_FEATURE_AGENTS=1 setting.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Phren CLI
All alternatives →Connects a Zotero research library to AI assistants such as Claude and ChatGPT through the Model Context Protocol. It lets the assistant search, read, annotate and add papers, in local mode or through the web API. Built for researchers who want their references available in chat.
AgentDB is a vector memory database for AI agents. It stores embeddings, indexes and learning state in one file and exposes 41 MCP tools to clients such as Claude Code, Cursor and Cline.
Genkitx MCP is listed as a Genkit plugin for Model Context Protocol interoperability. The source is the main Genkit framework README and does not describe this plugin, so its features cannot be confirmed.
QMD is an on-device search engine for markdown notes, meeting transcripts and documentation. It combines BM25 keyword search, vector search and LLM reranking, and exposes an MCP server for AI assistants.
RuVector is a Rust native vector database that gives AI agents persistent memory and local semantic retrieval. Its npm package includes an MCP server for MCP compatible clients, and it suits developers building agent memory in Node.js, Python, or Rust.
Gives AI coding agents persistent memory, so each new session starts where the last one left off. Works with Claude Code, Codex, Cursor, OpenCode and 11 more agents.
Compare with Zotero MCP, Agentdb or Genkitx MCP
Phren CLI: common questions
Where does Phren store my findings?
Findings, notes and patterns live in markdown files in a git repo you control. The source says no database is used.
Which AI assistants does Phren work with?
The source says it works with Claude, Copilot, Cursor and Codex, and that agents tag findings with the tool that wrote them.
Can a team share one Phren store?
Yes. Teams can create a team store with a Git remote and join it by URL, and projects in a team store can be subscribed to individually.
How do I install Phren CLI?
In Claude Code run claude mcp add phren-cli -- npx -y @phren/cli. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Phren CLI the official server?
Phren CLI is published by npm:@phren from its verified domain in the official MCP Registry.
Is Phren CLI free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Phren CLI safe to use?
It scores 88 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Phren CLI?
Similar MCP servers: Zotero MCP, Agentdb, Genkitx MCP, Qmd.
Does Phren CLI work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
