cf-memory-mcp

johnlam90/cf-memory-mcp

3.2

If you are the rightful owner of cf-memory-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

CF Memory MCP is a portable Model Context Protocol server designed for AI memory storage using Cloudflare infrastructure.

Tools
  1. store_memory

    Store a new memory with optional metadata and tags.

  2. search_memories

    Search memories by content and tags.

  3. retrieve_memory

    Retrieve a specific memory by ID.

CF Memory MCP

npm version License: MIT

A portable MCP (Model Context Protocol) server for AI memory storage using Cloudflare infrastructure. This package allows AI coding agents to store, retrieve, and search memories using a production-ready, serverless backend.

šŸš€ Quick Start

# Run directly with npx (no installation required)
npx cf-memory-mcp

# Or install globally
npm install -g cf-memory-mcp
cf-memory-mcp

✨ Features

  • 🌐 Completely Portable - No local setup required, connects to deployed Cloudflare Worker
  • ⚔ Production Ready - Uses Cloudflare D1 database and KV storage for reliability
  • šŸ”§ Zero Configuration - Works out of the box with any MCP client
  • šŸŒ Cross Platform - Supports Windows, macOS, and Linux
  • šŸ“¦ NPX Compatible - Run instantly without installation
  • šŸ”’ Secure - Built on Cloudflare's secure infrastructure
  • šŸš„ Fast - Global edge deployment with KV caching

šŸ› ļø Usage

With MCP Clients

Add to your MCP client configuration:

{
  "mcpServers": {
    "cf-memory": {
      "command": "npx",
      "args": ["cf-memory-mcp"]
    }
  }
}

With Augment

Add to your augment-config.json:

{
  "mcpServers": {
    "cf-memory": {
      "command": "npx",
      "args": ["cf-memory-mcp"]
    }
  }
}

With Claude Desktop

Add to your Claude Desktop MCP configuration:

{
  "mcpServers": {
    "cf-memory": {
      "command": "npx",
      "args": ["cf-memory-mcp"]
    }
  }
}

šŸ”§ Available Tools

The CF Memory MCP server provides three main tools:

store_memory

Store a new memory with optional metadata and tags.

Parameters:

  • content (string, required) - The memory content
  • tags (array, optional) - Tags for categorization
  • importance_score (number, optional) - Importance score 0-10
  • metadata (object, optional) - Additional metadata

search_memories

Search memories by content and tags.

Parameters:

  • query (string, optional) - Full-text search query
  • tags (array, optional) - Filter by specific tags
  • limit (number, optional) - Maximum results (default: 10)
  • offset (number, optional) - Results offset (default: 0)
  • min_importance (number, optional) - Minimum importance score

retrieve_memory

Retrieve a specific memory by ID.

Parameters:

  • id (string, required) - The unique memory ID

🌐 Architecture

ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”    ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”    ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”
│   MCP Client    │    │  cf-memory-mcp   │    │  Cloudflare Worker  │
│   (Augment,     │◄──►│   (npm package)  │◄──►│   (Production API)  │
│   Claude, etc.) │    │                  │    │                     │
ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜    ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜    ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜
                                                          │
                                                          ā–¼
                                               ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”
                                               │  Cloudflare D1 DB   │
                                               │  + KV Storage       │
                                               ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜

šŸ”§ Command Line Options

# Start the MCP server
npx cf-memory-mcp

# Show version
npx cf-memory-mcp --version

# Show help
npx cf-memory-mcp --help

# Enable debug logging
DEBUG=1 npx cf-memory-mcp

šŸŒ Environment Variables

  • DEBUG=1 - Enable debug logging
  • MCP_DEBUG=1 - Enable MCP-specific debug logging

šŸ“‹ Requirements

  • Node.js 16.0.0 or higher
  • Internet connection (connects to Cloudflare Worker)
  • MCP client (Augment, Claude Desktop, etc.)

šŸš€ Why CF Memory MCP?

Traditional Approach āŒ

  • Clone repository
  • Set up local database
  • Configure environment variables
  • Manage local server process
  • Handle updates manually

CF Memory MCP āœ…

  • Run npx cf-memory-mcp
  • That's it! šŸŽ‰

šŸ”’ Privacy & Security

  • No local data storage - All data stored securely in Cloudflare D1
  • HTTPS encryption - All communication encrypted in transit
  • Edge deployment - Data replicated globally for reliability
  • No API keys required - Public read/write access for simplicity

šŸ¤ Contributing

Contributions are welcome! Please see the GitHub repository for more information.

šŸ“„ License

MIT License - see file for details.

šŸ”— Links


Made with ā¤ļø by John Lam