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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@jungjaehoon/mama-server

v1.8.0

Published

MAMA MCP Server - Memory-Augmented MCP Assistant for Claude Code & Desktop

Readme

@jungjaehoon/mama-server

MCP server for MAMA (Memory-Augmented MCP Assistant) - Prevents vibe coding breakage by tracking decisions with reasoning.

What is MAMA?

MAMA tracks WHY you decided (reasoning), not just WHAT you chose (facts). When Claude switches between frontend/backend/database, it checks MAMA instead of guessing. No more mismatched schemas or wrong field names.

Regular memory: "Login returns token" MAMA: "Login returns { userId, token, email } because frontend needs userId for dashboard (tried just token, users had to refetch)"

Installation

MAMA works with any MCP-compatible client. Add it to your client's configuration:

Claude Code

# Quick install via marketplace
/plugin marketplace add jungjaehoon-lifegamez/claude-plugins
/plugin install mama

The plugin automatically uses this MCP server via npx -y @jungjaehoon/mama-server.

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "mama": {
      "command": "npx",
      "args": ["-y", "@jungjaehoon/mama-server"]
    }
  }
}

Codex

Add to ~/.codex/config.toml:

[mcp_servers.mama]
  command = "npx"
  args = ["-y", "@jungjaehoon/mama-server"]
  disabled = false
  disabled_tools = []

Antigravity IDE (Gemini)

Add to ~/.gemini/antigravity/mcp_config.json:

{
  "mcpServers": {
    "mama": {
      "command": "npx",
      "args": ["-y", "@jungjaehoon/mama-server"],
      "disabled": false,
      "disabledTools": []
    }
  }
}

Other MCP Clients

Any MCP-compatible client can use MAMA with:

npx -y @jungjaehoon/mama-server

Available Tools (v1.3)

The MCP server exposes 4 core tools:

| Tool | Description | | ----------------- | --------------------------------------------------------------------- | | save | Save decision (type='decision') or checkpoint (type='checkpoint') | | search | Semantic search (with query) or list recent items (without query) | | update | Update decision outcome (case-insensitive: success/failed/partial) | | load_checkpoint | Resume previous session |

Edge Types

Decisions connect through relationships. Include patterns in your reasoning:

| Edge Type | Pattern | Meaning | | ------------- | -------------------------- | -------------------------- | | supersedes | (automatic for same topic) | Newer replaces older | | builds_on | builds_on: decision_xxx | Extends prior work | | debates | debates: decision_xxx | Alternative view | | synthesizes | synthesizes: [id1, id2] | Merges multiple approaches |

Usage Example

Once configured, use MAMA through your MCP client:

# Save a decision (in Claude Code)
/mama-save topic="auth_strategy" decision="JWT with refresh tokens" reasoning="Need stateless auth for API scaling"

# Search for related decisions
/mama-suggest "How should I handle authentication?"

**Reasoning Summary (required when presenting search results):**
- Explain *why* results match (tokens/endpoint/field overlap)
- Mark unknowns explicitly (avoid false reasoning)
- State next action (use contract fields; do not guess)

# View decision history
/mama-recall auth_strategy

# Save session before closing
/mama-checkpoint

# Resume next time
/mama-resume

Features

  • Session Continuity - Save/resume work sessions with full context
  • Decision Evolution - Track how your thinking changes over time
  • Semantic Search - Natural language queries find relevant decisions
  • Local-First - All data stored on your device (~/.claude/mama-memory.db)
  • Multilingual - Supports English, Korean, and other languages
  • Shared Database - One database works across all your MCP clients
  • Optional HTTP Embedding Server - Legacy/standalone-less embedding HTTP mode (opt-in)

HTTP Embedding Server

The MCP server can expose an HTTP embedding API, but this is now opt-in.

  • Default: stdio MCP only (no HTTP startup)
  • Recommended: run @jungjaehoon/mama-os for API/UI (3847) + embedding/chat (3849)
  • Legacy opt-in for MCP HTTP: MAMA_MCP_START_HTTP_EMBEDDING=true

When enabled, the HTTP embedding API keeps the model loaded in memory:

┌─────────────────────────────────────────────────┐
│              Local Machine                       │
├─────────────────────────────────────────────────┤
│  Claude Code  Claude Desktop  Cursor  Aider     │
│       │            │            │       │        │
│       └────────────┴────────────┴───────┘        │
│                      │                           │
│     ┌────────────────▼────────────────┐         │
│     │  HTTP Embedding Server          │         │
│     │  127.0.0.1:3849                 │         │
│     │  Model stays loaded in memory   │         │
│     └─────────────────────────────────┘         │
└─────────────────────────────────────────────────┘

Endpoints

| Endpoint | Method | Description | | -------------- | ------ | ---------------------------- | | /health | GET | Server status and model info | | /embed | POST | Single text embedding | | /embed/batch | POST | Batch text embeddings |

Usage Examples

Enable legacy MCP-launched HTTP mode when starting MCP server:

MAMA_MCP_START_HTTP_EMBEDDING=true npx @jungjaehoon/mama-server

Then query the HTTP endpoints:

# Check server health
curl http://127.0.0.1:3849/health

# Generate embedding
curl -X POST http://127.0.0.1:3849/embed \
  -H "Content-Type: application/json" \
  -d '{"text": "How does authentication work?"}'

# Batch embeddings
curl -X POST http://127.0.0.1:3849/embed/batch \
  -H "Content-Type: application/json" \
  -d '{"texts": ["query 1", "query 2", "query 3"]}'

Benefits

  • Fast: ~50ms embedding requests (vs 2-9 seconds loading model each time)
  • Shared: Any local LLM client can use this service
  • Optional: Enable only when you explicitly need MCP-launched HTTP mode
  • Secure: localhost only (127.0.0.1), no external access

Graph Viewer

Interactive visualization of your reasoning graph.

Access: http://localhost:3847/viewer (via Standalone) or http://localhost:3849/viewer (legacy MCP HTTP mode)

Features:

  • Network graph with physics simulation
  • Checkpoint timeline sidebar
  • Draggable detail panel
  • Topic filtering and search

Environment Variables

| Variable | Default | Description | | ------------------------------- | -------------------------- | -------------------------------------------- | | MAMA_DB_PATH | ~/.claude/mama-memory.db | SQLite database location | | MAMA_EMBEDDING_PORT | 3849 | Embedding HTTP server port | | MAMA_HTTP_PORT | 3849 | Backward-compatible alias for embedding port | | MAMA_MCP_START_HTTP_EMBEDDING | false | Start embedding HTTP server from MCP process |

Technical Details

  • Database: SQLite + pure-TS cosine similarity
  • Embeddings: Transformers.js (Xenova/multilingual-e5-small, 384-dim)
  • Transport: stdio-based MCP protocol (default) + optional HTTP embedding server (port 3849)
  • Storage: ~/.claude/mama-memory.db (configurable via MAMA_DB_PATH)
  • Port File: ~/.mama-embedding-port (for client discovery)
  • Node.js: >= 18.0.0 required
  • Disk Space: ~500MB for embedding model cache

Related Packages

Links

License

MIT - see LICENSE

Acknowledgments

MAMA was inspired by mem0 (Apache 2.0). While MAMA is a distinct implementation focused on local-first SQLite/MCP architecture, we appreciate their pioneering work in LLM memory management.


Author: SpineLift Team Version: 1.7.1