n2ns

N2n Memory — AI skill for Claude Code

AI community

Project-local MCP memory server for AI coding agents.

How to install N2n Memory

This entry records only its repository, not the path inside it, so there is no exact command to give. Open n2ns/n2n-memory and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What N2n Memory does

Project-local MCP memory server for AI coding agents. Knowledge graph stored in .mcp/ inside each repo — isolated per project, Git-friendly JSON, dual-buffer (durable graph + active context).

Alternatives in AI

  • Wiki Graph — Build the LLM Wiki knowledge graph 2.3k ★
  • Late CLI — High-performance AI agent for long-horizon tasks and local models 442 ★
  • Graphmind — Local-first code intelligence for AI assistants 213 ★

README

n2n-memory logo

n2n-memory

Project-local knowledge-graph memory MCP server from N2NS Lab for AI coding agents.

[![npm version](https://img.shields.io/npm/v/n2n-memory)](https://www.npmjs.com/package/n2n-memory) [![npm total downloads](https://img.shields.io/npm/dt/n2n-memory)](https://www.npmjs.com/package/n2n-memory) [![license](https://img.shields.io/github/license/n2ns/n2n-memory)](https://github.com/n2ns/n2n-memory/blob/main/LICENSE) [![MCP Protocol](https://img.shields.io/badge/MCP-Protocol-blue)](https://modelcontextprotocol.io) [![node version](https://img.shields.io/node/v/n2n-memory)](https://nodejs.org)

[中文版](./docs/README_zh.md)


**Context as code. Memory as asset.**

n2n-memory is an open-source, local-first Model Context Protocol (MCP) memory server for AI coding assistants. It prevents cross-project memory pollution by storing durable project knowledge in `.mcp/memory.json` and active task context in `.mcp/context.json` inside each repository.

📚 Contents

💡 What is n2n-memory?

n2n-memory gives AI coding tools a project-local knowledge graph they can read and update through MCP. Memory and context are stored inside each repository under `.mcp/`, keeping them isolated, Git-friendly, and reviewable.

  • Restore project context at the start of an AI coding session.
  • Preserve architecture decisions, implementation notes, and known pitfalls.
  • Share durable project memory with teammates through Git.
  • Keep memory isolated per repository when working across many projects.

🚀 Quick start

1. Configure your MCP client

Claude Desktop

File Path: `%APPDATA%\Claude\claude_desktop_config.json`

{
  "mcpServers": {
    "n2n-memor