npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@datafrog-io/n2n-memory

v1.1.0

Published

Project-local knowledge-graph memory MCP server for AI context isolation.

Downloads

364

Readme

n2n-memory

npm version license MCP Protocol node version N2N Studio DataFrog.io

中文版


Context as code. Memory as asset.

A specialized MCP server designed to solve "memory pollution" during AI-assisted cross-project development. It persists AI's cognitive fragments directly within each project's own directory.

🌟 Key Highlights

  • Project-Level Physical Isolation: Memory files are stored at [Project Root]/.mcp/memory.json.
  • Git-Friendly: JSON data is automatically sorted by key to generate clean and readable git diff.
  • Tool Agnostic: Uses the .mcp naming convention, not tied to any specific AI brand or IDE plugin.
  • Assets for Your Code: Memory stays with your code; team members can share AI's understanding of the architecture by simply pulling the repository.
  • Universal Compatibility: Works with all MCP-enabled models including Claude 4.5, Gemini 3 Pro/Flash, GPT-5/5.2, and DeepSeek V3.2.
  • Privacy-First: Built with security by design, keeping your data local and isolated.

🚀 Quick Start

1. Installation & Config (IDE / Claude Desktop)

The easiest way to use this is via npx:

Claude Desktop

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

{
  "mcpServers": {
    "n2n-memory": {
      "command": "npx",
      "args": ["-y", "@datafrog-io/n2n-memory"]
    }
  }
}
Cursor / VSCode (MCP Plugin)

Add in the MCP settings panel:

  • Name: n2n-memory
  • Type: command
  • Command: npx -y @datafrog-io/n2n-memory

2. Usage Guide

This service is path-driven. AI assistants should pay attention to:

  1. Absolute Paths: When calling any n2n_* tool, the absolute path of the current project root (projectPath) must be provided.
  2. Auto Storage: Memory is automatically saved to [ProjectPath]/.mcp/memory.json.
  3. Collaboration: It is recommended to commit .mcp/memory.json to your Git repository to share the knowledge graph with your team.
Available Tools:
  • n2n_add_entities: Create new entities.
  • n2n_add_observations: Append observations or facts.
  • n2n_create_relations: Establish connections between entities.
  • n2n_read_graph: Read project memory and active context (Supports summaryMode and pagination).
  • n2n_get_graph_summary: Quickly fetch a lightweight index of all entities (Supports pagination).
  • n2n_update_context: Update current task status and next steps.
  • n2n_search: Search the graph via keywords (Supports pagination).
  • n2n_open_nodes: Retrieve specific entities by name.

🗺️ Future Roadmap

  • Semantic Search: Integration of minimalist Vector Embeddings for fuzzy memory retrieval.
  • Ontology Enforcement: Optional schema for relation type consistency.
  • Time Travel: Versioned snapshots for memory rollback.

📖 Related Docs

📄 License

This project is licensed under the MIT License.


N2N Studio — The AI Innovation Lab of DataFrog.io.