Memrain — AI skill for Claude Code
Self-hosted memory for your AI agents: hybrid vector + keyword + entity-graph search over your notes and code, with cited sources, served over MCP to Claude Code, Cursor and Codex.
How to install Memrain
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open timurgaleev/memrain and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Memrain does
Self-hosted memory for your AI agents: hybrid vector + keyword + entity-graph search over your notes and code, with cited sources, served over MCP to Claude Code, Cursor and Codex. Runs in your own AWS account with team access controls, per-caller spend caps and zero telemetry. MIT.
Alternatives in AI
- Xerj — Local-first search engine and MCP server for AI agents 12.5k ★
- Nocturne Memory — A lightweight, rollbackable, and visual Long-Term Memory Server for MCP Agents 1.3k ★
- Browser Search — A skill for AI agents: search the web with SearXNG, browse with Camofox, bypass protections with CloakBrowser 499 ★
README
Memrain
Memrain is a self-hosted memory server for your AI agents. It indexes your markdown notes and your code (TypeScript, Python, Go, Bash, SQL), and it answers any MCP client with cited evidence from hybrid vector + keyword + entity-graph search.
[](./LICENSE)   
Your notes, index and database stay in your AWS account. Only what an agent retrieves goes to that agent's model.
See it work
Connect once, then ask in plain words. Memrain returns the evidence, cited to the exact page. Your agent writes the answer.
claude mcp add --transport http memrain https://./mcp \
--header "Authorization: Bearer "
See a full search with --explain
On the host, the CLI runs the same retrieval the MCP `search` tool does, and `--explain` stamps per-signal ranking attribution on every hit:
docker exec deploy-memrain-1 bun run src/cli.ts search "" --k 5 --explain
What you get
You write notes, decisions and code, and six months later neither you nor your agent can find them. Memrain reads all of it once, keeps it searchable, and hands
Related Skills
Kb Index
Hybrid (vector + BM25) search over many markdown repos in one SQLite file, served over MCP for coding agents:
Cyberbrain Light
Cited, trust-tiered memory for AI coding agents. One 5 MB binary, keyword search over plain Markdown notes, no
Reporecall
Local codebase memory for Claude Code. Tree-sitter AST indexing (22 languages), hybrid keyword + vector search
Mnemon
Self-hosted, cross-device long-term memory for AI agents via MCP — one vault shared across any MCP client (Cla
RAG Sys
Deep Research Agent demo (React + Python FastAPI + ArangoDB) built with Claude Code under a defined plan → imp
Montycat MCP
Shared, persistent memory for AI agents. Self-hosted MCP server with semantic search, vector RAG, and live upd
Related Agents
Brain Retrieval Engineer
Retrieval engineer — six retrieval strategies (hybrid, graph-enhanced vector, entity-anchored local, guarded T
Cozo Perf Architect
Use this agent when work touches CozoDB schema design, graph data modeling, indexes, query patterns, ingestion
Lmstudio Local
A locally-hosted model served through LM Studio's OpenAI-compatible API,