Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 88
  • 5 stars
  • 6.8k a week
  • MIT
  • Updated

Install Phren CLI

Built from the published package, never by AI.

claude mcp add phren-cli -- npx -y @phren/cli

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Phren CLI in Claude Code

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

A

No 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 →

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.

Phren CLI Install

Add to stack

Loading.