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

memory-api-mcp-server

v1.1.5

Published

MCP Server for Memory API integration with Cursor - enables automatic code context saving and intelligent memory management

Downloads

43

Readme

Memory API MCP Server

npm version

🧠 Intelligent Memory Management for Cursor - Automatically save and retrieve code contexts, patterns, and solutions using the Model Context Protocol (MCP).

⚠️ Important Note: This project is not Open Source. All data is encrypted and embedded in a way that only AI can read and interpret the content.

✨ Features

  • 🤖 Automatic Context Saving: Cursor intelligently decides when to save interesting code
  • 🔍 Semantic Search: Find code patterns and solutions using natural language
  • 🏷️ Smart Tagging: Automatic categorization by language, complexity, and reusability
  • 📊 Structured Metadata: Rich context with file paths, complexity levels, and more
  • 🚀 Zero Configuration: Works out of the box with any Memory API instance
  • 🔄 Real-time Sync: Instant saving and retrieval of memories

🚀 Quick Start

Installation

npm install -g memory-api-mcp-server

Setup with Cursor

  1. Install the package globally:

    npm install -g memory-api-mcp-server
  2. Configure Cursor MCP: Add to your ~/.cursor/mcp.json:

    {
      "mcpServers": {
        "memory-api": {
          "command": "memory-api-mcp-server"
        }
      }
    }
  3. Restart Cursor and start coding!

Auto-Configuration Script

For easier setup, use our configuration script:

npx memory-api-mcp-server configure

🛠️ Available Tools

Core Memory Operations

  • create_memory - Create new memories manually
  • search_memories - Search existing memories by content
  • list_memories - List all memories with pagination
  • get_memory - Retrieve specific memory by ID
  • delete_memory - Remove memories

Intelligent Auto-Save

  • smart_auto_save - Automatically save interesting code contexts
    • Detects complex solutions
    • Identifies reusable patterns
    • Captures bug fixes and optimizations
    • Saves configurations and utilities

🧠 Intelligent Auto-Save

The server includes smart auto-save functionality that automatically captures:

  • Complex Solutions - Code that took significant effort to implement
  • Reusable Patterns - Functions and classes with high reuse potential
  • Bug Fixes - Interesting problem resolutions
  • Optimizations - Performance improvements
  • Configurations - Useful setup and config code
  • Utilities - Helper functions and tools

Example Auto-Save

When you write something like this:

const optimizeQuery = (sql) => {
  // Complex optimization logic
  return optimizedSql;
};

Cursor automatically saves it with structured metadata:

{
  "content": "CONTEXTO: optimization\nARQUIVO: utils/db.js\n\nconst optimizeQuery = (sql) => {\n  // Complex optimization logic\n  return optimizedSql;\n};",
  "containerTags": ["optimization", "javascript", "medium_complexity", "high_reusability"]
}

📝 Usage Examples

Manual Memory Creation

// In Cursor chat
"Create a memory about this regex pattern for email validation"

Searching Memories

// In Cursor chat
"Search for memories about database optimization"
"Find all JavaScript utility functions"
"Show me high reusability patterns"

Auto-Save Configuration

Add a .cursorrules file to your project:

# Auto-Memory Rules
Use `smart_auto_save` automatically when detecting:
- Complex algorithms
- Reusable utilities
- Bug fixes
- Performance optimizations
- Configuration patterns

🔧 Configuration

Environment Variables

  • MEMORY_API_URL - Your Memory API endpoint (default: https://memory-api-mvp.fly.dev)
  • MEMORY_API_TOKEN - Authentication token (optional)

Memory API Compatibility

This server is compatible with any Memory API that implements the Supermemory AI specification:

  • POST /v3/memories - Create memories
  • POST /v3/search - Search memories
  • GET /v3/memories - List memories
  • GET /v3/memories/{id} - Get specific memory
  • DELETE /v3/memories/{id} - Delete memory

🏗️ Architecture

Cursor ←→ MCP Server ←→ Memory API ←→ PostgreSQL + Vector DB
  • Cursor: Provides the AI interface and code context
  • MCP Server: Handles protocol translation and intelligent decisions
  • Memory API: Manages storage and semantic search
  • Database: Stores memories with vector embeddings for similarity search

🔗 Links

📧 Contact


Made with 🧠 by Italo Coimbra