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

@henryhawke/mcp-titan

v1.3.2

Published

Titan Memory MCP Server for maintaining context and learning patterns

Readme

Titan Memory MCP Server

A MCP server built with a three-tier memory architecture that handles storage as follows:

  • Short-term memory: Holds the immediate conversational context in RAM.
  • Long-term memory: Persists core patterns and knowledge over time. This state is saved automatically.
  • Meta memory: Keeps higher-level abstractions that support context-aware responses.

smithery badge

📦 Installation

CHECK OUT docs/guides/how-to.md for more information on how to install and run the server.

🚀 Quick Start

  1. Basic Installation (uses default memory path):
npx -y @smithery/cli@latest run @henryhawke/mcp-titan
  1. With Custom Memory Path:
npx -y @smithery/cli@latest run @henryhawke/mcp-titan --config '{
  "memoryPath": "/path/to/your/memory/directory"
}'

The server will automatically:

  • Initialize in the specified directory (or default location)
  • Maintain persistent memory state
  • Save model weights and configuration
  • Learn from interactions

📂 Memory Storage

By default, the server stores memory files in:

  • Windows: %APPDATA%\.mcp-titan
  • MacOS/Linux: ~/.mcp-titan

You can customize the storage location using the memoryPath configuration:

# Example with all configuration options
npx -y @smithery/cli@latest run @henryhawke/mcp-titan --config '{
  "port": 3000,
  "memoryPath": "/custom/path/to/memory",
  "inputDim": 768,
  "outputDim": 768
}'

The following files will be created in the memory directory:

  • memory.json: Current memory state
  • model.json: Model architecture
  • weights/: Model weights directory

Example usage

Usage Example:

const model = new TitanMemoryModel({
  memorySlots: 10000,
  transformerLayers: 8,
});

// Store semantic memory
await model.storeMemory("User prefers dark mode and large text");

// Recall relevant memories
const results = await model.recallMemory("interface preferences", 3);
results.forEach((memory) => console.log(memory.arraySync()));

// Continuous learning
model.trainStep(
  wrapTensor(currentInput),
  wrapTensor(targetOutput),
  model.getMemoryState()
);

🤖 LLM Integration

To integrate with your LLM:

  1. Copy the contents of docs/llm-system-prompt.md into your LLM's system prompt
  2. The LLM will automatically:
    • Use the memory system for every interaction
    • Learn from conversations
    • Provide context-aware responses
    • Maintain persistent knowledge

🔄 Automatic Features

  • Self-initialization
  • WebSocket and stdio transport support
  • Automatic state persistence
  • Real-time memory updates
  • Error recovery and reconnection
  • Resource cleanup

🧠 Memory Architecture

Three-tier memory system:

  • Short-term memory for immediate context
  • Long-term memory for persistent patterns
  • Meta memory for high-level abstractions

🛠️ Configuration Options

| Option | Description | Default | | ------------ | ------------------------------ | -------------- | | port | HTTP/WebSocket port | 0 (disabled) | | memoryPath | Custom memory storage location | ~/.mcp-titan | | inputDim | Size of input vectors | 768 | | outputDim | Size of memory state | 768 |

📚 Technical Details

  • Built with TensorFlow.js
  • WebSocket and stdio transport support
  • Automatic tensor cleanup
  • Type-safe implementation
  • Memory-efficient design

🔒 Security Considerations

When using a custom memory path:

  • Ensure the directory has appropriate permissions
  • Use a secure location not accessible to other users
  • Consider encrypting sensitive memory data
  • Backup memory files regularly

📝 License

MIT License - feel free to use and modify!

🙏 Acknowledgments