Pi Brain
MCP server by ruvnet Verified · npm:@ruvector
Pi Brain is listed as a CLI and SDK for π, the RuVector shared brain, from ruvnet. The source is the RuVector README, which describes local memory and vector search for AI agents across sessions.
Install Pi Brain
Built from the published package, never by AI.
claude mcp add pi-brain -- npx -y @ruvector/pi-brainRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"pi-brain": {
"args": [
"-y",
"@ruvector/pi-brain"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"pi-brain": {
"args": [
"-y",
"@ruvector/pi-brain"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"pi-brain": {
"args": [
"-y",
"@ruvector/pi-brain"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add pi-brain -- npx -y @ruvector/pi-brain{
"mcpServers": {
"pi-brain": {
"args": [
"-y",
"@ruvector/pi-brain"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add pi-brain npx -y @ruvector/pi-brainGemini 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 pi-brain block.
About
Pi Brain is listed here as a CLI and SDK for π, the RuVector shared brain, published by ruvnet. The source is the RuVector README, which describes a Rust native substrate for fast local decisions and agent memory across sessions. It combines local semantic embeddings, persistent vector retrieval, graph relationships, explicit feedback learning, memory lifecycle controls, and optional shared memory.
The npm ruvector package includes an MCP server that an MCP client can launch with npx ruvector mcp start. The README recommends starting with a read-only profile and enabling writes only through an explicit tool policy. It is aimed at developers who want persistent project memory in Node.js, Python, or Rust, and at AI assistants that need access to that memory. The source does not list the MCP tool names.
Written from the project's README and checked against it.
What you need
- Node.js and npm
- An MCP compatible client
- Claude Code, for the setup example in the README
Try asking
- Retrieve relevant project context from my RuVector memory before answering.
- Search my stored project decisions about where customer data may be processed.
- Check which memory records support your answer and list their IDs.
Good to know
- The README recommends starting with the read only profile.
- Writes are enabled only through an explicit tool policy.
- The Python guide currently documents a source installation.
- Contrastive learning does not establish factual truth, and not all components are enabled in the default search path.
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
What you can do with it
- Persistent project memory for AI agents
- Semantic recall of past decisions
- Vector search in Node.js, Python or Rust
Alternatives to Pi Brain
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
Pi Brain: common questions
Can the MCP server write to memory?
The README recommends starting with the read only profile, RUVECTOR_MCP_PROFILE=readonly. Writes are enabled only through an explicit tool policy.
Does Pi Brain need a cloud service?
The source says the first semantic command downloads a local embedding model. It does not state whether a cloud service is required.
Is Pi Brain the same as RuVector?
The listing names Pi Brain as a CLI and SDK for RuVector's shared brain. The source is the RuVector README and does not mention Pi Brain by name.
How do I install Pi Brain?
In Claude Code run claude mcp add pi-brain -- npx -y @ruvector/pi-brain. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Pi Brain the official server?
Pi Brain is published by npm:@ruvector from its verified domain in the official MCP Registry.
Is Pi Brain free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Pi Brain safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. 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 Pi Brain?
Similar MCP servers: Zotero MCP, Agentdb, Genkitx MCP, Qmd.
Does Pi Brain 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.
