Zikra: Self-Hosted MCP Memory Server for Claude Code, Cursor, and Codex

Zikra is a self-hosted MCP (Model Context Protocol) memory server that provides persistent memory for Claude Code, Cursor, and Codex. It solves the problem where Claude Code and Claude Web don't share context, and every session starts from zero.
What it does
- Stop hook fires when Claude Code sessions end — saves automatically, eliminating the need to type "save this"
- MCP native — Claude Desktop and Claude Code connect with one configuration line
- Works with Cursor and Codex via the same webhook
- Saves every decision, error, and requirement automatically at session end
- Creates a searchable memory pool accessible from any tool, machine, or team member
Installation steps
Step 1 — Start the server:
pip install zikra-lite && python -m zikraStep 2 — Add to ~/.claude/mcp.json:
{"zikra": {"url": "http://localhost:7723/mcp",
"headers": {"Authorization": "Bearer YOUR_TOKEN"}}}Step 3 — Paste into Claude Code:
Fetch https://raw.githubusercontent.com/getzikra/zikra-lite/main/prompts/g_zikra.md and follow every instruction in it.
Technical details
- MIT licensed
- Self-hosted
- Free forever
- Built primarily by Claude Code to solve the developer's own problem
- Team version available with Postgres + n8n
This type of tool is useful for development teams working with AI coding assistants who need persistent context across sessions and team members.
📖 Read the full source: r/ClaudeAI
👀 See Also

Can OpenClaw Embrace the Power of Claude CLI?
Explore key insights from r/openclaw on whether OpenClaw can integrate with Claude CLI, a powerful AI tool designed to enhance coding and automation processes.

Agent Safehouse: macOS-native sandboxing for local AI coding agents
Agent Safehouse is a macOS-native sandboxing tool that prevents local AI agents from accessing files outside your project directory using kernel-level enforcement. It's a single shell script with no dependencies that works with Claude Code, Codex, OpenCode, Amp, Gemini CLI, Aider, Goose, Auggie, Pi, Cursor Agent, Cline, Kilo, Code Droid, and other agents.

Pilot Shell: A Structured Workflow Layer for Claude Code
Pilot Shell adds spec-driven TDD workflows, quality hooks, context engineering, and token optimization on top of Claude Code — without the complexity of multi-agent frameworks.

Agent Skill Harbor: GitHub-native skill management for AI agent teams
Agent Skill Harbor is an open-source platform for teams to share, track, and govern AI agent skills using GitHub-native workflows. It collects skills from GitHub repos, tracks provenance, supports safety checks, and publishes a static catalog site with GitHub Actions and Pages.