Persistent memory for AI coding agents. MCP server that gives Claude, Cursor, and Windsurf institutional knowledge across sessions
# Muninn [](https://www.npmjs.com/package/muninn-ai) [](https://www.gnu.org/licenses/agpl-3.0) [](https://github.com/ravnltd/muninn) **Your AI coding agent forgets everything between sessions. Muninn fixes that.** ```bash npx muninn-ai ``` Muninn gives AI coding agents persistent memory via [MCP](https://modelcontextprotocol.io/). Before every edit, the agent knows what's fragile, what decisions were made, and what broke last time. After every session, it writes back what it learned. Knowledge compounds automatically. > **Works with**: Claude Code, Cursor, Windsurf, Continue.dev, and any MCP-compatible tool. --- ## The Problem AI coding agents are stateless. Every session starts from zero: - **They break things** — editing a critical file with no idea it's fragile - **They contradict themselves** — picking a different pattern than 3 sessions ago - **They repeat mistakes** — re-introducing bugs that were already fixed - **They lose context** — forgetting *why* something was done a certain way ## 4 Tools Muninn exposes 4 tools to your AI agent: | Tool | Purpose | |------|---------| | `recall` | Pre-edit context — fragility, co-changers, related decisions, open issues, blast radius | | `remember` | Record decisions and learnings — auto-categorized, searchable across sessions | | `track` | Bug lifecycle — add when found, resolve when fixed, surface when relevant | | `muninn` | Everything else — status, reindex, fragile files, decision outcomes | ## What Compounds Muninn gets smarter with every session: - **Fragility scoring** — weighted composite of dependents, test coverage, change velocity, error history, complexity, and export surface - **File correlations** — tracks which files change together to predict co-changes and warn about missed updates - **Learn
Agent that generates comprehensive documentation, API references, architecture diagrams, and developer onboarding guides from existing code.
Agent configuration for systematic bug investigation that traces issues from error logs through the codebase to root cause with suggested fixes.
Agent for integrating third-party APIs including SDK setup, type generation, error handling, retry logic, and rate limit management.
Cursor's built-in autonomous coding agent that can make multi-file edits, run terminal commands, search the codebase, and iteratively build features with minimal human intervention.
Cloud-based autonomous coding agent that runs in the background on remote sandboxed environments, handling complex multi-step tasks while you continue working.
Cursor's multi-file editing agent within Composer mode that can create, edit, and delete files across your entire project in a single conversation.